yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] felixsarp:
Thank you. I have googled and and just been able to create my first widget. I however need to update the widget with data from a webservice via http request. I have got code to do this in a real app but can't seem to figure it out in a widget. My programming skills is very very low especially for java.

Any help will be appreciated. If I have to pay, how do Ii go about that please.

Thanks
[Java for Android App Development] felixsarp:
This is what I came up with but the code won't run unless I take out the whole try/catch block. No errors are shown though.

public class LovelyBatteryWidget extends AppWidgetProvider {

//remote views object to access visible interface elements
private RemoteViews widgetViews = new RemoteViews("com.yourdomain.battery", R.layout.battery_widget);

/*
* Determine what happens when the widget updates
* - this method is called repeatedly
* - frequency determined by updatePeriodMillis in res/xml widget info file
*/
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds)
{

//register for the receiver when the battery changes
Intent received = context.getApplicationContext().registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
//find out what action has been received
String receivedAction = received.getAction();

TelephonyManager manager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
String carrierName = manager.getNetworkOperatorName();
//String msisdn=manager.getSimSerialNumber();
//only carry out amendments if the action is a change in the battery level
if (receivedAction.equals(Intent.ACTION_BATTERY_CHANGED))
{
//get the level amount, pass default value
int level = received.getIntExtra("level", 0);
//indicate the level amount within the text view
this.widgetViews.setTextViewText(R.id.text_level, level+"%"+carrierName);
this.widgetViews.setTextViewText(R.id.text_balance, "4.44");
//this.widgetViews.setTextViewText(R.id.text_data, "1433");

try{
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = httpclient.execute(new HttpGet("myURLGoesHere"));
StatusLine statusLine = response.getStatusLine();
if(statusLine.getStatusCode() == HttpStatus.SC_OK){
ByteArrayOutputStream out = new ByteArrayOutputStream();
response.getEntity().writeTo(out);
out.close();
String responseString = out.toString();
int text=responseString.length();

this.widgetViews.setTextViewText(R.id.text_data, String.valueOf(text));
//..more logic
} else{
//Closes the connection.
response.getEntity().getContent().close();
throw new IOException(statusLine.getReasonPhrase());
}
} catch (Exception e) {
return;
}
//get component to update
ComponentName appComponent = new ComponentName(context, LovelyBatteryWidget.class);
//update the widget
AppWidgetManager.getInstance(context).updateAppWidget(appComponent, this.widgetViews);

}

}

}

Battery level updates normally and so does balance when i comment out the whole http request part. However, all code including battery level and balance parts won't run when the http request part is included.
[Java for Android App Development] Eloar:
You should not try performing any IO operations on main (UI) thread.

I would build service with its own Looper object or using AsyncTask to perform HTTP request and sending back received data.
[Java for Android App Development] Masrepus:
There is a guide on the internet, i think on android dev docs to make a word of the day widget that gets the word from wiktionary

---------------------------------

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods (but only for the first time ;D)

---------------------------------

Gesendet von Tapatalk

---------- Post added at 09:41 AM ---------- Previous post was at 09:40 AM ----------

About the try catch block: with http response you need to cover IOException and TimeoutException and also a few more

---------------------------------

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods (but only for the first time ;D)

---------------------------------

Gesendet von Tapatalk
[Galaxy Note II N7105 Android Development] bawffg85:
1.If you lose root，flash UPDATE-SuperSU-v1.99.zip

2.Many custom settings are enable by default,if you want to disable them,you must enable them first .
[Galaxy Note II N7105 Android Development] Dedzdedz:
I might get a Note 2 N7105 by the end of the week, if it happens i might try this. Screenshots?

Enviado do meu LG-F320 através de Tapatalk
[Galaxy Note II N7105 Android Development] bawffg85:
Wait wait....
[Galaxy Note II N7105 Android Development] Dedzdedz:
Okkkk xD sorry

LG-d802 Cloudyflex 1.3 Stock Kernel
[Galaxy Note II N7105 Android Development] MrGlonass:
What browser has the rom? I feel that note2 version works better then the version of note3 (no lag) at least on n7105

Thanks for your work

Inviato dal mio GT-N7105 utilizzando Tapatalk
[Galaxy Note II N7105 Android Development] bawffg85:
If you love note2 version.I will give you a flash zip to N2 brawer.

Oh。Sorry，the browser is N2 version。
[Galaxy Note II N7105 Android Development] HC4Life:
---deleted---
[Galaxy Note II N7105 Android Development] jdstrydom:
would have loved to try. but the mirror speed on http://pan.baidu.com is very bad.
[Galaxy Note II N7105 Android Development] vincentshjuan:
Bad download portal

It's impossible to download from the portal u are using........maybe you can switch to other portal pls.

Thanks.
[Galaxy Note II N7105 Android Development] bawffg85:
Is pcloud ok？I m uploading it to pcloud.

It is ok now。
[Galaxy Note II N7105 Android Development] from.insider:
Hi, thank for the rom. Quick question;

1) Wipe or none wipe?

2) Do i need to upgrade the bootloader?

Thanks
[Galaxy Note II N7105 Android Development] bawffg85:
Yes for two questions .
[Galaxy Note II N7105 Android Development] overjoy71:
Hi guys,

If you are using Philz's recovery, you can't use version 6.15 to flash this rom, You will get an error, go back to version 5.07 and it works fine.
[Galaxy Note II N7105 Android Development] 32dave:
Both your roms work great on my Rogers i317m thanks you your hard work
[Galaxy Note II N7105 Android Development] bawffg85:
Thanks for feedback
[Galaxy Note II N7105 Android Development] brightboy:
Thanks for work!

However, I found 3 problems:

1. "android.process.media has stopped" popup on every reboot

2. Press *#0*# cannot show the General Test Mode

3. Proximity Sensor not sensitive. During calls, the screen hard to turn off.

Thanks
[Galaxy Note II N7105 Android Development] Rajaasim1980:
Good job dude

Any link for flashable modem of e250s?
[Galaxy Note II N7105 Android Development] gecsa:
Downloaded work fine!

... but 4G will dosen't work. I setting all the parameters, reboot and nothing, Any suggestion to solv this problem?:(

---------- Post added at 08:20 AM ---------- Previous post was at 08:11 AM ----------

Switch off and reboot, solv the problem...:laugh::laugh::laugh:

THX
[Galaxy Note II N7105 Android Development] Razorbeast19:
Is there a different mirror to download this on? I can only see the pan.baidu.com one and it's going painfully slow. Thanks.
[Galaxy Note II N7105 Android Development] bawffg85:
I am fixing the vibtaring problem.....
[Galaxy Note II N7105 Android Development] TUAN76:
Install the rom on my e250k ok no vibration
[Galaxy Note II N7105 Android Development] botski:
if i use this ROM, my vibrate will function?

---------- Post added at 02:43 PM ---------- Previous post was at 02:40 PM ----------

:D im really excited!!
[Galaxy Note II N7105 Android Development] saimon05:
my touch key light duration is 1.5s although i chose always OFF with AGNI kernel someone notice that?
[Galaxy Note II N7105 Android Development] bawffg85:
N7105XXUFND3_SuperLite-R3.2 changelogs :

1 Re-process all over , some third applications FC，translate custom setting into english

2 Use Aroma

*** 7105, i317, t889 select 7105 models

*** Korean version select the correct kernel

*** In the Aroma, several optional sound and boot animation, of course, there are still the sexy lady. . .

** You can choose whichever optimization you like

3.Support E250

4.You d better use the latest TWRP
[Galaxy Note II N7105 Android Development] Senyaka:
You will also have to set it off in the main display settings. Then turn your screen off once. Once you wake it again no more backlights.
[Galaxy Note II N7105 Android Development] saimon05:
where is "Main display settings"? thank you very much:), i set on menu-settings-my device-display-touch key light duration-alwaysoff
[Galaxy Note II N7105 Android Development] Senyaka:
Haha That is it mate! :)

Also in Agni control make sure touchlight settings are also set to off. But I think you already mentioned that before.
[Galaxy Note II N7105 Android Development] fatjoejr2001:
How do you get rid of that speed indicator in the status bar?

Tap, tap says the wicked Note +₩● ?
[Galaxy Note II N7105 Android Development] bawffg85:
Someplace in cistomsetting...you find it yourself....
[Galaxy Note II N7105 Android Development] fatjoejr2001:
Looked there and disabled everything but still this remains in my status bar. A screen shot would be helpful ?

Tap, tap says the wicked Note +₩● ?
[Galaxy Note II N7105 Android Development] fatjoejr2001:
I shut off everything and it's still there.

Tap, tap says the wicked Note +₩● ?
[Galaxy Note II N7105 Android Development] bawffg85:
It is enable by default.You must enable it first and then disable it....

btw,what theme do you use?
[Galaxy Note II N7105 Android Development] truesainity:
Stuck in boot loop

Well i am using the latest version of TWRP and i am on a 4.3 bootloader ,after installing R3.2 i got stuck at the Samsung logo for like 20 minutes with no hope, i downgraded to R2.0 and it was working fine any idea how to get R3.2 working?
[Galaxy Note II N7105 Android Development] bawffg85:
Try to reflash the kernel for your model .
[Galaxy Note II N7105 Android Development] hannsz:
This ROM is way, way more stable than the 4.3 ROM. Holding the home button crashes the systemui though. Any ideas?
[Galaxy Note II N7105 Android Development] bawffg85:
Did you do a full wipe ?When I hold the home botton,recent apps come,it is ok for me.
[Galaxy Note II N7105 Android Development] truesainity:
Can the 4.3 kernel be used?

If not, could you please give me a download link for the n7105 kernel?

or can I just flash agni kernel?
[Galaxy Note II N7105 Android Development] bawffg85:
Agni kernel is OK.
[Galaxy Note II N7105 Android Development] Ashtwinks:
For E250：If you have WiFi or vibrate issue ，flash these kernels http://pan.baidu.com/s/1dDmZyV3

Can not figure out the link on the page (it is Chinese) to click.. can some one help and provide the exact link to click please
[Galaxy Note II N7105 Android Development] windylawyer.1712:
Could anybody use E250s can provide me the file : param.bin :( I need this file to flash my phone back to stock :(

How to get param.bin

- Install ADB driver https://docs.google.com/file/d/0B_1zjuazXSqbLVRGTGlaV3cwa3c/edit

- Check USD debug

- Plug ur phone with a cable, Run ADB command :

adb shell (Enter, E250s will show the question : choose yes)

su ( Enter )

dd if=/dev/block/mmcblk0p4 of=/sdcard/param.bin (Enter)

SUPER THKS :(((
[Galaxy Note II N7105 Android Development] windylawyer.1712:
Anybody :((( Help me plz

Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk
[Galaxy Note II N7105 Android Development] bawffg85:
You can flash stock firmware to go back to stock!
[Galaxy Note II N7105 Android Development] windylawyer.1712:
I flash stock firmware, but my wifi doesnt work ( full signal but cant access internet.try many wifi station)

Cause i flash a rom which contains param.bin file( rom convert my e250s to N7100)

Stock firmware has no param.bin file so, i think the param.bin is still not stock.

That why i ask for help

Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk
[Galaxy Note II N7105 Android Development] windylawyer.1712:
Really want to back to stock to try this rom :(

Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk
[Galaxy Note II N7105 Android Development] windylawyer.1712:
One more :( E250s user.plz help :(

I made a q&a thread but no one anwser.sorry for off topic

Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk
[Galaxy Note II N7105 Android Development] bawffg85:
If you find carefully,some stock firmwares have param.bin in them.I remember that the first 4.3 firmware has a param.bin...
[Galaxy Note II N7105 Android Development] Unknownkj:
Seems like you are coming from n7100? Try flashing A compatible modem. Should fix the wifi issue.
[Galaxy Note II N7105 Android Development] windylawyer.1712:
I try to download the firmware from Sammobile, but n found no param.bin :( i will try again.thank for the tip

Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk

---------- Post added at 10:00 PM ---------- Previous post was at 09:55 PM ----------

No, i use SHV-E250s.

I flash a custom rom which convert my E250s to N7100. All works fine.i just want to go back to stock 4.4.2 to Run this Rom. Cause 3.2 fix google play crash.

But when back to stock, wifi doesnt work although i connect to strong wifi. Try with many wifi stations but no luck.

I guest it is related to param.bin. cause the Rom i flashed contains param.bin and stock firmware doesnt. And i read somewhere in xda param.bin relate to wifi too :(

Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk
[Galaxy Note II N7105 Android Development] 32dave:
I have a request if possible could you make a systemui with the signals on the left i have tried but it won't recompile for me. I have posted a screen shot of what i mean
[Galaxy Note II N7105 Android Development] Ashtwinks:
Here you go...
[Galaxy Note II N7105 Android Development] windylawyer.1712:
thks bro. It works now :D u make my day :D my wifi works like charm :D fast as light :D :good::good::good::good:

Downloading the Rom right now :D
[Galaxy Note II N7105 Android Development] windylawyer.1712:
Smoth, customize amazingly. Google play works like charm.no app fc.hehe.thks for help and Rom here.

Will feedback about battery soon :D
[Galaxy Note II N7105 Android Development] windylawyer.1712:
Could u add some s5 feature like Ultra power saving, laucher, app.... ;) it is pretty cool ;)
[Galaxy Note II N7105 Android Development] bawffg85:
I am working on it...
[Galaxy Note II N7105 Android Development] windylawyer.1712:
Awesome ;) cant wait to it :D
[Galaxy Note II N7105 Android Development] hannsz:
I think what'd be better than adding gimmicky features would be to port a good kernel. SJKernel has long been abandoned and the stock kernel is giving me a ton of wakelocks and needs to be rebooted daily.

What's the best baseband/modem to run? Changing to the old 4.1 LK9 baseband and it fixed one mdm_hsic_pm0 wakelock but I still have a bad PowerManagerService wakelock that can't be fixed. Battery drains 1-2% overnight but gets about 3-4 hours screen on time. 4.3 and 4.4 have been spectacularly bad for battery life, but I always used a custom kernel on 4.1.

What would it take to port a kernel to our devices?
[Galaxy Note II N7105 Android Development] Ashtwinks:
I second this... mdm_hsic_pm0 is giving very high wakelocks and screwing up not only the battery life but is also impacting the time it takes to charge the phone

is Agni a better Kernel?
[Galaxy Note II N7105 Android Development] bawffg85:
I would love to do it but i am not good at kernel stuffs.:p
[Galaxy Note II N7105 Android Development] mnw1989:
Nice job bawffg but how I can remove Chinese in costume setting
[Galaxy Note II N7105 Android Development] shadowlabs9:
For those with wakeloks, please try to run "Usbstorageunmountter be gone" in xposed.

Best regards
[Galaxy Note II N7105 Android Development] botski:
【ROM】【June 4】4.4.2.N7105XXUFND3_SuperLite_R3.2 Fix Googleplay▏Support E250

my friend, can i use this in dn3 rom beta 2? i almost lost my root. i tried this now but i cant open supersu.
[Galaxy Note II N7105 Android Development] windylawyer.1712:
yes u can. if u have custom Recoveyr, just flash SuperSu zip 1.99 via recovery then all is fine
[Galaxy Note II N7105 Android Development] botski:
i tried a lot version for supersu. but still no luck.
[Galaxy Note II N7105 Android Development] windylawyer.1712:
that's strange. it must work. i Root many phones with that method and no phone lose Root :-? which recovery do u use? :confused:
[Galaxy Note II N7105 Android Development] bawffg85:
Is there any Chinese?Get some screenshots!
[Galaxy Note II N7105 Android Development] botski:
i solved it! thanks :)
[Galaxy Note II N7105 Android Development] windylawyer.1712:
;) press the buttom ;)) hehe

Gửi từ T0LTE của tôi bằng cách sử dụng Tapatalk
[Galaxy Note II N7105 Android Development] botski:
Sorry, you are limited to 8 thanks per day
[Galaxy Note II N7105 Android Development] windylawyer.1712:
Nerver mind ;) just for fun ;))

Gửi từ T0LTE của tôi bằng cách sử dụng Tapatalk
[Galaxy Note II N7105 Android Development] botski:
i will press thanks later :)
[Galaxy Note II N7105 Android Development] mnw1989:
Her Chinese
[Galaxy Note II N7105 Android Development] mnw1989:
her is
[Galaxy Note II N7105 Android Development] bawffg85:
Did you use the latest version?
[Galaxy Note II N7105 Android Development] mnw1989:
Yes version 3.2
[Galaxy Note II N7105 Android Development] bawffg85:
Are they all?If they are,you can try to flashView attachment FixCustomsetting.zip
[Galaxy Note II N7105 Android Development] liljom:
Hi there.

Do we know anything about the next version's release date? No push, I just use an other ROM, and I would like to do a full wipe to change to this ROM, and I would just hate doing it, and then again in 2 days, when a new version comes out :)

Thanks, lj
[Galaxy Note II N7105 Android Development] lelouch31:
Yeah i would love to know when is the next release because our internet is very slow.
[Galaxy Note II N7105 Android Development] Ashtwinks:
Hi

I am trying to load 3.2 on my SHV e250s... not moving ahead of the boot animation ... using TWRP (openrecovery-twrp-2.7.1.0-t0lteskt)

any guidance on how to move ahead

have tried philz_touch_6.41.6-t0lte but is does not even go to boot animation

thanks in advancee
[Galaxy Note II N7105 Android Development] atmos929:
I have a i317m, usually t0lte ROMs and kernels work fine... tried this ROM selecting 7105 kernel and it stays in bootanimation... flashed latest DEVIL kernel and it's stuck too... I was only able to get pass bootanimation with latest TW AGNI, but camera does not work... I remember having camera issues like this back in JB TW based ROMs and they would usually work after flashing kernels.

ROM feels very smooth and plenty of options available. Thanks.

Also, Dev... is your undervoltage similar to this?

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

I am wondering if it's worth the hassle to flash one of those scripts.
[Galaxy Note II N7105 Android Development] bjpafa:
Hi, you should know better than me. Anyway, I run a t0lte, light of my eyes. I change rom aroun DEVIL kernel and devil CWM recovery with second rom f2fs if you want. AOKP nightlies, SOKP RC, CM11, SlimKat 5 at the moment as primary ROM.

Well, I have had freezes on AOSP Camera and others, let me tell you that the only camera that functions with not so many flaws is Lenovo 3.6.6. or LG, ported and funcional.

Agni is good but dual boot devil is a hell of a kernel and it matches with t0lte.

Pick a camera and tell about second Rom (CM11 Remix burst Kang 2.9.2 and stuff...)

Congrats
[Galaxy Note II N7105 Android Development] atmos929:
Ok,,, it was one hell of a trip just to get the camera working... I'll share my findings just in case anyone with a i317m has issues when installing. I had to flash official 4.4.2 in Odin first, in order to have latest stock bootloader and kernel. These are the steps I did in the end:

* prior to flashing, enter your custom recovery and wipe EVERYTHING... even the virtual SD card.

* flash official 4.4.2 ROM from Samsung in Odin.

* Let the ROM start up... WiFi, data and camera worked. Open the camera and confirm it works! (I think that opening it is very important somehow).

* reboot into download mode, flash custom recovery in Odin.

* reboot into recovery, wipe everything again, select SuperLite to flash.

* in AROMA, keep the kernel untouched.

* Finish flashing SuperLite and let it start up.

------At this point, the camera still works!... but WiFi doesn't... I am not sure why since I am already in 4.4.2 bootloader and kernel, probably because it's i317m.

* reboot to recovery, flash AGNI stock, (I wipe dalvik everytime I flash a kernel). reboot system.

And that's it... I got the camera and Wifi to work. I'll see if it was worth the effort :).

It would look to me that the camera can only work the first time on stock 4.4.2 i317m kernel, this is why I had to flash official ROM prior to SuperLite. At some points in all my retries, I had already installed AGNI once, and tried installing SuperLite selecting to keep kernel, and then selecting to install 7105 kernel and I was never able to make the camera work even thou I was already in 4.4.2 bootloader, not even by wiping data on apps Camera and Gallery.

And just in case anyone is in the same scenario, I have a Mexican i317m Telcel... I flashed Canadian i317m Rogers and it worked right away, no problems in data connection, no APN configuring or anything (3g and 4g... I checked both carriers had same frequencies).

Oh and btw!!... remember that getting stock 4.3 or 4.4.2 bootloader will give you the knox warranty void flag set as soon as you flash any custom ROM... my warranty is already over so I did not care.

Cheers!
[Galaxy Note II N7105 Android Development] saimon05:
any update pleaase？

---------- Post added at 05:40 PM ---------- Previous post was at 05:39 PM ----------

any update please？
[Galaxy Note II N7105 Android Development] windylawyer.1712:
4.0 already. But he released in koxda.com. not here :-< with new base, no google play and custom setting, abt 900mb
[Galaxy Note II N7105 Android Development] hannsz:
Went back to 4.1.2 JediX20 ROM...

Phone is incredibly fast compared to 4.4.2, which I thought was still quick enough. No bugs, no naggging issues, no wifi disconnect problems.

Unfortunately I think the usefulness of this phone is coming to an end seeing the drastic performance difference between 4.1.2 and 4.4.2. I easily get 3 hours more screen on time (~7 hours on average) with 4.1.2.
[Galaxy Note II N7105 Android Development] R0B3RTF1SH3R:
yeah same for me when i used 4.1.2 CM =/
[Galaxy Note II N7105 Android Development] nelly_85:
I would love to see screen shots to see your screen on time with the two roms...I think Samsung tinkered with the screen brightness on 442 to make it brighter.
[Galaxy Note II N7105 Android Development] Squilchi:
I downloaded 4.0 from koxda and just installed kk gapps everything works fine.
[Galaxy Note II N7105 Android Development] mnw1989:
Hi my friends anyone can help me to change Chinese to English please
[Galaxy Note II N7105 Android Development] adepentane:
GUys, good day all. Please i rooted this phone GT-N7105 and SuperSU aint working because of KNOX Security. I need help on this one. I also have CWM recovery flashed. HOW DO I REMOVE OR DISABLE KNOX PLEASE SO AS TO USE SUPERSU ??

Admins and friends please help. Thanks in Advance all.
[Galaxy Note II N7105 Android Development] Squilchi:
+1 thanks in advance the rom looks awesome
[Galaxy Note II N7105 Android Development] crslaytor:
the baidu download link is ridiculously slow and impossible to use :mad:
[Galaxy Note II N7105 Android Development] bawffg85:
Different size Seclauncher4

http://xdaforums.com/showthread.php?p=50752278
[Galaxy Note II N7105 Android Development] saimon05:
the battery life fo this rom is very good thankyou:D
[Galaxy Note II N7105 Android Development] Sys81:
Hi can i ask whats the difference between this rom and this rom? http://xdaforums.com/showthread.php?t=2632539
[Galaxy Note II N7105 Android Development] saimon05:
i used both rom before and i stay in this rom because this rom seems to have better battery life and clean. however,Note2_lte_e250_R7. 2 has armoa and pretty much more options, features and programs you can choose it when install:victory: