yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] gvpmahesh@gmail.com:
I have been trying to implement the broadcast receiver programatically , but my unregister method is not working or the app is working even if it in killed state .What i'm trying to accomplish is to display a test message ,when a sms receives ,,i have two buttons in app,register and unregister .If the user presses register ,no matter whether the app is running foreground or background the app should display the toast message,but if i press unregister the app should not invoke toast message .The code is

package gates.apps.automaticmessageresponder;

import android.app.Activity;
import android.content.ComponentName;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

SmsReceiver broadcastReceiver=new SmsReceiver();

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

public void register(View view){

this.registerReceiver(broadcastReceiver, new IntentFilter(
"android.provider.Telephony.SMS_RECEIVED"));
Log.e("register","pressed");

}
public void unRegister(View view){

this.unregisterReceiver(broadcastReceiver);
Log.e("unregister","pressed");

}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

}

and another class is

package gates.apps.automaticmessageresponder;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.telephony.SmsMessage;
import android.util.Log;
import android.widget.Toast;

public class SmsReceiver extends BroadcastReceiver {

// Get the object of SmsManager
final SmsManager sms = SmsManager.getDefault();

@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub

// Retrieves a map of extended data from the intent.
final Bundle bundle = intent.getExtras();

try {

if (bundle != null) {

final Object[] pdusObj = (Object[]) bundle.get("pdus");

for (int i = 0; i < pdusObj.length; i++) {

SmsMessage currentMessage = SmsMessage.createFromPdu((byte[]) pdusObj[i]);
String phoneNumber = currentMessage.getDisplayOriginatingAddress();

String senderNum = phoneNumber;
String message = currentMessage.getDisplayMessageBody();

Log.i("SmsReceiver", "senderNum: "+ senderNum + "; message: " + message);

// Show alert
int duration = Toast.LENGTH_LONG;
Toast toast = Toast.makeText(context, "senderNum: "+ senderNum + ", message: " + message, duration);
toast.show();

} // end for loop
} // bundle is null

} catch (Exception e) {
Log.e("SmsReceiver", "Exception smsReceiver" +e);

}

}
}

i have not modified the manifest ,except adding sms recieve permission

But the problem with above code is ,even i don't press register it's getting invoked and even if i press unregister button ,it's not stopping
[Java for Android App Development] boggartfly:
Dude you haven't added a listener for on click(unless you have specified register in layout for button). Nor can I see the button defined. Plus your toast message falls in try catch block. So look for clues in that. I think it'll work once you correct the code. I'll help more if its possible.

Please give a thanks if you think this post helped you!
[JAMin, XDA Neo, S200 General] andrew_sh:
I was wondering if you could downgrade to an old version using maimachs romupdateutility.exe , then unlock using awizard and doing the update again.

I think this would be the safest because the device will be also cid unlocked.

Has anyone tried this???
[JAMin, XDA Neo, S200 General] sup3rm4n:
i tried getting to an older version but i couldnt... all i could do was flashing rom from imate, dopod and qtek but they to be always a more recent version from the one installed
[Galaxy Note II General] tennu123:
Hello.

I really like the Note 3 mod, but i dislike the new Snote app. Is there any way to have the Note 3 features, but keep the old S note app? I use the math input a lot, but in Note 3's S note it is very hard to use.
[G2 Q&A, Help & Troubleshooting] Jess813:
Is there any way to not make the music turned down after a call it's annoying to have to keep present volume up after a call. ...
[G2 Q&A, Help & Troubleshooting] Onlyshits:
Have you tried with gravity box for Jb?
[G2 Q&A, Help & Troubleshooting] Jess813:
No... what's that
[G2 Q&A, Help & Troubleshooting] repoman_1966:
I mistakenly formatted everything on my G2 so I have no OS installed and it just boot loops into TWRP. I'm unable to adb push or adb sideload because windows 8 won't load the correct usb driver. I have installed the android sdk and the google usb drivers. Have also installed the LGUnited 3.1 usb drivers to no avail. Have also disabled the signed drivers checking, . I'm running windows 8.1 x64. any ideas which driver to use?
[General Questions and Answers] Lancerlove:
Hello,

Could anyone help me to install a custom ROM on a smartphone?

I've recently bought a Cosmote Smart Xceed(Romanian Brand) which is just a rebrand of Gionee Elife E5(they are identical). I have no idea about ROMs, CWM or ROOTing, but I would like to be able to flash a custom ROM on it( CM preferably, but anything better than android 4.2.1 will do) . I have already installed CWM and I was able to boot into it. But I have no idea what that means or what I should do from there onwards. Could I get some info about that guys?

Thanks!
[General Questions and Answers] divyamg28:
first of all you need to install cwm

then search a custom rom for your device

and the instructions to flash it will be in its description only

Simple!!!

DO TAKE A BACKUP BEFORE FLASHING ANYTHING :o
[General Questions and Answers] Lancerlove:
The problem is, I cannot find a custom ROM specifically for my device. Should it be configured only for my device?
[General Questions and Answers] divyamg28:
yess...
[General Questions and Answers] thepaperescape:
Generally the more popular your device the better chance you have of finding devs that are working on it. It doesn't hurt if it's a flagship device.
[General Questions and Answers] bobs158:
after you have installed cwm and have found the rom you want for your phone

go into recovery (cwm or twrp) and go to "back up" and make a back up. second go to wipe and wipe cache then wipe dalvic cache (if your using cmw you will have to go to advanced on the home screen to wipe dalvic cache)

third go back to wipe and wipe system, after that wipe the cache and dalvic cache just like before

And for the final stage go to install, find the rom you want (will be a zip file) and then flash it, when done wipe cache and dalvic cache one more time then reboot

And bam you should have you new custom rom (you dont have to keep wiping the cache and dalvic cache but its recomended)
[General Questions and Answers] visionerator:
please be careful. some identical phone isn't really identic.
[General Questions and Answers] nexpired:
Gionee Elife E5 Discussion

I have the Gionee E5 and having the same issue. There is no developmental work done for this device. I somehow managed to install CWM recovery but not able to find any custom roms or anything for this device. If you find something please let me know and i will do the same if i find any.
[General Questions and Answers] astearon:
Same here. I wish CyanogenMod was ported to the e5. Any chance a dev could pick this up?
[General Questions and Answers] Lancerlove:
Another month has passed and still no Custom ROM for this phone. I think I will try to bake my own ROM and add some scripts to it. Will post it here if it's going to be worth it.
[General Questions and Answers] astearon:
Te rog mult de tot sa faci un backup la nandroid. Am mare nevoie de firmware-ul original cosmote.

Incerc si eu sa compilez ultima vers CWM...de aici si nevoia :(
[General Questions and Answers] andrim3:
First of all you need to install CWM

then look for a custom rom for your device

-choose zip from sdcard

-then flash your ROM will install an existing store in extsdcard

-select yes

-flashing will run by itself

-wait until the process is complete

new rom already in your phone
[General Questions and Answers] BopIt:
No Custom Roms?

No custom roms for your phone also? My Samsung Galaxy Discover (SGH S730M) shared the same fate, there is an alternative however. Check out "Xposed Framework" on the XDA forums, don't get me wrong, it's not a custom rom but you can tweak so many settings it'll make your root worthwhile :laugh:
[General Questions and Answers] agenor97:
I want a backup for this phone too.

Vreau si eu un backup pentru acest telefon pentru ca nu imi mai merge aplicatia preinstalata "Muzica".

No custom rom for this phone?
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] bpmccain:
I have a rooted and unlocked I337 from AT&T which I am now running in Canada on the Rogers network.

I haven't received the 4.3 update from either AT&T or Rogers, and nothing seems to be available through Kies either. I'm assuming I am supposed to get it through AT&T, but that it would only work with an AT&T SIM card in the US. Is that correct?

Anyway to get the update?
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] Gage_Hero:
I am pretty sure you won't get the update from Rogers as your only using their sim rom would not be compatible with your phone.. I337... Rogers is I337M.... I also don't think you will get it from AT&T because your rooted..... Just a guess but if you just want to get to 4.3, I would think you need to use an AT&T rom which you can find in the general thread to flash using Odin, but I would do a lot more reading and asking questions before you dive in the deep end....
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] bpmccain:
Thanks. Can't flash using Odin AFAIK, as I am on MF3 baseband.

But what you're saying is that if I wasn't rooted, I would likely get the AT&T update, even though I am not currently on their network?
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] DeadlySin9:
I'm pretty confident you need to be on the AT&T network to get the OTA. You can use the MK2 ODIN files just fine, locked bootloaders don't prevent that.

Sent from Black<3's I337 running Hyperdrive
[Galaxy S III Q&A, Help & Troubleshooting] darkshaft:
HELP, am on V41 with boeffla V10 Omni, I woke up unplugged the phone after 10 min its a bit hot, then after using play music for another 10 min the song I was playing stopped suddenly then few mins later the phone shut down and I couldn't open it again, the phone was a bit hot, I left it to cool tried to switch back on but no use, plugged it to charger then I was able to open it and noticed a sudden huge battery drain from 80 to 19% I bought a new battery, but now my odd problem is that my wifi not working properly as yesterday before I slept, it has a very week signal that I have to be sitting beside the router to get connected, any ideas please???

P.S: I wiped everything, I installed stock 4.1.2 and 4.3 but nothing happened, I also turned wifi saving mode off but still the problem persists. Would also like to add that with emmc check I had yes, Insane
[Galaxy S III Q&A, Help & Troubleshooting] boomboomer:
If you are back to stock then try another wifi source, otherwise you have a hardware fault.
[Galaxy S III Q&A, Help & Troubleshooting] darkshaft:
whats making me go mad that my phone connects normally to wifi with all sources but once am a bit far it disconnects (yesterday same distance connected normally), I will go to Samsung support center.
[AT&T Samsung Galaxy Note I717] Shardsicles:
I have the most basic knowledge of rooting and have only done it on an Eris which had a 1-click method.

My i-717 came rooted.

I have now managed to temporarily bootloop my Note twice through Android Tuner Free so I promise once I fix this I'm deleting it.

Long story short waiting at the court house for 5 hours, began mindlessly clicking around the settings I (thought) I understood.

Now neither wifi nor data will connect to the internet longer than a couple minutes, usually at startup.

No idea how I did this and my assumptiom that there was a nandroid image was incorrect (I've made one now though).

I know I'm an idiot, please don't shame me :(
[AT&T Samsung Galaxy Note I717] 440bro:
You should be able to uninstall the app and all the settings you tweeked resort to default.
[AT&T Samsung Galaxy Note I717] Shardsicles:
I will try that and update on how it goes. Thanks!
[AT&T Samsung Galaxy Note I717] Shardsicles:
Wow thank you so much that was super simple! Can't figure out how to thank on xda app but, you know.

Not that you necessarily know this but it didn't fix this thing where the phone repeatedly goes to the pass code lock screen whenever something's loading. Much more minor of a thing tho.

Oh, so many questions. Again not something you would necessarily know but is there any sort of resources to help me understand the rooting process more? I want to understand what kernals are and things like that. Thanks!

-Ilora
[AT&T Samsung Galaxy Note I717] 440bro:
This thread will help you understand more.

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

Read over that, and I'll explain the rooting process tomorrow when I have time. Unless someone else beats me to it.

This lock issue... when is it happening? What is loading that makes it pop-up?
[G2 Android Development (D802)] m3dd0g:
[ROM][KOT49H][KK4.4.2] ★★★ DroidKang v1 ★★★ [HALO][06/02][CM11]

★★★ Welcome To DroidKang ★★★

Rom Features

==============================================

DroidKang review

[YOUTUBE]xjZwTXahpF0[/YOUTUBE]

[YOUTUBE]JzAz1Nx4WNU[/YOUTUBE]

[YOUTUBE]nOKItHQwVVE[/YOUTUBE]

Installation DroidKang

==============================================

Download DroidKang Rom

Please make a FULL WIPE and install DroidKang than Gapps before you post any bugs !!!

DroidKang v1

==============================================

Download latest PA Gapps KK 4.4.2

PA 4.4.2 Gapps

==============================================

Changelog

[B][U]DroidKang v1[/U][/B]
initial release...

==============================================

Known Bugs

==============================================

Credits and thanks

==============================================

Sources
[G2 Android Development (D802)] pluginre:
Thanks for sharing your Rom. Can.t wait to flash
[G2 Android Development (D802)] muhamet:
Welcome t Lg
[G2 Android Development (D802)] armess:
downloading......thanks
[G2 Android Development (D802)] neversayoceans:
New ROM is such a wonderful site...Thank u. Will be installing soon.
[G2 Android Development (D802)] leomd333:
Hell yeah! You were correct sir, no need for me to port this now it's here :D
[G2 Android Development (D802)] razrlover:
Supporting other variants in the future?,d801 here thanks
[G2 Android Development (D802)] fordstang99:
Ya 801 please
[G2 Android Development (D802)] noky76:
What kernel can I use with the ROM?

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development (D802)] tabenf:
What's wrong with this one?
[G2 Android Development (D802)] noky76:
Nothing..just I like changing..rom is amazing

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development (D802)] tabenf:
Wow almost 100 downloads and no feedback, been running this for a few hours have yet to find a bug keep up the good work dev!

---------- Post added at 05:43 PM ---------- Previous post was at 05:42 PM ----------

You could use furnance kernel
[G2 Android Development (D802)] morgan2toi:
Just install it and fall in love... All features I use work and work well: lockscreen notification, transparent background notification, navbar, halo... Really great job :)
[G2 Android Development (D802)] dk_iceman:
Love your Rom...

But i have one question, when setting ringtones to Max volume it's really distorted and sounds really like it's trying to play to much bass ??

I've tried 2 other 4.4.2 roms that was the same problem, when using standard or other 4.2.2 custom LG rom there is no distorted sounds from the speaker ??

what can i do to fix that ??
[G2 Android Development (D802)] DamBadz:
This rom is awesome!
[G2 Android Development (D802)] tabenf:
Have you tried through DSP manager?
[G2 Android Development (D802)] android404:
Location off, great 3g reception, debloated, Greenified. Lost 5%/hour overnight. Put it to charging while eating breakfast and gained 15% in one hour. Bbs shows no unnecessary wakelocks or alarms.

When I get a call while locked I can answer but when I end the call I can't unlock before turning off and on.

No logs unfortunately, I just reverted to my backup. Maybe it helps somebody anyways.
[G2 Android Development (D802)] noky76:
What is best kernel for battery?

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development (D802)] morgan2toi:
Here is what I have for battery life.. How could I reduce the systemUI energivore? Change kernel?

Thanks in advance

Envoyé de mon LG-D802 en utilisant Tapatalk
[G2 Android Development (D802)] tabenf:
That's really not much for system UI
[G2 Android Development (D802)] hierophantis:
Excellent rom!
[G2 Android Development (D802)] leomd333:
It is. System UI is normally bottom of the list (for me anyway on any rom)
[G2 Android Development (D802)] tabenf:
What's your screen on time?you haven't used much of anything else maybe that's why system UI is at the top any way try to disable halo and see what happens I'm going to do the same my side and see if system Ui gets less
[G2 Android Development (D802)] leomd333:
Normally my SOT is around 5 hr 45 mins.
[G2 Android Development (D802)] tabenf:
I disabled halo and already see a drop in UI
[G2 Android Development (D802)] tabenf:
Def halo mine has dropped from 18℅ to 5 in the last hour by disabling halo
[G2 Android Development (D802)] m3dd0g:
I dont use halo but i will take a look.
[G2 Android Development (D802)] morgan2toi:
Thanks for helps bro.

I'll disable halo too to see if change anything..

Changing kernel can make à change?

Tapatalké depuis mon RG2
[G2 Android Development (D802)] tabenf:
Maybe will try but will have to wait for next full charge halo helps,but tell me do you have Lock screen notifications enabled I didn't have but it was on anyway?
[G2 Android Development (D802)] morgan2toi:
For me yes I have lockscreen notification enable. But I've disable halo since 30min and screen come on top of system ui..

Tapatalké depuis mon RG2
[G2 Android Development (D802)] tabenf:
Yea but looks like in the long run system UI still consumes more!
[G2 Android Development (D802)] dukat0s:
d802

thanks for this great rom..i never liked cm/aosp pure android on my phone but your rom totally rocks dude. using it 6hours now in a row and its blazing fast.i flash davlik patches from moto X and i see awesome scores..any kernel suggetion so i can use it with your rom?
[G2 Android Development (D802)] eliashadow:
He, he Mr. Dukas, elthis is here...;)... [MENTION=4169381]m3dd0g[/MENTION] is one of my favorite devs around.Always great work and im happy to meet him here again!

Btw great Rom, my first and only aosp...

edit: You can test furnace-1.5.1 kernel if you want...
[G2 Android Development (D802)] GigzEJ:
does this have the 13 MP camera? thanks!
[G2 Android Development (D802)] noky76:
from where did u flash davlik patches?
[G2 Android Development (D802)] GigzEJ:
and also... does anyone know how to turn off those boxes on the right side of the lock screen thanks!
[G2 Android Development (D802)] eliashadow:
http://xdaforums.com/nexus-4/general/4-4-4-4-x-qualcomm-optimized-dalvik-t2546120 but i think already included in this Rom cause its CyanogenMod.

Yes...

Στάλθηκε από το LG-D802 μου χρησιμοποιώντας Tapatalk
[G2 Android Development (D802)] redcom7:
some questions ...before flashing this beast rom ....

1. call recording mod ??

2. radio app

3. app or mod for quick memo??

4. app or mod for qslide???

i know that aosp clean roms users don't want many things from stock roms but there are some things that are very usefull when you use a stock rom .....

i will flash the rom for fun but i would know if there are some solutions for the above matters 1234 .... :confused::confused:
[G2 Android Development (D802)] schukje:
Love this rom, only thing i mis is sound stock customroms all are much louder on my d802 and all aosp roms i tried are much lower on sound. Any solutions for that or reason why?

grtz from crazy bastard from Holland on my G2
[G2 Android Development (D802)] eliashadow:
Try this mate...;).. it's working great.

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

Στάλθηκε από το LG-D802 μου χρησιμοποιώντας Tapatalk
[G2 Android Development (D802)] noky76:
Any solution for some not working touch games like pitfall?

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development (D802)] noky76:
did u get this great score with default kernel?
[G2 Android Development (D802)] sicto:
Can I flash it using TWRP ?
[G2 Android Development (D802)] dukat0s:
hey ! :) thanks fella i give it a try this afternoon !:) have a nice day:cool:

---------- Post added at 01:08 PM ---------- Previous post was at 01:07 PM ----------

with kernel it comes with the rom .i dont know if stock or anything else. 300-2265 range of the cpu!
[G2 Android Development (D802)] tabenf:
If u men lock screen notifications then no it seems that its there even if its disabled
[G2 Android Development (D802)] eliashadow:
I have an issue and i would like to know if im the only one...

Today i was turn on for first time the BT. Immediately the phone was frozen for a while. After that i was trying to connect my Sony smartwatch with the phone but it frozen again...The 2nd try was successful and the smartwatch connected.

Anyone has BT issues or just me?
[G2 Android Development (D802)] Daniel:
Great rom, only one issue is that my network signal is always at one bar at home while with stock rom its 4 bars.
[G2 Android Development (D802)] noky76:
I got only 32396 in Antutu..what's wrong?
[G2 Android Development (D802)] swolfman:
Any plans to re-build the ROM based on the latest snapshot M3 of CM ?

thanks
[G2 Android Development (D802)] GigzEJ:
hmmm

Yup i noticed that they were off by default yet its active. What i did was i toggled it. Turned it on. Then turned it back off, rebooted then voila! They're gone.

If you dont know where to do that, go Here:

Settings->DroidKang Mods->Screen and Animation->Lockscreen Notification

You'll see there that the 1st option doesnt have a check, so just put a check then remove it immediately after then reboot. Otherwise if it does jave a check already then just remove the check. Then reboot.

Dont forget to hit that thanks button if it helps.:cyclops:

---------- Post added at 01:24 AM ---------- Previous post was at 01:04 AM ----------

Hello, does anyone know how to change the bluetooth icon color on the status bar. Thanks!
[G2 Android Development (D802)] android404:
Using Antutu is wrong.
[G2 Android Development (D802)] klinggalaxy:
same here! device frozen while pairing w my car. sad but I can't change it - had to go back to RGUI
[G2 Android Development (D802)] Dirtyzecrets:
Nice rom!

Really nice rom thank you! But im unsure if HD voice is working. Expect from that, working good on my D802
[G2 Android Development (D802)] zacharias99:
Guys any1 found a solution for the sound problem?

Basses are rly bad... the quality is very bad and I cant find a solution for that...

Tried only treble, but still its bad quality....

If some1 could help I would be greatful.

Thx
[G2 Android Development (D802)] d3FytH3m1Nd:
Hi guys, sorry I'm new to flashing roms on the G2 (was using a sony phone previously). I'm familar with the standard flashing but what about the kernel?

Back when I was using the sony arc, I would have to use flashtool to flash the kernel before flashing the rom. Is it the same here or all i need to do is just to flash the zip and all is done?

thanks :fingers-crossed:
[G2 Android Development (D802)] zacharias99:
Just flash rom and you are rdy! Kernel is getting installed with rom! Just wipe everything before through recovery!