yashsingh1/xdaforums huggingface dataset:
[AT&T, Rogers HTC One X, Telstra One XL] Heisenberg:
Google jtag repairs in India.

Sent from my Evita
[Java for Android App Development] Alwaysup:
I want to add a item to the child Today from another activity to the ExpandableListView. The activity where I want to add it is named LocHistory, here is a the code to add something to the list:

static void addListData(final Context context) {
List<NewsItem> list = listDataChild.get("Today");
NewsItem newsData = new NewsItem();
newsData = new NewsItem();
newsData.setHeadline("11.11111, 1.1111");
newsData.setSpeed("1.11KM/H");
newsData.setDirection("111");
newsData.setDate("11-1-1111 11:11:11");
list.add(0, newsData);
listDataChild.put("Today", list);
}

This is working when I have call the function in the same class (LocHistory). But when I call it in MainActivity like this:

public class MainActivity extends Activity {

Button button2;

[MENTION=439709]override[/MENTION]
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

button2 = (Button) this.findViewById(R.id.button2);

button2.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
LocHistory.addListData(getBaseContext());
}
});
}
}

Then there is nothing added to the list. Is it possible to add a item from another activity to ExpandableListView? I want if there's something added that the class LocHistory is not going to open, so I think startActivity with a intent is not a option here (but i'm not sure).

(The java sources can be found here:

MainActivity.java pastebin.com/YWyfznwv

LocHistory.java - pastebin.com/XJ274C61

NewsItem.java - pastebin.com/uhmXbnhJ

ExpandableListAdapter.java - pastebin.com/5jPV8daz)
[Java for Android App Development] SimplicityApks:
In Android, try to use as few static variables and methods as possible. To get a non-static access to the method, make it public and get an instance of the list adapter in the activity (via list.getAdapter () or create a new one and set the listAdapter in the expListView).

If you really want to access it through 2 activities, I'm sorry, there's no way of doing this directly. You'd have to save it in a file or your SharedPreferences and get the items once you get to the other activity.

And also, why do you need that context object in addListData()? That could lead to memory leak...
[Java for Android App Development] nikwen:
In this thread you can find a solution. There is a library called EventBus which they used. Read it completely (just 2 pages).

http://xdaforums.com/showthread.php?t=2332069
[Java for Android App Development] Alwaysup:
By the way,

When I log the listDataChild in the function addListData then it seems that the item is added under the child Today (the logging is only working when I first open the class LocHistory and close it). The prepareListData function is called in the onCreate method. Is it maybe that function overrides the listDataChild that is created by the function addListData?

Sorry for the context object in addListData() is was doing some test with SharedPreferences and then I've to use the context object (I've removed now). Can you call list.getAdapter() from another activity?

Thanks for the link, I will study this. Altough I not prefer to include an other library
[Java for Android App Development] SimplicityApks:
The event Bus is a cool library, but the question is whether it's worth including a lib to do just that. You can usually try to combine both activities into one with Fragments and a ViewPager.

The list can only be accessed in its own activity, so list.getAdapter() won't work. But u can still write the data to a file on the SD card or use a SQLite database (or SharedPreferences for non-objects).

I found out that what's probably better is to use less activities or use SharedPreferences wherever it's possible since it's cleaner and faster.

Had a similar problem a while ago (but I needed to pass data to a starting activity) and solved it using a Bundle (via Intent), but then realized the app is much nicer combining both activities...
[Java for Android App Development] nikwen:
I agree. The less Activities, the better the app. (At least until all Activities are crowded. :D)
[Java for Android App Development] Alwaysup:
As you guys pointed out, I'm now using SharedPreferences. I'm using this code:

private static int startOf(String day) {
Date date = new Date(System.currentTimeMillis());
//TimeZone tzGMT = TimeZone.getTimeZone("GMT");
Calendar cal = Calendar.getInstance();
//cal.setTimeZone(tzGMT);
cal.setTime(date);
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);

// change to seconds
long ltimeM = cal.getTimeInMillis();
int iTimeStamp = 0;
if (day == "today") {
iTimeStamp = (int) (ltimeM / 1000);
} else if (day == "yesterday") {
iTimeStamp = (int) ((ltimeM / 1000) - 86400);
}

cal.set(Calendar.HOUR_OF_DAY, cal.getActualMinimum(Calendar.HOUR_OF_DAY));
cal.set(Calendar.MINUTE, cal.getActualMinimum(Calendar.MINUTE));
cal.set(Calendar.SECOND, cal.getActualMinimum(Calendar.SECOND));

//return Integer.toString(iTimeStamp);
return (int) iTimeStamp;
}

static void addListData (int TimeStamp, final String lat, final String lng, final String speed,
final String direction, final Context context){

int todaystamp = startOf("today");
int yesterdaystamp = startOf("yesterday");
String Datetime = DateFormat.format("dd-MM-yyyy kk:mm:ss", new Date(TimeStamp * 1000L)).toString();

SharedPreferences pref = context.getSharedPreferences("myPrefs", MODE_PRIVATE);
SharedPreferences.Editor editor = pref.edit();

if (TimeStamp >= todaystamp) {
editor.putString("Today", "*headline=" + lat + ", " + lng + ";speed=" + speed + ";direction=" + direction + ";date=" + Datetime + ";");
} else if (TimeStamp >= yesterdaystamp) {
editor.putString("Yesterday", "*headline=" + lat + ", " + lng + ";speed=" + speed + ";direction=" + direction + ";date=" + Datetime + ";");
} else if (TimeStamp < yesterdaystamp) {
editor.putString("Older", "*headline=" + lat + ", " + lng + ";speed=" + speed + ";direction=" + direction + ";date=" + Datetime + ";");
}

editor.commit();
}

But now I'm stuck with one problem, when I add a item to the SharedPreferences on the same key it will overwrite the previous data. How can I add data to the same key without overwriting the previous data? Is it maybe possible to first get the data and then join the item to the data after that add the data to the SharedPreferences?

Any help you guys can provide me would be greatly appreciated! :good:
[Java for Android App Development] SimplicityApks:
SharedPreferences does not save data in subcategories, so the tag you give it to save a variable is then connected to that variable and if you use it again, it will be overridden (as you found out).

If you want to stick to the SharedPreferences, you have to give each item a unique tag, so you would normally add a counter to save "Today_1", "Today_2", Today_3", ...

then you save that counter also so that you know how many items you saved.

If you want to do it nicely though, check out the SQLite database. It is a little mor work and requires some knowledge about databases, but I think it's worth it.
[Java for Android App Development] CoolMonster:
Try static handlers. worth simple logic helps u to update ur activity from any thread or activity.
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] Aleyayman:
Hello XDA this is my first thread so please help me i bought lg optimus l7 month ago and the screen brightness started to play which means i set it at 100% but the screen goes darker and darker and unexpectedly it goes again to 100% and goes down fast again and keeps like that and i went to the warranty and the said that they have changed the main board of the phone but the problem is still here and i went again and they said there is nothing wrong with the phone so please help me XDA Thanks :) <3
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] Sabyn:
are you sure you are not on automatic brightness?
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] Aleyayman:
i don't know i went to the settings and searched for auto brightness and i didn't find it and i think lg optimus doesn't has auto brightness and i have changed my software to CM10 and the problem was disappeared so tell me what should i do to close the auto brightness ? :(
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] ArjunrambZ:
are you using ics version or jb? any way boh doesnt have auto brightness in it hence i xan say that i may be just a stockrom glitch. if ur in ics try updating to jb may be it will fix the issue,and if ur in jb then try flashing an anothet stock rom

---------- Post added at 11:32 PM ---------- Previous post was at 11:22 PM ----------

here is the link to stoxk rom downloading sitehttp://xdaforums.com/showthread.php?t=2329126
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] Aleyayman:
jellybean and no one can help me from xda ?!
[Desire Q&A, Help & Troubleshooting] lambada24:
I'm after a Jelly Bean ROM for my Desire. Was going to pick the AOKP ROM but then discovered that it only supports green led light notifications. I'd like something with multi-colour notification support. I also need GPS and WiFi tethering support. I did try searching other threads on here but didn't find any explicit references to multi-colour led notification support.

Any recommendations?
[Desire Q&A, Help & Troubleshooting] Chromium:
AFAIK the desire doesn't support multicoloured led lights. Green is our only option.

Sent using xda-developers app
[Desire Q&A, Help & Troubleshooting] fionnandstuff:
I dont think the Desire supports any other colour than its own, i could be wrong though
[Desire Q&A, Help & Troubleshooting] eddiehk6:
The Desire LED is definitely multicoloured, however a few custom ROMs i tried disabled various different combinations of colours and blink rates, think it's kernel related. I currently get blinking green for WhatsApp, and solid blue for Go SMS pro even though I try to change the colour within settings. Used to have pink as well, haven't seen that in years...

It used to be very useful on SMS apps before I rooted, I set a different colour and or blink rate for different contacts :)

I can't remember if I tried LED me know before, don't know if it's support anymore, worth a shot
[Desire Q&A, Help & Troubleshooting] abaaaabbbb63:
From what I've read, the Desire LED supports:

Red

Green

Orange

Blue

White

Magenta

Purple
[Desire Q&A, Help & Troubleshooting] Chromium:
Yea you're right. Facebook seems to occasionally give me a blue led, but that's the only colour other than green that I've ever seen.

Sent using xda-developers app
[Desire Q&A, Help & Troubleshooting] lambada24:
Mine's rooted and I'm running a custom 2.3.3 ROM...still supports multi-colour so rooting is not the cause of the problem.
[Desire Q&A, Help & Troubleshooting] lambada24:
I've given up on finding a Jelly Bean ROM with multi-colour led notification support. Is there an ICS ROM that can suit my needs?
[Desire Q&A, Help & Troubleshooting] MetinKale38:
Take a root explorer and navigate to " /sys/devices/virtual/leds/lcd-backlight/subsystem/" (may different on some roms). The folders green blue and amber are for the notification led, you can switch them on by setting the brightness file to 255 and switch them of by setting 0.

You can also use some combine, the desire hardware (and most kernels) supports multiple led colors, but no rom really use them for notifications.

Tapatalked... just Tapatalked...
[Desire Q&A, Help & Troubleshooting] lambada24:
There seems to be a misunderstanding. I don't want to switch on the led light manually. I just want the light to flash green when I have a missed call / new email and blue when I receive a new SMS. This is exactly what my phone does now with Android 2.3.3 and Handcent SMS. However, I read that Jelly Bean only supports green colour led notifications.
[Desire Q&A, Help & Troubleshooting] MetinKale38:
No that was just for people saying that the desire does not supports it :)

Tapatalked... just Tapatalked...
[Desire Q&A, Help & Troubleshooting] yopus:
You could try: https://play.google.com/store/apps/details?id=com.sabragesoft.poweronindicator

And https://play.google.com/store/apps/details?id=com.rageconsulting.android.lightflowlite

They work on most of the roms.

I cannot remember if lightflowligt worked well on JB though . I'm currently back on 2.3 with MW5.
[Desire Q&A, Help & Troubleshooting] dodge67:
I've had green red pink and blue on mine. Can't remember which Rom sorry.
[Desire Q&A, Help & Troubleshooting] lambada24:
Was it Jelly Bean? Did you have to install a 3rd party app for multi-colour support?
[Desire Q&A, Help & Troubleshooting] dodge67:
No. I think it was cooldroid.
[Desire Q&A, Help & Troubleshooting] lambada24:
Cooldroid? What version of android is that?!
[Desire Q&A, Help & Troubleshooting] dodge67:
Gingerbread sense.
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] aminopur:
Hello,

I have S5830 phone with buggy touch sensors, changed front glass with digitizer and something is wrong now with sensors. So now want to use this phone as portable blackbox (I tend to blackout when i drink). GPS logging and audio recording to sdcard would be the trick.

I would strip down cm10.1 rom to just a basic apps (no sms app, browser, contact app, minimal laucher, minimal file manager, no google apps, no music app...), but what app to use for gps and audio logging?
[General Questions and Answers] TurkishMaid:
Hey I am trying to root using the Casual download from here ->http://xdaforums.com/show....php?t=2332825

BUT I am getting this message and it is not rooting

[*] Pushing exploit...

cannot stat 'C:\Users\MY NAME REDACTED\AppData\Local\Temp\CASUALMY NAME REDACTED-2013-09-09-07.26.59\SCRIPTS/1.RootGS3\pwn': No such file or directory

Unable to chmod /data/local/tmp/pwn: No such file or directory

[*] Pushing root tools...

2185 KB/s (96260 bytes in 0.043s)

3009 KB/s (1867568 bytes in 0.606s)

3140 KB/s (1872015 bytes in 0.582s)[*] Rooting phone...

/system/bin/sh: /data/local/tmp/pwn: not found

installing superuser to system partition

/system/bin/sh: su: not found

rm failed for /data/local/tmp/pwn, No such file or directory

[*] once root is confirmed you can flash the Insecure aboot

done

Script Complete

I have updated Java, I'm in USB debugging, and MTP.

Can I get any help on this? I would really like to root/install a new rom but I am a newb. Thanks!
[AT&T Samsung Galaxy S II SGH-I777] nevkrash:
good day peeps!

ive bought a samsung galaxy s 2, assuming i could unlock it for my carrier (from ? to rodgers).

it seems a way harder hack than i was ready for, every time i look online for help the website has their hand out for $$.

i mean the ifone hack was such a noob easy one i overestamated my skills/knowledge.

so, i am totally new to the nonifone, and am unsure even what im lookin for, by name.

really all i want to do is unlock it so i can use rodgers carrier, but the stor says its not possible, web sites say no praw but want $$.

any help will be greatly appreciated, and thankx ever so much for your time.

nev
[MDA, XDA, 1010 General] yelp666:
Hi all,

I'm unhappy with the reminders and alarms in my Wallaby. They are WAY too quiet. I need a LOUD wake up alarm, plus it would be nice to hear the reminders (I just think they're too quiet in comparison to other sounds that Wallaby makes :)))

I've tried to change the sounds to a different wav files, but it didn't change much. Is there a sure way to work around this ??

Thanks a lot, for any input.
[Android Q&A, Help & Troubleshooting] pemell:
Hi. How do I send an email to one of my exchange groups with stock aosp email app on android 4.3? When typing a name in the recipents area the contact shows up but none of my groups.

Thanks in advance,

pemell
[Android Q&A, Help & Troubleshooting] pemell:
Anyone?
[General Questions and Answers] levens:
I have a GT-S700 runing the Inspiration Rom V16 and it either starts up with the installed screen lock or a Holo screen lock. http://xdaforums.com/images/smilies/frown.gif

I would like to use the Holo screen lock only, is this possible?
[General Questions and Answers] ajparejas:
solution

remove the default lockscreen in settings. select lockscreen type to NONE
[General Questions and Answers] levens:
Thankyou for replying.

My lockscreen setting appears to be on NONE by default but intermittantly I still get the original lockscreen to swipe followed by the holo lockscreen to swipe?
[General Questions and Answers] ajparejas:
try to use with pattern then revert it back to none.

im using samsung galaxy s duos and i already solve that problem.

i use golocker for lockscreen
[Sony Xperia Z Ultra] krabappel2548:
Dear Xperia Z Ultra users,

I need 3 users with a linux pc to help me with something ;) It's closed testing so I won't tell you for what it is :p

You need:

- Xperia Z Ultra

- Unlocked bootloader

- Linux pc with adb acces

Let me know who can help me! :)
[Sony Xperia Z Ultra] Hogyoku:
Will a virtualbox be sufficient?
[Sony Xperia Z Ultra] krabappel2548:
Can you use adb with your phone in virtualbox?
[Sony Xperia Z Ultra] Hogyoku:
Yeah got it working :D
[Sony Xperia Z Ultra] krabappel2548:
ok, pm me your hangouts email ;)

Got my tester, thread closed!
[Android Q&A, Help & Troubleshooting] bugsysiegals:
I've been using the iPhone since the 3G and am ready for something new. I've been looking at the HTC One and Samsung GS4. During my reviews of the HTC One, I read that HTC was in a financial meltdown. If this is indeed true, how would this affect the support/future updates for the HTC One?

I'm not familiar with Android yet and whether one can just put the latest custom ROM onto the device and have the latest version of Android or if the manufacturer plays any key role in these updates. Please advise. Thanks.
[AT&T, Rogers HTC One X, Telstra One XL] khare.pulkit:
Hi Experts,

I was using Viper Rom on my rooted HTC ONE X and then decided to upgrade it to JB 4.2 via RUU.

Everything went fine got a message saying successfully finished the ruu but after that my mobile is not starting and cant see any LED when I plug it for charging.

Please help............
[AT&T, Rogers HTC One X, Telstra One XL] Heisenberg:
Do you have the One X (Endeavor) or the One XL (Evita)?

Were you s-off when you ran the RUU?

Sent from my Evita
[AT&T, Rogers HTC One X, Telstra One XL] khare.pulkit:
Thanks for replying so fast :good:

I got One XL (Evita), not sure about S-off
[AT&T, Rogers HTC One X, Telstra One XL] Heisenberg:
SuperCID + s-on + jb RUU = brick

Which RUU did you use? I've only seen OTA being available so far.

Sent from my Evita
[AT&T, Rogers HTC One X, Telstra One XL] khare.pulkit:
I was using RUU_EVITA_UL_JB_45_S_Cingular_US_3.18.502.6_Radio_0.24p.32.09.06_10.130.32.34_release_signed_With_Partial from HTC official site. Please let me know how can I fix it :crying::crying::crying::crying:
[AT&T, Rogers HTC One X, Telstra One XL] Heisenberg:
Ok, that's jb 4.1, not jb 4.2.

If you had SuperCID (which you most likely did) and s-on you've bricked your phone. There's nothing you can do now except get it repaired. You have two options: either jtag repair (about $60) or get HTC to replace the motherboard (about $200).

This just goes to show that a lack of education about what you're doing to your phone leads to disastrous consequences. Once you've had your phone repaired, do yourself a favour and either leave it stock, or do a lot of reading so you have a proper understanding of modifying your phone and the potential consequences.

Sent from my Evita
[AT&T, Rogers HTC One X, Telstra One XL] khare.pulkit:
Thanks for the update and suggestion..........
[AT&T, Rogers HTC One X, Telstra One XL] redpoint73:
They're dropping like flies lately . . .
[AT&T, Rogers HTC One X, Telstra One XL] Heisenberg:
Yes sir. A bit reminiscent of late last year.

Sent from my Evita
[Windows Phone 8 Development and Hacking] UltraXUX:
This is a simple app, that allow editing registry.

It isn't working without interopservices.

EDIT: I'm trying to interop unlock on Non-Samsung devices using RPComponent, but this required interop services to work.

1366x768 image (09/07)

1080p image (09/09)
[Windows Phone 8 Development and Hacking] dragonide:
Am I the only one who is not understanding ??
[Windows Phone 8 Development and Hacking] lordmaxey:
No! :D
[Windows Phone 8 Development and Hacking] MOHSEN-UNIQUE:
Here i send a post can be useful for you ?

http://xdaforums.com/showpost.php?p=45435876&postcount=41
[Windows Phone 8 Development and Hacking] UltraXUX:
Sorry for my bad english D: (i'm from Italy)
[Windows Phone 8 Development and Hacking] lordmaxey:
It*s not the point that we don't understand your english writing. That's fine.

I just can't get what your title of the thread

has to to do with this text in the first post:

These are two different things.

Why do you post a "tool" that requires interop unlock services to work, to gain interop unlock??

i'm confused... :confused::confused::confused:

It just doesn't make any sense to me :D
[Windows Phone 8 Development and Hacking] dragonide:
I am Italian too.

I think the topic is a bit misleading because you talk about trying to interop unlock non-samsung devices but inside there is only a registry editor that needs interop inlock to work.

# In Italian : non capivo il tuo tentativo di interop unlock per i non-samsung semplicemente postando un editor che a sua volta richiede l'interop unlock. dal topic mi aspettavo una nuova idea o qualcosa del genere :D non fraintendere, può sembrare un rimprovero il mio ma sto solo dicendo che ho creduto che mi stessi perdendo dei pezzi :)

---------- Post added at 04:50 PM ---------- Previous post was at 04:49 PM ----------

That's exactly my point :)
[Windows Phone 8 Development and Hacking] lordmaxey:
Sorry, i was writing and editing my post before i could read yours ;)

But glad we think the same :p
[Windows Phone 8 Development and Hacking] UltraXUX:
EDIT: I'm trying to interop unlock on Non-Samsung devices using RPComponent, but this required interop services to work.
[Windows Phone 8 Development and Hacking] lordmaxey:
Yeah so, where's the point in this?

This doesn't make any sense to me...

As i wrote before:
[Windows Phone 8 Development and Hacking] UltraXUX:
it's my fail D:
[Windows Phone 8 Development and Hacking] dragonide:
Oh, so this topic is a sort of report about that fail.

Ok ok xD my head hurted for a few seconds xD
[Nexus 7 (2013) Accessories] melvill:
Hi all im looking for a case similar to the one listed here but i think this is a bit girly for my likings :) . I use my nexus for work everyday and i travel with my 2.5" 2TB hard drive, a set of in ear headphones and A USB charging and OTG cable. I already have a premium google case for the device.

Any ideas guys

http://www.amazon.co.uk/gp/product/...&pf_rd_t=101&pf_rd_p=418444307&pf_rd_i=468294
[Nexus 7 (2013) Accessories] Jewveeski:
Check out the accessories thread for Nex 7, I posted a topic about the targus zip case I think its up your alley.
[Nexus 7 (2013) Accessories] melvill:
Thanks that looks OK but i think this one from Amazon is a little better than the Targus one. Any other options out there. Not crazy on any of these.

http://www.amazon.com/AmazonBasics-...8&qid=1378737909&sr=1-3&keywords=amazonbasics
[Nexus 7 (2013) Accessories] codesage:
I Highly recommend the Grid-It cases

http://www.cocooninnovations.com/grid.php
[Nexus 7 (2013) Accessories] melvill:
Yeah thanks this looks quite nice, definitely an option, so far my first option.

http://www.cocooninnovations.com/product_info.php?cat_id=71&product_id=227
[Nexus 7 (2013) Accessories] melvill:
Took you advise and got the Grid-It Wrap 7 CPG35. Everything just fits in. Thanks a mil. The case feels awesome and my nexus 7 fits in slot with the premium ASUS cover, tight squeeze tho.

My 2.5" 2TB WD Passport, USB OTG Cable, MicroUSB Charging cable and my Headphones fit in and the case manages to close, only just.

http://www.cocooninnovations.com/product_info.php?product_id=227