yashsingh1/xdaforums huggingface dataset:
[Android Studio] pk0486:
doctorList is declared and initialized in another activity ..

private DrawerLayout mDrawerLayout;
private Button pButton = null;
private ActionBarDrawerToggle mToggle;
private int noOfDoctors;
public ArrayList<String> doctorList = new ArrayList<>();

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_patient_first_screeen);

pButton = (Button) findViewById(R.id.goTODocList);
pButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Intent i = new Intent (view.getContext(),Doctor_List.class);
startActivity(i);

final String url = <link>;
final JsonArrayRequest getDocList = new JsonArrayRequest(Request.Method.GET, url, null,
new Response.Listener<JSONArray>() {
@RequiresApi(api = Build.VERSION_CODES.KITKAT)
@Override
public void onResponse(JSONArray response) {
try {
JSONArray docList = new JSONArray(response);
JSONObject docRow;
noOfDoctors = docList.length();

for (int i=0; i<noOfDoctors; i++) {
docRow = docList.getJSONObject(i);
doctorList.add(i,docRow.getString("name"));
}

Toast.makeText(PatientFirstScreen.this, "Hi brother.", Toast.LENGTH_SHORT).show();
} catch (Exception e) {
e.printStackTrace();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Toast.makeText(PatientFirstScreen.this, "List of Doctors can't be retrieved right now. Please try later.", Toast.LENGTH_SHORT).show();
//what to do with error
}
}

);

MySingleton.getInstance(PatientFirstScreen.this).addToRequestQueue(getDocList);

}}
);
[Android Studio] TechTev:
I see. What you need to do is pass the ArrayList as an Extra to the activity. To do this you need to call startActivity after you've done your JSONArray request. Here's an example of what that might look like:

First activity

private DrawerLayout mDrawerLayout;
private Button pButton = null;
private ActionBarDrawerToggle mToggle;
private int noOfDoctors;
public ArrayList<String> doctorList = new ArrayList<>();

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_patient_first_screeen);

pButton = (Button) findViewById(R.id.goTODocList);
pButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {

final String url = <link>;
final JsonArrayRequest getDocList = new JsonArrayRequest(Request.Method.GET, url, null,
new Response.Listener<JSONArray>() {
@RequiresApi(api = Build.VERSION_CODES.KITKAT)
@override
public void onResponse(JSONArray response) {
try {
JSONArray docList = new JSONArray(response);
JSONObject docRow;
noOfDoctors = docList.length();

for (int i=0; i<noOfDoctors; i++) {
docRow = docList.getJSONObject(i);
doctorList.add(i,docRow.getString("name"));
}

Toast.makeText(PatientFirstScreen.this, "Hi brother.", Toast.LENGTH_SHORT).show();

// Call start activity here as it depends on the docList.
Intent i = new Intent (view.getContext(),Doctor_List.class);
// Put the String Array List as an extra.
i.putStringArrayListExtra(Doctor_List.EXTRA_DOC_LIST, docList);
startActivity(i);
} catch (Exception e) {
e.printStackTrace();
}
}
}, new Response.ErrorListener() {
@override
public void onErrorResponse(VolleyError error) {
Toast.makeText(PatientFirstScreen.this, "List of Doctors can't be retrieved right now. Please try later.", Toast.LENGTH_SHORT).show();
//what to do with error
}

}

);

MySingleton.getInstance(PatientFirstScreen.this).addToRequestQueue(getDocList);

}}
);

Doctor List Activity

private ListView docList;

// Key for the extra you are passing to the activity.
public static final String EXTRA_DOC_LIST = "your.package.name.Doc_List.extra_doc_list";
@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_doctor__list);

docList = (ListView) findViewById(R.id.docList);

// Get the doctor list extra
ArrayList<String> doctorList = getIntent.getStringArrayListExtra(EXTRA_DOC_LIST);
// The Adapter should now work
docList.setAdapter(new ArrayAdapter<String>(Doctor_List.this, android.R.layout.simple_list_item_1, doctorList));
}
[Android Studio] pk0486:
Thanks. But, the arraylist is now accepted in the adapter but now, the button has stopped responding. Looks like the intent is not working now. I can't go the next page. :confused:
[Android Studio] TechTev:
I just checked the code I posted and I made a couple of typos and I think as the activity start call is from within the listener it needs to be Patient_First_Screen.this.startActivity(i).

Try this code:

private DrawerLayout mDrawerLayout;
private Button pButton = null;
private ActionBarDrawerToggle mToggle;
private int noOfDoctors;
public ArrayList<String> doctorList = new ArrayList<>();

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_patient_first_screeen);

pButton = (Button) findViewById(R.id.goTODocList);
pButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {

final String url = <link>;
final JsonArrayRequest getDocList = new JsonArrayRequest(Request.Method.GET, url, null,
new Response.Listener<JSONArray>() {
@RequiresApi(api = Build.VERSION_CODES.KITKAT)
@Override
public void onResponse(JSONArray response) {
try {
JSONArray docList = new JSONArray(response);
JSONObject docRow;
noOfDoctors = docList.length();

for (int i=0; i<noOfDoctors; i++) {
docRow = docList.getJSONObject(i);
doctorList.add(i,docRow.getString("name"));
}

Toast.makeText(PatientFirstScreen.this, "Hi brother.", Toast.LENGTH_SHORT).show();

// Call start activity here as it depends on the docList.

Intent i = new Intent (view.getContext(),Doctor_List.class);
// Put the String Array List as an extra.
i.putStringArrayListExtra(Doctor_List.EXTRA_DOC_LIST, doctorList);
Patient_First_Screen.this.startActivity(i);

} catch (Exception e) {
e.printStackTrace();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Toast.makeText(PatientFirstScreen.this, "List of Doctors can't be retrieved right now. Please try later.", Toast.LENGTH_SHORT).show();
//what to do with error
}

}

);

MySingleton.getInstance(PatientFirstScreen.this).addToRequestQueue(getDocList);

}}
);
[Android Studio] pk0486:
Still the same issue .. Can you please explain what is the issue with the code? I didn't understand why did you modify the code?
[Android Studio] TechTev:
Sure, I moved the call to start the activity into the JSON response listener as that's when the doctorList is populated which we need to pass to the next activity. As that is in an anonymous inner class it needs to call the instance of the outer class using OuterClassName.this . However you have two inner classes so that's probably why it isn't working.

Maybe try moving the startActivity(i) call and intent creation to below the call to MySingleton.getInstance(PatientFirstScreen.this).addToRequestQueue(getDocList);
[Android Studio] pk0486:
Got it. Thanks. You were right. But there was some issue with my JSONArray because of which the loop wasn't getting executed. Resolved it now. Thanks again!
[Android Studio] TechTev:
No problem. Good luck with the rest of your project.
[Android Studio] pk0486:
Now, I am stuck again. I changed my arraylist to custom array list. I have created the custom array adapter and its fine. I got my JSONArray which I parsed and created the required ArrayList. But when I use this ArrayList as an argument for the custom array adapter, it gives the below error.

https://ibb.co/hhYqOG - this is the link for screenshot of error

List<DocRow> doctors = new ArrayList<>();

After this, I have assigned values to this ArrayList.

DocAdapter adapter = new DocAdapter(getApplicationContext(), R.layout.doc_row, doctors);
docList.setAdapter(adapter);

Below is the adapter constructor

public DocAdapter(@NonNull Context context, @LayoutRes int resource, ArrayList<DocRow> doctors) {
super(context, resource, doctors);
this.context = context;
this.resource = resource;
this.doctors = doctors;
inflater = LayoutInflater.from(context);

What am I missing? Thanks.
[Android Studio] TechTev:
I think it's because you've specifically asked for an arrayList instead of a List as an argument for your custom adapter constructor. Try changing your constructor for the adapter to this:

public DocAdapter(@NonNull Context context, @LayoutRes int resource, List<DocRow> doctors) {
super(context, resource, doctors);
this.context = context;
this.resource = resource;
this.doctors = doctors;
inflater = LayoutInflater.from(context);
[General Questions and Answers] 23ady:
my phone is not rooted.but dont knw why saftey net getting failed.beacuse of dis tez app doesnt working...any solution for dis??
[General Questions and Answers] -Hope-:
If your phone is a Samsung

Please check your Knox counter in download mode
[Samsung Galaxy Note 8 Questions and Answers] mrteyssere:
Hi.

I had a Huawei P9 once. It had a cool function where I could choose for example 20 photos which changed every time i opened my phone or pressed the lock/unlock button. This way my lockscreen never got boring as it changed 100 times per day.

Is there a mod/app that will do the same for the galaxy s8/note 8?
[Samsung Galaxy Note 8 Questions and Answers] jadaress1:
I remember that used to available on Samsung phones, didn't notice that feature had been removed, sorry can't help there's probably an app that could do that, shouldn't be too hard.
[Huawei P9 Plus Questions & Answers] Lorenzo Gerosa:
Hi all!

I got my p9+ less than a year a go, two weeks ago I decided to root the phone, for few days it worked fine and I was really happy with it.

A week ago, randomly, I installed an app, I made a reboot and after that I typed the sim pin and the phone pin, in few seconds the nav bar completely disappered, after that also the stat bar disappeared (it seemed like a strange fullscreen mode), than the launcher wallpaper changed to the stock one and in less than one sec the screen turned black.

After that I managed to stand that the phone was still on, infact if I press the power button the screen shows the two "Shout Down" and "Reboot" buttons.

I've been trying a factory reset but nothing happened, i finished the configuration of the phone but after 10 seconds I had the same problem :silly: :rolleyes:

I also tried to get off the sim card, and for few minutes it was working, but than I had the same problem; I'm sure that the problem is not the sim because it asks me for the pin and it actually works in another phone.

Hope someone has a solution, have a nice day :o
[Xiaomi Redmi 4X Themes, Apps, and Mods] haider123:
yeah my friends my searches revealed i got an apk which is miui camera which supports slow motion recording in sd :::::: :):D:D:D:D:D hit thanks if i helped you

link for my apk is

https://www.mediafire.com/file/hrff04du7ujhu1x/0B-RocxEOpFTHTW1DR0FLUjhJa1U.apk
[Xiaomi Redmi 4X Themes, Apps, and Mods] ani00:
Thanks, perfectly working
[Xiaomi Redmi 4X Themes, Apps, and Mods] sachin.gokhale:
Not sure why the app is not saving video. Also there a log to shoot in slo-mo mode
[Xiaomi Redmi 4X Themes, Apps, and Mods] haider123:
bro make videos in sd if u want slowmotion it will save in hd mode it doesnt
[Xiaomi Redmi 4X Themes, Apps, and Mods] hsboss:
Does it works with root access! Because the default miui camera not works with camera 2 api enabled?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] Rhazior:
S4 mini hardbricked like described here.

Lead-up was as follows:

The night before, around 23:00 my battery was suddenly down to 3% and at the login screen (as if it had been rebooted). It had been at 50% just an hour prior, and it had not been intensively used. There is no history of battery problems. I switched my phone off here.

Around 01:00 I plugged it into a wall charger, didn't boot it yet.

Around 10:00 the next morning I unplugged it from the wall charger and booted the device. It vibrated for confirmation of booting. After the Samsung screen, it said that it was installing android updates. I waited for the login screen (PIN) and started entering. Here I noticed the battery was 99% charged.

At the second digit, two error messages popped up in succession. One of them blocked the other, but it read something like: "com.android.phone has stopped working", with only an "okay" button. I pressed it, and it was still at the login screen, now with no numbers entered. I tried entering the code again, but after the first digit it stopped responding.

After waiting a couple of seconds I took out the battery, placed it back in, and tried rebooting. It hardbricked: no vibration, no login screen, it remained black. I tried plugging it into the wall again, no animation.

I tried removing my SIM and SD cards, no success.

I also tried taking out the battery, holding down the power button for a minute, and then try booting with battery. No success.

Any leads or next steps?
[HTC Wings] omadon99:
Do you know any telnet/ssh client for S730, mobileVT and putty doesn't work.

Thanks
[HTC Wings] moneytoo:
What about this? http://www.zatelnet.com/
[HTC Wings] bigflavor:
http://www.thebestpageintheuniverse.net/c.cgi?u=iphone :D
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] ArgisL:
Hello there ,

I have a Samsung A5 2017 and I want to know if there is any extra software or mod to add the slow motion option at camera options. Your help gonna be helpful.
[Samsung C9 Pro  Guides, News, & Discussion] Essa Khan XcoDeR:
Please help with my C9 pro hard bricked :(

[MENTION=3463480]travis82[/MENTION] [MENTION=1076549]baghdad[/MENTION]
[Samsung C9 Pro  Guides, News, & Discussion] travis82:
wtf you do to hard brick it and define "hard brick" you can get in to download mode right?
[Samsung C9 Pro  Guides, News, & Discussion] Essa Khan XcoDeR:
no, i cannot go to download mode
[Samsung C9 Pro  Guides, News, & Discussion] travis82:
how the hell did you flash the wrong bootloader to jack up your phone dude you will need a zbox to un **** your phone dude. I honestly can believe you did that but hey sh!t happens. Try and get a mobo replace on warrenty if not well donate your brick others have hardware devices to fix it. But if you end up getting a new device get an op5/t since you are just a flasher curious guy it will be a better match for ya in the long run.

Also if you are screwed on your phone i'll take it :) i need another for dev work. I mean screwed like no way to fix it your screwed ya know? I hope you get it back up and working tho its a good device to play with.
[Samsung C9 Pro  Guides, News, & Discussion] AL_IRAQI:
Go to a mobile shop/repair and ask for him to fix it, he can use box to fix it

anyways never do something other told without reading a bit, not everything thrown at you is right

good luck with your paper weight :P
[Samsung C9 Pro  Guides, News, & Discussion] Essa Khan XcoDeR:
:(

going back to my old nokia phone no way of getting new phone...
[Samsung C9 Pro  Guides, News, & Discussion] Essa Khan XcoDeR:
Do you guys know someone? i heard about remote fixing
[Samsung C9 Pro  Guides, News, & Discussion] AL_IRAQI:
Buddy visit local mobile shops, they can fix it easily
[Samsung Galaxy J7 Questions & Answers] yosol:
Hi all :)

i used in some few days Grx Touchwiz home mod

it was wonderful, now i'm using another ROM and i would to install this mod on this Rom !!

do you have guys anyway or any link to download it !?
[Android Q&A, Help & Troubleshooting] Polyatomic:
This might sound weird but I'm trying to learn about the update.zip script.

I've tried https://xdaforums.com/showthread.php?t=1610121 https://xdaforums.com/showthread.php?t=1931585 and similar posts but every time apply update (either from sideload or from sdcard) I just get installation aborted. Nothing gets printed.

My aim is to run shell script from updater-script as I cannot get into adb shell but I have access to adb sideload and update from zip.

Help.
[Amazfit] revolutionyo:
Hello, I need help with an amazfit beep, when updating in IOS to the latest version the clock was on screen a message that said "connect app to update resources".

Then I linked the clock to an android and using gadgetbridge install the res 9.40 and then the fw 9.26 then in this last step the clock did not end and it was turned off. Now I can not turn it on or in the charging base.

Help
[Amazfit] axiel7:
Nadie te va a responder en este foro ya que solo se habla inglés, edita tu respuesta o escribela en otros foros como HTCMania

Anyone won't respond you because this is an English forum, edit your response or write it on another forum like HTCMania
[Samsung Gear S3] tosunkaya:
I'm using Gear S3 Classic for 1 month. I regret. There is no apps or no update or good watchfaces for this smartwatch.

1) When will Tizen 3 arrive?

2) Is there any developer who is currently porting Android Wear 2 at the moment?

3) What applications do you use?

3) What watchfaces do you use?

4) Are you satisfied with this watch?
[Samsung Gear S3] adfree:
Later... :D

Maybe as Xmas "gift" in late December or in 2018.

Tizen 3 is not the Holy Grail... see SM-R600 User feedback...

NObody

Best Regards
[Samsung Gear S3] noobandroid:
for watch face you can use watchmaker and s3 companion of it
[Samsung Gear S3] Zeblade:
Hmm.. you REALLY need to search more. Watch Faces alone.. wow TONS!
[Samsung Gear S3] gettinwicked:
When Tizen 2 (or whatever shipped with the S3) arrived, I got the update on my S2 sport last December. Mid to late, can't remember for sure. I'm guessing 3 will come about the same time. And, as another said, don't expect it to give you everything you want and change your mind. The lack of new features/s-health upgrades is pretty astounding.

I only use s-health and timer. As for apps, I have weather, schedule, workout, steps, heart rate, and barometer/altimeter widgets set. There aren't any apps worth anything to me. The exercise apps are bad and pretty much non-existent, and nothing else stands out to me.

The watch itself is pretty secksay. I love the look as well as the UI. I briefly went to android wear, and I really missed the Samsung UI. But, that's where it ends. I need the health app to do WAY more. And Sammy doesn't seem to give a s##t about what the consumers want. As long as people are buying them, who cares? So, personally, after an android wear watch comes out that catches my eye, I'm out. But, my opinion doesn't mean you or whomever else won't love it.

My $0.02
[Samsung Gear S3] cantenna:
LOL, I agree, there are tons but my observation, Gear Store does a poorer job of properly showcasing its catalog than the Watchmaster app, so, I installed the watchmaster app and will browse there catalog, find something I like, then search for it in the Gear shop and Buy it from the Gear shop ;)

Designer Kang got some good ones!

---------- Post added at 04:11 AM ---------- Previous post was at 03:58 AM ----------

I just bought it too and am in Australia. I had mixed feelings before making the purchase. Wanted;

-Samsung Gear Pay

-A watch that received regular security updates

-Looked nice

-Software

What I got was;

Cons

:

-Samsung Gear Pay intermittently works..., so much so, that I have to still have to carry a wallet on me... and because of that, Samsung Pay is utter rubbish! (or at least here in Australia it is.)

-A watch that never receives regular security updates (bizarre to me because its a watch thats facilitates banking transactions or should)

Pros:

-Looks nicer than I had originally expected especially with the ceramic steel band I added

-Samsung Health; which surprisingly, is pretty awesome! I like to jog and spin class, so, this watch is really a lot of fun for people who want to be active.

So yes, despite not having Samsung Pay and the rubbish support, it's a nice looking watch and Samsung Health is actually a lot of fun, so, I keep it.

Plus, it has the wheel and Android Wear does not.
[Samsung Galaxy S7 Edge Questions and Answers] Pustiu314p:
Hi, I have a S7 Edge witch is from Vodafone UK and I want to use it in Poland, it is a good idea to flash this firmware?:

Model	SM-G935F

Model name	Galaxy S7 edge

Country	Poland

Version	Android 7.0

Changelist	12365438

Build date	Tue, 17 Oct 2017 05:28:35 +0000

Security Patch Level	2017-10-01

Product code	XEO

PDA	G935FXXU1DQJ3

CSC	G935FXEO1DQJ3

I also want to get rid of Vodafone stuff (debrand), and use is like a unlocked device, non-rooted, official, receive ota updates etc...

There are some risks if I flash other country firmware in country specific device? should not do that?

It is better to look for SM-935U firmware and flash this?

The device is network locked and I will unlock it with NCK code, I will be able to use it in Poland with any SIM?

Thank you all.
[Samsung Galaxy S7 Edge Questions and Answers] Pustiu314p:
I think I posted in wrong place. can someone move it please?
[Android Q&A, Help & Troubleshooting] BeanGTA:
I'm use kingroot, kingoroot and one click root. Blast blas blas... = Failed

Tablet My:

Android 6.0

ROM: 16GB

RAM: 1GB

Mediatek MT8321 4 Core 1.3GHz

1280x720

B1-733

05/05/2017

New Tablet

Help ! :eek::crying:
[Xiaomi Redmi Note 4 Questions & Answers] mankurt76:
Sorry for bad english. I have note 4 global version. the sd card notification started to come out after the phone updated the new droid. I could not delete the notification what I did.

-Reformatted the sd card,

- mounted and remounted,

-swapped card with new sd card

-factory reset of phone and flashed new os- Stable and Developer

but the notification is always there. what can i do?
[Samsung Galaxy S7 Edge Questions and Answers] ace4jack:
Hey guys, i was wondering if i can flash firmware from other carrier without bricking?

I bought my phone last year locked to carrier, and I unlocked it using doctorSIM service. Phone itself works fine, and as I'm not living in country that i bought my phone from originally, phone gives a message "No SIM card installed" sometimes once a week, sometimes several times a day and i need to remove SIM card or to restart phone to make SIM card work again.

Please note:

- SIM Card from my original carrier (from one that I bought my phone from) works PERFECTLY fine

- My other SIM card (that my phone constantly rejects) works in other phones just fine

- I have tried to reset the phone, and carrier bloatware constantly keeps installing

- EDIT: Wi-Fi and 4G are working PERFECTLY fine

What to do? Any ideas?

Thanks in advance and sorry for gramar mistakes :)
[Samsung Galaxy S7 Edge Questions and Answers] ace4jack:
Bump, flashed other carrier firmware, still same problem.
[Samsung Galaxy S7 Edge Questions and Answers] JeffDC:
R u rooted? Have you considered flashing a CSC packet for your location?

I have a 930S, and works fine with the Korean ROM/Chinese language here in the US, on ATT service.

I have flashed the ATT, XAA and TMB CSC sets, and though the phone worked, and loaded the correct USA carrier info, I lost the phone code ability, which I could not solve.

In the end I went back to the original Korean ROM and it's CSC packet. Interestingly, though it works perfectly here in the U.S., and I can use/input phone codes, it still shows Chinese cities for my 'Region", none of which I have selected. When I do a search for local towers, it locates and correctly identifies AT&T, T-Mobile, etc. I select ATT. The Chinese cities remain in the region selection, none selected.

Wait and see if someone knows if CSC (Exynos or US based CPU) are interchangeable. I used CSC packets from a universal ROM setup (non-USA).
[Samsung Galaxy S7 Edge Questions and Answers] ace4jack:
I'm not rooted, as I use Samsung Pay and have more than one year of warranty left. I will try flashing CSC of the current country I'm in (Austria). Thanks for taking time and writing all this, this problem is unbearable :)