yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] LoXeras:
Hi there

I'm working on an application for light controll. I start a TabActivity with 2 childs tab "A" and tab "B". in the "onCreateOptionsMenu()" of the TabActivity I am creating the menu for the activitys.

How can I make, that the Activity in tab "A" reacts on clickt on the menu buttons?

I tryed out everything but nothing worked. Im searching at least since 15h.

Greez LoXeras
[Java for Android App Development] SimplicityApks:
Something like this question? You need to override onPrepareOptionsMenu for different menus based on what tab is currently active. Then, in the onOptionsItemSelected just pass the selected item to the specific tab.
[Java for Android App Development] LoXeras:
Thanks for the answere. This is what I tried. but I get crashes every time. A NullPointerException occurs every time. And if I try to select the hitten items in menu with the menu button it crasshes instantly.

Source:

@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle presses on the action bar items
command co = new command();
switch (item.getItemId()) {
case R.id.action_load:
co.LoadFile();
return true;
case R.id.action_clear:
co.clearlist();
return true;	case R.id.action_save:
co.SaveFile();
return true;
case R.id.action_as:
co.AutoScroll();
return true;
case R.id.action_info:
co.showInfo();
return true;
default:
return super.onOptionsItemSelected(item);	//Return selected item
}
[ONE Q&A, Help & Troubleshooting] raffaele.cozzio:
Hi guys I' ve a problem with my oneplus one. I've the 38r version of cyanogenmod on my opo and I want to flash another ROM on my device.

The problem is that 1 week ago I ve unlocked bootloader and rooted it, but unfortunately with an app I've deleted root and relocked boot loader on my device (I'm a disaster I Know). Now I can' t reboot it into recovery, to reset my 1+1, because It's disappeared and it's stuck on 1+1 logo :(

In fastboot when I type in oem device-info I got this message:

(bootloader)	Device tampered: true

(bootloader)	Device unlocked: false

(bootloader)	Charger screen enabled: false.

I've tried to relock 1+1 from fastboot but the device is stucked on 1+1 logo and I can only reboot with fastboot reboot. I can use it normally but I'd like to restore it.

Someone can helps me?? Thanks in advance.
[Security Discussion] :
Greetings.

as you know, even if we disable "android device manager" from settings->security->device administrators, it still can be enabled from https://www.google.com/android/devicemanager "enable lock & erase"

from one side it is good, but from other side it is bad - i don't want that my phone can be remotely erased by google ;)

this functionality definitely resides in gmscore.apk

of course, we can just kill all google services, but we loose too much.

so : probably someone from devs here already know answer what to patch in gmscore to disable this behavior ?

with latest gmscore update ( 6.1.74 (1511752-038) ) the only message i can see, when pushing "enable lock and erase" :

of course, hex payload different each time.
[Security Discussion] :
disabling service

com.google.android.gms.mdm.services.GcmReceiverService

did job
[Security Discussion] Guiver2:
:good:

Thanks you, I 'm searching since 10 minute.
[Security Discussion] dbsev:
Thanks! I was wondering how to do that.
[Security Discussion] tamuin:
thanks, but...

I can't seem to find that service, heck I can't even find gmscore.apk

When I use find / -name gmscore.apk in terminal nothing came up.

Running 4.4.2 on galaxy S5, google framework 4.4.2-940549

Any ideas?

I would really not want my device wiped If my google account was compromised (really only have it for android)
[Security Discussion] :
as i remember, this service because build into gmscore from 4.4.4 and enabling downloading some external application.

can be wrong, though.
[Security Discussion] gimche:
damn it google!

This is really frustrating. I can't find a way to disable it and I can't find 'com.google.android.gms.mdm.services.GcmReceiverService'.

This a serious security flaw, let me explain why.... I have a company account on my phone, just for the purpose of receiving gmail, and that's very important to me. This also means this account can access my phone through android device manager. So, anyone that can log in to firm's gmail can lock and erase my phone and there's no way to disable it. Best I could do was turn off location reporting and hide my phone from showing in device list. However, anyone that can log in to this account, can also change this in settings and unhide it, enable lock and erase, make it ring and.... well, lock and erase it.

This is very worrying when you have a lot of people with access to gmail account that you also have on your phone. ATM only solution I see is to remove account on my phone and search for other email app.

Anyone knows how one could deal with this and still use gmail app?
[Security Discussion] snapper.fishes:
Instead of a problem with ADM, this sounds like a massive security issue on your company's side. I don't know why your company need to share the same email account, but the more people who have access, the more likely someone will spill the beans. If I am you, getting my phone wiped will the least of my worries.
[Security Discussion] howellzhu:
Thank you, that is what I want. Great!
[Security Discussion] deadwolf666:
Ok so Im facing the same problem is there any way to disable this process ?
[Security Discussion] Cyclu:
Install My Android Tools then go to Service>Google Play Service then disable the corresponding service.

https://play.google.com/store/apps/details?id=cn.wq.myandroidtools&en
[Security Discussion] draplater:
How about using a ROM without gapps?
[Security Discussion] b1k3rdude:
This dosent appear to be working, as after I disable all the above services, clicked on "enable lock and erase" from my google account it reactivated said services. So which service is activating and overriding the services I disabled?

Im running Android 4.4.2(goldeneye rom, Googymax kernal) on a Samsung i9505, I use Xprivacy, Android firewall, and Appmaster(app uninstaller & autostart manager)
[Security Discussion] nutpants:
Trying to secure an oem samsung Rom from google and its services while still using all the factory apps is going to be like herding cats...

It's similar to going to the pool and expecting to swim but not getting wet.

If you use Google apps and use the accounts feature of Android then you are going to have Google play services and other Google services running, and sadly you can stop them all you want they update and restart themselves regularly.

You just can't get away from Google, if you still use Google play, the Google mail app, Google voice search, Google account verifier, Google download manager, Google hangouts, Google plus or the host of other Google services and apps that a baked into your rom.

All you will do in find yourself with a lot of force closes from apps, and less hair more cats.
[Security Discussion] ElwOOd_CbGp:
What [MENTION=1592495]Cyclu[/MENTION] said was the right way. there are several services and receivers that have "mdm" , probably what you could do is use the search function in the app while viewing the services for GooglePlayServices. at the top of the screen, click menu, toggle full, (full/short option) then tap the magnifying glass, then the search box and type "mdm" , then do the same thing under the receivers section
[Security Discussion] Morthawt:
This is so annoying. Can you imagine disabling admin on the phone, knowing that after reading the description in that area of the settings that it cannot be used to wipe the phone? Then someone testing it to prove it and they click "Enable" and wipe the phone? Know how dangerous that is? My phone is an S5 mini, stock firmware and rooted with SuperSU. What can I do to just prevent admin mode being enabled? I want to be able to track my phone's location but I do NOT want my phone able to be remotely wiped by anyone including myself, remotely.
[Security Discussion] john.nash205:
I tried all. Looks like there is no way to disable ADM. Even if u disable corresponding service for ADM still when u restart that service gets re-enables it self again. Had any got a solution to disable this crappy android device manager fully?? thx in advance.
[Security Discussion] optimumpro:
Forgive me, but this thread is just pathetic. If you have Gapps, your device is not yours. It is Google's. Period. If you can't live without hangouts and similar garbage, then enjoy them, but stop *****ing about remote wipe. You can't be half-pregnant. By the way, remote wipe is not the worse thing that could happen to you. Anything could be silently installed on "your" phone, even if you somehow disable ADM. It could be done through Google play and google services framework. Not to mention thar google analytics record everything about your activities and gsf regularly reports the same "home" i.e Google.

To gmail at work guy: if you can't use another client to access your work gmail, get a separate feature phone.
[Security Discussion] mrrocketdog:
even "android = google" ? much less gapps , eh ?

"all i can really do is stay out of my own way and let the will of heaven be done"
[Security Discussion] optimumpro:
Android, unlike Gapps, is open source. So, you can get under the hood and clean lots of things.
[Security Discussion] Zigary:
I'm kinda new to this stuff but a quick learner. I have always been able to disable the ADM on the device administrator screen . But now all of a sudden I cannot. When I click it to turn it off my ATT S7 freezes for a fee seconds then it says I'm sorry the settings application has stopped and kicks me out.

I am kinda worried there is something/someone in my godamn that should not be there .

I'm reaching out for any ideas ,procedures, or any sorta feedback or help I can get . Thanks .
[Security Discussion] psychoticbarracuda:
This is some flawed logic. Some of us are required to connect to these accounts on our phones for our work. And some of us live in states (at will) where we don't really have the option to say no. So a solution to this massive security problem would be greatly appreciated.
[Security Discussion] Oswald Boelcke:
I don't know if it's allowed in the country you live, but you might want to consider to go GApps-free:

https://xdaforums.com/android/apps-games/app-microg-gmscore-floss-play-services-t3217616

https://xdaforums.com/showthread.php?t=1715375

https://xdaforums.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
[Galaxy S III Q&A, Help & Troubleshooting] ycon:
Hi,

I'm sure I'm not alone here- it would be really handy if there was a quick-button combo to disable the 'touch' ablity of the screen. Often when I'm showing people a movie, photo, skype etc. the screen gets touched.

Does this exist? I would have thought the Wanam Xposed might be able to do this. Is it possible?
[XDA Assist] Aman_Arora:
Hello!

After Installing lollipop on my Nexus 5.I wished to make a few changes and share it publicly but I'm not able to install the framework and hence can't proceed with what i wished to do.
[XDA Assist] Darth:
Hi,

Honestly, with official L being released for the N5 very shortly, doing anything with the developers preview that's out now seems to not be worth it.

But you can ask about it here...

> Google Nexus 5 > Nexus 5 Q&A, Help & Troubleshooting > Android 5.0 Lollipop Developer Preview Help, Troubleshooting, Q&A

Good luck!
[General Topics] puzlid:
Hi

I have a Q88 cheap tablet and have a very annoying problem,some how a program du battery saver has installed itself without any uninstaller and i keep getting ads pop up every time i go to any Google app does anyone know of a way to get rid if this ?
[General Topics] markhrs:
Du Battery Saver

I had the same on my both my sons allwinner tablets. Download "Uberizer" I downloaded v1.7. This software allows you access into the tablets innerworkings and allows you to delete the dodgey apps that have installed themselves. Go to the "Application Manager Menu" and then into "System App Remover" you should see a list of apps on your tablet. I found that the ones at the end of the list were the rogue ones. I deleted those one by one and then rebooted the tablet, haven't had an issue since.
[8525, TyTN, MDA Vario II, JasJam General] insanenyc:
i am using open dns and i connect between

800 kbit/sec-980 kbit/sec dsl reports this is the 3g speed in ny

open dns settings

208.67.222.222

208.67.220.220

cingular is just a bit slower

does anyone have any faster dns settings they can share
[8525, TyTN, MDA Vario II, JasJam General] fone_fanatic:
I'm using those DNS settings and they're doing the job for me.
[Galaxy S 5 Q&A, Help & Troubleshooting] :
[Q&A] [ROM][G900F][XXU1ANH6][12/10] PhoeniX ROM v4.0 [Big Aroma | Unique | Fast | St

Q&A for [ROM][G900F][XXU1ANH6][12/10] PhoeniX ROM v4.0 [Big Aroma | Unique | Fast | Stable]

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.

Before posting, please use the forum search and read through the discussion thread for [ROM][G900F][XXU1ANH6][12/10] PhoeniX ROM v4.0 [Big Aroma | Unique | Fast | Stable]. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.

Thanks for understanding and for helping to keep XDA neat and tidy! :)
[Galaxy S 5 Q&A, Help & Troubleshooting] Strepherd:
I have a problem, every time I sent a message, same without read confirmation, I get a toast notification saying 'message sent" after every message I sent.

Can you help me ?
[Galaxy S 5 Q&A, Help & Troubleshooting] dashrink:
Go to message app and open settings. Choose sms or text message option. Untick delivery report.

Voila
[Galaxy S 5 Q&A, Help & Troubleshooting] Strepherd:
That's not the delivery report, I already unticked it. A little toast notification on the keyboard say " message sent "
[Galaxy S 5 Q&A, Help & Troubleshooting] Strepherd:
Up
[Galaxy S 5 Q&A, Help & Troubleshooting] fatfingers25:
Phoenix Rom ToolBox bug

Hello and good day, I'm new in this forum and to installing custom roms. I've encountered some force closing in toolbox when I tried putting a different app in it. After selecting the desired app and clicking save, I cannot edit the toolbox anymore. Please help . Thanks in advance.
[Galaxy S 5 Q&A, Help & Troubleshooting] dlads:
Do you want to disable toast altogether? [MENTION=578791]Shepherd[/MENTION]? You can alter these via xposed modules, can't for the life of me remember which one, I know xui mod allows you to change them but I don't know about removing then completely. Try and see.
[Galaxy S 5 Q&A, Help & Troubleshooting] fatfingers25:
.

Thank you for the reply. I'm kinda new, i was planning to wipe internal memory using super wipe(putting it inside external sd card [2GB size]) then after the super wipe, can i put the Custom ROM inside the wiped internal of my phone? can i flash the custom ROM using odin? sorry for the newbie questions.
[Galaxy S 5 Q&A, Help & Troubleshooting] dlads:
A custom rom is usually flashed via either the internal or external memories, I prefer the external as you have the flexibility to remove it and copy another over if your phone is in a non bootable state.

Once you're rooted and have a custom recovery installed all you need to do is copy it over and flash it, no need for odin at that point, unless you want to flash a modem or bootloader.

Perhaps when android 5 comes along we'll be updating both the modem and bootloader but until that time you're just fine with what you have, a super wipe bare in mind will wipe everything, no OS left at all, so keep your ROM on your SD Card so you can flash it later.

Only reason you would need a super or mega wipe is if theres parts of your OS that have become undeletable or corrupt.

I wouldn't bother, just clean up your SD card (Internal) whilst connected to your PC and then perform a full wipe from within recovery and cache and dalvic, then flash a rom.

But if things are functional you don't even need to do that.

---------- Post added at 12:27 AM ---------- Previous post was at 12:22 AM ----------

What state is your phone currently in?

IF it's stock then you will need to follow the instructions which are on the Foxhound main thread, I believe it's copied from another thread, NeatRom, if you follow it correctly your warranty will remain intact.

IF you're already rooted and have a custom recovery installed then simply copy the rom to your SD and flash it via recovery, you may need a separate kernel in order for the phone to boot properly. So grab that before wiping.

Always make a back up so you can revert back if things go wrong.
[Galaxy S 5 Q&A, Help & Troubleshooting] fatfingers25:
Thank you sir for the response. I was wondering if making the phone's internal a full wipe by using a script or something could really wipe everything inside the phones internal memory. As i've read here in the forums, The said script would wipe the whole internal memory therefore creating a lesser compatibility issue custom ROM after flashing. As I've stated earlier, I really wanted Phoenix ROM due to it's flavor and features. Though NeatROM is quite good itself( I'm not a developer :D ). For now, Phoenix ROM is okay after experiencing a bug with the ToolBox , then again i was able to remove the issue by doing a factory reset and the ToolBox feature was okay. So far so good as i can say proudly. Thank for the excellent instructions. Good day.
[Galaxy S 5 Q&A, Help & Troubleshooting] dlads:
Click thanks if someone helps u bro.

No problem by the way, I only suggested neat rom as it has good guidance.

If you're already on Foxhound (phoenix) then in my opinion you have the best of the bunch, just wait for raffa to update it, the next rom will bring a good few changes and a lot of fixes.

Personally i find this version to be more than ok v1.1
[Galaxy S 5 Q&A, Help & Troubleshooting] fatfingers25:
Thanks for the reply, Yes i'm already on phoenix ROM. I just used the factory reset settings and viola, the bug is now gone. Thank you for your assistance. Keep it up. Have a good day.
[Galaxy S 5 Q&A, Help & Troubleshooting] dlads:
Just realised I wrote phoenix, I meant phantom.
[Galaxy S 5 Q&A, Help & Troubleshooting] fatfingers25:
Oh it's okay. Thank you for your help. :D
[Galaxy S 5 Q&A, Help & Troubleshooting] frank69s:
Please

Can somebody tell me if installing this rom triggering knox flag??I have already rooted phone with neatrom knox 0x0.

Sorry for my english.
[Galaxy S 5 Q&A, Help & Troubleshooting] Chaitanyapatel8880:
How do I enable custom boot animation? Any help will be thank full
[Galaxy S 5 Q&A, Help & Troubleshooting] ali_r.k:
Great Work !

Stable | Clean | Fast

I rooted my Galaxy S5 and voided my warranty :( but this ROM made me feel that the warranty void was worth it :D !

One problem that I found is Wanam Xposed doesn't seems to be working like I choose the features I wanted and rebooted but nothing happened ... :confused:

I don't know if I am doing it properly or not ....

One more thing, you should add that double tap screen on gesture from HTC One M8 in your next updates. It will be wonderful ..... :)
[Galaxy S 5 Q&A, Help & Troubleshooting] Ace55555:
Phoniex room 5.0

Can I do a dirty flash over 4.1 over does it really need a new flash.. Thanks
[Galaxy S 5 Q&A, Help & Troubleshooting] Ali Mirza:
USB Mass Storage

Hi.. since Android 4.4 restricts UMS Mode that some apps doesnt get UMS mode working... so is there a kernel that makes UMS Mode working on G900F?
[Galaxy S 5 Q&A, Help & Troubleshooting] tyrick:
thanks

Very nice rom

At home no worries

all functional

thank you very much
[Galaxy S 5 Q&A, Help & Troubleshooting] carlosslpmx:
Hi. I have this problem with the camera. I had it also with another rom. It works at first, but after a while it doesn't work at all. It says camera error and if I click ok, closes. Hope you can help me.

Enviado desde mi SM-G900F mediante Tapatalk
[Galaxy S 5 Q&A, Help & Troubleshooting] spankmatic22:
Having flashed the 10.2 update is it still ok to reflash the 10.0 base rom to get mods or tweaks? If I flash the base 10 later should I then reflash the 10.2 update? Thanks!
[Galaxy S 5 Q&A, Help & Troubleshooting] m-powergr:
the ambient display is not working. is disabled because of errors (battery drain) or i must check something else at the settings?
[Galaxy S 5 Q&A, Help & Troubleshooting] DobleJ:
Hey, i have installed Touchwiz 5x6, but i want to install tamirda's touchwiz 4x5. How can i do this? Thanks.
[Galaxy S 5 Q&A, Help & Troubleshooting] legend999C2A:


It happened to me as well after switching the LCD.

I used a sensor calibration from the Playstore and it started working again.
[Galaxy S 5 Q&A, Help & Troubleshooting] themismar73:
How to change colour in 2 icon?
[Galaxy S 5 Q&A, Help & Troubleshooting] Lolboy143:
Can u please tell me which version of Xposed I need? ￼ bricked my device twice ... ￼

Thanks in advance guys!

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

#PhoeniXrom
[Galaxy S 5 Q&A, Help & Troubleshooting] limjialok:
Where can I find ambient display in setting?
[Galaxy S 5 Q&A, Help & Troubleshooting] HAJT669:
I can install this in g900m!?
[Galaxy S 5 Q&A, Help & Troubleshooting] Macamoca:
Aod work ?

S5 camera or s7 camera ?
[Galaxy S 5 Q&A, Help & Troubleshooting] mayank233:
Cant change lockscreen clock colour and i want to remove swipe to unlock info on lockscreen

Phoenix rom v12.6
[Galaxy S 5 Q&A, Help & Troubleshooting] aripanzer:
I already install the phoenix rom 12.6 on my G900F.. but i found the bug.. i hope.. you can fix the problem... after minimize the contacts.. and i open again... the caller apps.. there show error...

Thanks for your contrib...
[Galaxy S 5 Q&A, Help & Troubleshooting] Haslie:
Where is download v4.0 ?
[Galaxy S 5 Q&A, Help & Troubleshooting] BigSnake353:
When I want only 4g/lte
[Galaxy S 5 Q&A, Help & Troubleshooting] gothdawid:
someone knows how to fix the fingerprint reader on g900f ?

PhoenixRoom

Wysłane z mojego SM-G935F przy użyciu Tapatalka
[Galaxy S 5 Q&A, Help & Troubleshooting] seanybiker:
Ithink cannot be fixed. This rom is based on an S7 firmware , S7 and S5 have different hardware in their scanner so it won't be able to be fixed .

Sent from your mamas bedroom
[Galaxy S 5 Q&A, Help & Troubleshooting] alop:
How can i disable ad in apps. I thought that this should be done from Rom. Like i had it previously

Gesendet von meinem SM-G935F mit Tapatalk
[Galaxy S 5 Q&A, Help & Troubleshooting] moocou:
AdAway?

http://xdaforums.com/showthread.php?t=2190753
[Galaxy S 5 Q&A, Help & Troubleshooting] Michel habets:
Not possible as stated in op
[Galaxy S 5 Q&A, Help & Troubleshooting] islamknight90:
At the beginning I would like to thank everyone who contributed to this wonderful work,I installed the last version from Phoenix Rom for s5 and it's running perfect but I have several questions about some of the lost Rom features which are essential features of the phone such as the Galaxy S5 to change the music by air gesture above the screen and Air view These features are not present in this rom
[Galaxy S 5 Q&A, Help & Troubleshooting] islamknight90:
Is there any one to help
[Galaxy S 5 Q&A, Help & Troubleshooting] yazeed_twb:
I thin it is not included in the s7e firmware (which is the rom based on)
[Galaxy S 5 Q&A, Help & Troubleshooting] islamknight90:
My phone is S5 SM-G900F an I using phoenix rom v15 based on S7 edge systemUI&Setting

---------- Post added at 04:03 PM ---------- Previous post was at 03:36 PM ----------

Can I use crazy super kernel with this rom
[Galaxy S 5 Q&A, Help & Troubleshooting] Deerix:
Update to Lollipop?

is there anytime an update to Android version 5.0 or higher (Lollipop) planned?
[Galaxy S 5 Q&A, Help & Troubleshooting] axlmet:
Question!!!

Hi there... sorry for aask this.. i just wnat 2 know ifyhis rom works on g900m??
[Galaxy S 5 Q&A, Help & Troubleshooting] axlmet:
hey

plz can someone tell me if can i flash this rom om g900M?
[Galaxy S 5 Q&A, Help & Troubleshooting] axlmet:
G900m

May i flash this rom on g900m device?