yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] frenzyboi:
First, make sure your CheckBox have an ID.

Second, findViewById to your CheckBox.

CheckBox check = (CheckBox) findViewById(R.id.check);

Init your SharedPreferences on your onCreate

SharedPreferences settings = getSharedPreferences("yourappnameorwhatevernameyouwant", 0);
SharedPreferences.Editor editor = settings.edit();

Then save you state of CheckBox

boolean checkBoxValue = check.isChecked();
editor.putBoolean("CheckBoxValue", checkBoxValue);
editor.commit();

That's it.

And if you want to load the value. <--- this will make the CheckBox checked or unchecked upon opening the app.

check.setChecked(settings.getBoolean("CheckBoxValue", false));
[Java for Android App Development] taomorpheus:
If you want a more secure (but slower) sharedpreferences, you can implement your own class like this:

(This is an example to put-get a string)

public class MySharedPreferences implements SharedPreferences {

public MySharedPreferences (Context context, SharedPreferences delegate) {
this.delegate = delegate;
this.context = context;
}

public class Editor implements SharedPreferences.Editor {
protected SharedPreferences.Editor delegate;

public Editor() {
this.delegate = MySharedPreferences.this.delegate.edit();
}

public Editor putString(String key, String value) {
delegate.putString(key, encrypt(value));
return this;
}

public void apply() {
((Editor) delegate).apply();
}

public Editor clear() {
delegate.clear();
return this;
}

public boolean commit() {
return delegate.commit();
}

public Editor remove(String s) {
delegate.remove(s);
return this;
}

}

public String getString(String key, String defValue) {
final String v = delegate.getString(key, null);
return v != null ? decrypt(v) : defValue;
}
public boolean contains(String s) {
return delegate.contains(s);
}
protected String encrypt( String value ) {
//here you use your algorithm to encrypt
return value;

}

protected String decrypt(String value){
//here you use your algorithm to encrypt
return value;
}
}
[Java for Android App Development] sak-venom1997:
Use Prefrence apis

SharedPrefrences are best impilmented by the prefrence apis.

check out Prefrences

Most Effective and simplest way to do it in my opinion
[Java for Android App Development] patedit:
IMO, you could confuss a reader with that statement.

If you want to create a settings activity where the user can configure the behaviour of the app, then you should go for Preference API. It helps you building the interface and it internally uses SharedPreference to save the state of the parameters.

However, if you just want to save the value of any parameter at any point of your application flow that is outside the Settings activity, you should make use of SharedPreference to store those values as frenzyboi explained.

As shown, Preference and SharedPreference are two different things.
[Java for Android App Development] sak-venom1997:
I had no intention to confuse the op the op wanted a checkbox right?

I wanted to say is that if a prefrence is used it would be easy to manage shared prefrence if theres only the checkbox
[Java for Android App Development] CoolMonster:
:good:

U are right man. its pretty good way is to learn those basic aspect.

Preference activiities also doing the same. But it provide all those things in handy manner..

U can use read those data using shared preference and also change those setting by chnaging the data from elsewere

So sharedPreference and PreferenceActivity are Same
[Java for Android App Development] patedit:
:eek:

PreferenceActivity is a class that extends ListActivity.

SharedPrefence is an interface to handle preferences.

They have nothing to do. :o

Neither Preference and SharedPreference are the same, thou both of them can be used for what the user asked.
[MDA II, XDA II, 2060 General] -RuF rYdeR-:
i neva knew there was a radio applictaion? how do i open it?
[MDA II, XDA II, 2060 General] Rudegar:
are you sure that it's just not ref'ing to

radio as in radiostack which is GSM which is the phone ?
[Nexus 4 Q&A, Help & Troubleshooting] borich:
hi,

as we know, nexus 4 has Broadcom chip that support fm radio, but no antenna wired.

Now my question, in jeremy clarkson style, is: How hard can it be connect the antenna pin to the headphone wire? there are some problem doing this?

and the last one: in other device how is this done? only cable or not?

if you know someone who known about electronic ask him;)
[Nexus 4 Q&A, Help & Troubleshooting] vindikleuk:
Hah, this was actually discussed in last week's Pocketnow podcast. I guess it isn't easily done, messing with the hardware is something else.
[Nexus 4 Q&A, Help & Troubleshooting] borich:
what they said about it?
[Atrix 4G Q&A, Help & Troubleshooting] mizaro:
I have atrix 4g that bought at ORANGE.

Android version: 4.2.1

Baseband version: N_01.95.00R

Kernel version: 2.6.32.60-MB860-CM10-03962-ged7b511

epinter@s1 #1

CyanogenMod version: 10.1-20130124-UNOFFICIAL-epinter-olympus

Build date: Thu Jan 24 15:05:20 UTC 2013

Build number: cm_olympus-userdebug 4.2.1 JOP40D

eng.epinter.20130124.150425 test-keys

I want to install this (http://xdaforums.com/showthread.php?t=2167927)

I have app: "ROM manager", "Superuser", "Terminal Emulator"

What I need to do?
[Atrix 4G Q&A, Help & Troubleshooting] Grey.Mouser:
1. Reboot into Recovery

2. Chose 'install from SD' and select the ROM

3. Make your choices in AROMA installer.

4. Reboot phone

Sent from my MB860
[Atrix 4G Q&A, Help & Troubleshooting] mizaro:
Thanks :)

So there is no need to search for new kernel ?
[Samsung Galaxy Tab Plus] spanjeli:
Can someone port multiwindow options to our new precius JB P6200? :D
[Samsung Galaxy Tab Plus] Chr97:
for the s2 is there a port!

for the galaxy s2 there is a multi window mod. Maybe we coud install it also on our tab 7+. because it has the same exynos chip.

i could´t test this because for my wifi only tab 7+ is no jelly bean yet. :(

but if it does not fuction maybe a dev can port it also to the tab 7+. :D
[Samsung Galaxy Tab Plus] spanjeli:
I test alredy and dont work :(
[Samsung Galaxy Tab Plus] Chr97:
Hmm... So we have to hope that a dev port it to our tab...
[Samsung Galaxy Tab Plus] Graffiti Exploit:
+1 for this. Although apps like Overskreen, Floating Browser and etc exists, it would be great if it was integrated to one app(MultiWindow).
[Samsung Galaxy Tab Plus] Platin465:
Is there a lot of interest for this, or are there alternatives?

Is there a lot of interest for this, or are there alternatives that people/Devs are preferring?

I like the Multiwindow function on my S3, and would really like to see it or something similar on a Galaxy 7" tablet. I want to use it to run a GPS routing App & a Music App at the same time, while running WaveControl in the background. It works great on the S3, but I feel that ~half the screen is too small to be used well for GPS. So, I have had a GT+ for a while, but sold it until I can find which of the two (GT+ or GT2) will get MultiWindow or similar.

I have seen the Overskreen, but that's Browser only. I've seen the floating Apps, but that seems to be specific Apps, and part of the main App gets covered up by the floater. So neither seems to be able to replace Multiwindow, unless there's a way to make any App a floating App.

Any thoughts/ideas?
[Samsung Galaxy Tab Plus] DigitalMD:
All your options are really not going to happen, but one day, in the future, after we get full stable releases for more models of the 7+, someone will port over the multi-window stuff that is form the Note 2 / S4 that is in custom ROMs for the S3. Lets get stable stock ROMs for all the G+ models first

.Android currently is not built to handle floating window, its a real hack just to get a browser to float.
[Samsung Galaxy Tab Plus] Platin465:
Alright, sounds good. I'm hoping that we do get multi-window when the stock ROMs are fully fleshed out. I was also trying to gauge what ROM developers were going for, whether Multi-Window or Floating Apps were more relevant to them. Supposedly there was one ROM that had Beta multi-window, but the developer seems to have dropped that in favor of the floating option. I just don't see it as a viable replacement, at least not yet.
[Samsung Galaxy Tab Plus] unclefab:
Apart from my 7 plus tab I own a Samsung galaxy grand that has 1 gb of ram and a 1.2 ghz double core processor (like our 7 plus), and it has multi windows option out of the box (jb 4.1.2), which means that it's doable for our tab. It's a matter of editing the main flashbar.apk, and some framework files.

Easier said than done, yes, I know...:silly:
[Samsung Galaxy Tab Plus] unclefab:
I just pulled the main flashbar apk and the multi windows related frameworks and permissions from my galaxy grand and pushed them into my tab (p6210 running pa 3.15).

I rebooted, the apk installed, and I saw on my task manager that it was on, good sign.

But (there is always a but) I had nothing to trigger it. On the galaxy grand there is a multi windows icon next to the Wi-Fi, Bluetooth, GPS etc icons on the status bar, but obviously no such icon on the tab.

To get one such icon one needs to edit some jars in the framework folder, and maybe the system ui apk as well. I could do it if I had plenty of time (because I'm still relatively new to those things) but unfortunately I don't have much time in the moment.

If anyone wants to do it just tell me and I'll upload the files here...
[Samsung Galaxy Tab Plus] Platin465:
Thanks for trying! By the way, the ported multiview on my Sprint Galaxy SIII is activated by holding down the back button. Could you try that? I don't know if it will work since on the S3 it is basically a hardware button, but just in case.
[Samsung Galaxy Tab Plus] unclefab:
I tried, without much hope because I'm on pa 3.15 and as you may know the multi windows app works only with the TW framework (pa doesn't use TW ui). And guess what, it didn't work. I tried as well to trigger the app with smart taskbar, multi windows manager and a couple of other apps but nope, no fun...

I had a closer look at my galaxy grand and in some drawable folders I found the multi windows icons and triggers. One would need to add these files to the G plus systemui.apk and framework.apk, and add/remove some lines to some jars and stuff.

It's doable and I probably could do it, but I won't, for the sole reason that I own a p6210 and that jb hasn't been released for that model yet, sorry...

If you know how to decompile/recompile then try this, it works on the S2 and it may work on the G plus:

http://xdaforums.com/showthread.php?t=2024227

But don't forget to do a nandroid back up before, in case something gets messed up...
[Samsung Galaxy Tab Plus] Chr97:
Maybe this is working on our tab

http://xdaforums.com/showthread.php?p=34891499

Is sombody able to do this and give a report?

Edit: Sorry i overlooked the last post. :/
[Samsung Galaxy Tab Plus] THEDEVIOUS1:
Multiwindow mod working tab plus!

I just wanted to let anybody who may not already be aware that i have managed to successfully get multi window working on both the P6200 & P6210. I will link to my original hread below for those of u who are interested....there are a few minor issues but otherwise the mod is fully functional on the Tab Plus

http://xdaforums.com/showthread.php?t=2312004
[Samsung Galaxy Tab Plus] theejay0625:
Thanks for your work! I have read it from the dev thread.. i have some questions.. is the tether working? How about phone function? is it safe to flash the deoxed rom? Thanks!
[Samsung Galaxy Tab Plus] THEDEVIOUS1:
Its not a full rom just a flashable mod but u do have to be on a DEODEXED version...it is completely safe just makes it easier to change theme & mod but as always please read the instructions carefully and be sure to backup your device before flashing. Since I'm assuming u own a P6200 then u will need the original MC3 firmware as well as chrisrotolo's deodexed MC3 zip installed before u flash the multi window mod. Yes, tethering works & the phone function does too BUT u may have to download another dialer from the play store(i'm using ex dialer & contacts) if the samsung phone app wont open
[Samsung Galaxy Tab Plus] theejay0625:
Thanks for the info and thanks for your great work! Will try it when im free.. right now im really busy.. thanks again!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Cyalintz:
Hi,

I have a little problem with my Xperia Ray.

I did a factory reset. And now, the device is fixed on "Xperia" when it boots.

How can I fix this ?

Thanks.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] SXUsr:
Flash a stock ftf.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Cyalintz:
I am not an expert... ^^

How can I flash it ? Is there any tutorial ?

What is tft ?

Thanks for your answer !!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] SXUsr:
Click the first link in my sig if you haven't already or read the guides in the General section.
[Off-topic] AtoZ0to9:
Topic of the Day

This is the topic of the day. The topic will change daily.

It will be discussed in accordance with XDA rules and guidelines.

the topic is:

Legalize it?​
[Off-topic] Dirk:
AMD had their day in the sun when Intel kept flogging the Netburst architecture and pushing clock speeds until they hit the ceiling. Since they they've become more and more irrelevant, unable to beat Intel in any area. Innovation, IPC, Cost/Performance, Manufacturing... Intel hold all the cards.
[Off-topic] _Variable:
IMO Amd is for cheap netbooks, on par with the i3.

-.-.-.-.-.-.-.-.-

Sent from a dark and unknown place

Galaxy Tab 2 7.0 P3100
[Off-topic] AtoZ0to9:
I was completely sold on AMD in the 386, 486, and Pentium years... Then I began to realize that the saying 'more money equals more power' is true... The Intel processors are more powerful, and provide more for the PC...
[Off-topic] AtoZ0to9:
AMD is on a downhill spiral... It may be able to provide sub-solutions for otherwise better-solutions, but it will never be what it was.... POW!!!
[Off-topic] TheNoticer:
Intel ftw.
[Off-topic] :
Let me put this in a way which everyone can agree. Intel is rubbish since celeron,pentinium and atom are really bad. But theydone something good with i7
[Off-topic] matgras:
Atom was meant to be rubbish

sony xperia ray

ics 4.0.4 rooted

stock rom
[Off-topic] Mephikun:
I'm in the middle.

I currently use a Phenom II x4, but the i7 isn't too bad.

Although considering the ii x4 can beat some i7s (1st gen and possibly some 2nd gen), at $99, it's a good choice for people on a budget.

But if I was offered the top of the line i7, I'd gladly take it.
[Off-topic] _Variable:
True... Intel fanboy

-.-.-.-.-.-.-.-.-

Sent from a dark and unknown place

Galaxy Tab 2 7.0 P3100
[Off-topic] :
I thought you are a girl.
[Off-topic] _Variable:
Yes, thats my English teacher back in 6th grade.

And I only have a 1st gen i3.

-.-.-.-.-.-.-.-.-

Sent from a dark and unknown place

Galaxy Tab 2 7.0 P3100
[Off-topic] matgras:
Still better than mine

sony xperia ray

ics 4.0.4 rooted

stock rom
[Off-topic] ak700:
I support ARM
[Off-topic] darkshadow246:
Lol most of the people use Intel because it's better

Sent from my

you'll never know
[Off-topic] undercover:
Imo, AMD is better value for money when it comes to graphics. Cpu though, well, Intel is the king atm. Thing is you never know, it might change at some point, not overnight though.
[Off-topic] Danial723:
I've always used intel
[Off-topic] undercover:
That's why I said it. I have hd4850 (couldn't go any higher due to not willing to change psu) and it still runs well written games like a doddle. Played crysis 2, MW3, Arkham City no problem. Cpu is my culprit, e6400, c2d 2.13ghz
[Off-topic] AtoZ0to9:
Topic has been changed... Should countries legalize marijuana use with laws similar to alcohol?

I think so... The countries would make tons of money on the taxes, and the subsequent trade that's established would make the world economy much better...
[Off-topic] fleurdelisxliv:
Cldnt agree more :D
[Off-topic] Babydollll:
This topic won't last long here. :rolleyes::rolleyes:

But, yes. I think so.
[Off-topic] AtoZ0to9:
If something like this can't be discussed without arguments and / or is somehow against XDA rules, please close the thread I would rather not have it.
[Off-topic] Babydollll:
Don't get mad at me.

I'm just making an observation. :rolleyes::rolleyes::eek:
[Off-topic] LoopDoGG79:
Mods look down on discussion of drugs, legal or otherwise. But, I'm Ok with it. I'll also undercut the cartels and other criminal organizations, and I'll be a truly effective way to fight them.

Sent from my Galaxy Note 10.1! :D
[Off-topic] undercover:
Shall we legalise crack, amphetamine, heroine and the rest of it as well? Then they would register it as a business and kill people legally. Not saying weed is killing, but where do you stop? Imho, unless medical, any consciousness affecting substances should be illegal. Same could be said about alcohol though, but alcohol is by far not as addictive as drugs I mentioned. Cigs are and imho they should be banned too. If they were, I probably wouldn't have started smoking.
[Off-topic] Babydollll:
Not legalize

DECRIMINALIZE!

DECRIMINALIZE IT!

Yes!

Heck yes!
[Off-topic] Danial723:
What she said X 9000
[Off-topic] Babydollll:
and there's a huge difference between the two. :rolleyes:

One is: go ahead: get high legally and maybe kill yourself in the process

The other is: we recognize that there will always be a subset of society that chooses to use.

We will not prosecute you for using (no one is saying not to prosecute any other crimes committed while trying to obtain, or use said substance, just the actual procurement and use of it)
[Off-topic] -DarkKnight-:
I haven't seen such terrible grammar in my life.
[Off-topic] M_T_M:
I knew you were going to pull this crap!!

Thread closed!!!

PS: if you even ask why I closed it...:cool:
[Nexus 4 Q&A, Help & Troubleshooting] thunder8yte:
Finally got mine in the Netherlands.

What an awesome phone!

Had the S2, Galaxy Nexus, S3, Note 2 (too big for me) but this phone really rocks.

I do have 1 question, is it possible to get the nav bar on autohide with a specific rom? With P.A.C. you can set the size to 0%, but then you get the pie, and i don't like the pie.

Ideas ?
[Nexus 4 Q&A, Help & Troubleshooting] snak3ater:
Aokp :angel:
[Nexus 4 Q&A, Help & Troubleshooting] Vangelis13:
Every rom that has Expanded Desktop lets you hide the navbar. And basically every major rom has that nowadays.

CM, Carbon, liquidsmooth, aokp, etc etc.

(Quoted wrong message, meant to quote op. You're right Sak3ater. :))
[Nexus 4 Q&A, Help & Troubleshooting] snak3ater:
Yup now a days almost every Rom has got options to customize Navbar..

Pie is actually good..I needed some time to get used to it.Now i cant live without it :D
[Nexus 4 Q&A, Help & Troubleshooting] DowntownJeffBrown:
Yea I agree about pie. I can't live without it now :D

Sent by my Kitteh he chews on muffins on my Sexy Nexi 4 using Tapatalk
[Nexus 4 Q&A, Help & Troubleshooting] Nigeldg:
I don't know about other ROMs since I've only used stock and PA, but on PA you can have the navbar hide in individual apps which I've found very useful. Whenever I want to play a game the navbar disappears but then comes back again during normal use where I find it unobtrusive (at 70% the size).
[LG Optimus G (International)] lorenzo.themax92:
Hi at all,

In europe , and italy, we got lg optimus g e975 , and my question is: the developer will support this device with cyanogen mod 10, or we can also install the custom rom of the canadian version ( e973) :confused:

Many thanks at all

:D
[LG Optimus G (International)] skdubg:
E973 without cam
[LG Optimus G (International)] lorenzo.themax92:
So i can install e973 rom, in lg optimus g e975 , but i don't have camera support?

:D
[LG Optimus G (International)] NickereN2O:
Exactly! Got the E975 myself and the CM10.1 is sweet, byt I really miss my camera!

Just wait, they say they Are working on a kernel for our version (so we get a working camera) :)
[LG Optimus G (International)] hehe1110j:
e975 cam 13mpx unlocked bootloader by freegee,wait rom cm10.1 for it
[LG Optimus G (International)] Ethos Evoss:
where?
[LG Optimus G (International)] kimitza:
Lol,almost 3 weeks since we have official cm10.1, all working,almost no bugs.In fact the only bug i could find is the call by bluetooth one.I don't know what forums you read guys,but for sure it's not xda.we have some interesting projects here..but if you can't find them,i guess it's better this way.
[HTC One S] Dark_AJ9:
ZeroCamera doesn't focus like the stock one app.

Where can i found it?
[C++ or Other Android Development Languages] ScatteredHell:
HI, guys.....:D

From this guide you can learn how to run your app in a AVD

1- Open MVS

2- Then choose a name for your project, then OK.

View attachment 1862041

3- This is how your code will look like, you have to do your coding here.

View attachment 1862043

4- If you want to change the project's android version(default is 2.2 Froyo) see below

View attachment 1862057

View attachment 1862058

Then save the project

5- To run this, press F5 or press the button shown below

View attachment 1862044

6- In the first dialog it shows your device if u have connected it.

View attachment 1862060

If u don't, click start emulator imager

7- Now choose the AVD that you have created before

View attachment 1862061

View attachment 1862068

8- Wait until it loaded

View attachment 1862071

9- Now choose it's name and OK.

10- Some packages will installed to it.

View attachment 1862075

11- Now app will open, it isn't? then go to menu open dude :)

View attachment 1862086

Happy CODING!
[Xperia Z General] cheffex10:
Hi

I got the OTA 434 firmware update on my XZ with .350 in germany.

I have done the rooting with superSu, which you find in the developer section on the 350 firmware. I remember an app i used on my X10i and i used it again and it worked fine.

You'll find the free app in the play store :

h**ps://play.google.com/store/apps/details?id=org.projectvoodoo.otarootkeep
[Xperia Z General] AMoosa:
Are you asking if it'll work or telling us that it worked?
[Xperia Z General] alex3305:
He said, he used it again, so I suppose it worked again, hè?
[Xperia Z General] cheffex10:
Thanks, yes I used it and I still have root with firmware.434.
[Xperia Z General] skd:
I haven't used anything but my xz has rooted after the ota update :) is it normal?
[MDA, XDA, 1010 General] sadboy:
I bought an SX56 on ebay, it was locked to ATT, I unlocked it with your GREAT SER and brought it to a service provider here in Mexico, he did not know the phone and did push on the right hole of the SIM card, I think he damaged the phone, the warning is very clear : 'Dont put the stylus on the right hole to the right of the SIM card, it will cause irreparable damage to your device' . Stupid dude did not read the instructions.

The device now only can be turned on when it is on the cradle.

Helpme please!!! :cry:
[MDA, XDA, 1010 General] ntabikha:
did it break? if not, find a way to pull it bak in place.

if anything... open the case and rewire it.
[MDA, XDA, 1010 General] sadboy:
I'm so stupid. The plastic door was not well closed, the phone was able to turn on when it was on the cradle because the walls of the cradle closed the plastic door.

Thanks to the great guys at xda-developers.com I now can use my device on MEXICOOOOO

Saludos! hehehe
[MDA, XDA, 1010 General] chibo:
Hi dude, how did u unlock the device ?

Hi mate

I got the device from a friend at the US (I am in Israel)

how did u unlock the device - is there a way to do it with out a serial cable ???

Thanks :wink:

Haim
[MDA, XDA, 1010 General] ntabikha:
yes! but it WILL hard reset your device!

download the 'special edition rom 1.2' from this website.

or cook your own 3.xx.xx

that one has a built in function that will permanatly remove the lock.

after that you can upgrade to any 2003 version you like.

and by the way, incase you didnt know, there are great

localizing software, in your case Hebrew, for ppc.

wich will enable you to write hebew alphabet and all... ;)