yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] MohammadAG:
[MENTION=4694009]Dr.Alexander_Breen[/MENTION] thanks a lot for this, almost spent the day trying to get this to work with reflection.

Anyway, I still can't get it to work.

I'm trying to do this for my S-View cover mod http://xdaforums.com/showthread.php?t=2368665

But the methods aren't called at all.

I've never used handlers before, so I'm guessing there's a problem with those.

Can you take a look at the source code? Since it's an Xposed module, and you might not know Xposed, I'll state a few things about it

https://github.com/MohammadAG/Xpose...ewpowerampmetadata/SViewPowerampMetadata.java

The mod is not a subclass of Activity, so there's no Context, but I do get the Context used by the S-View widget.

After getting the Context, and the Handler used by the S-View classes, I register the RemoteControlDisplay (method initializeRemoteControlDisplay(Looper))

The rest is mostly your code.

If you're wondering why I construct the Handler in such a weird way, it's because I can't create one on the Xposed module thread (something about Looper.prepare()).

Anyway, any help would be appreciated, if the code seems fine, I guess I'll have to use a service and make the module communicate with that instead, though I can't imagine media buttons being any slower.
[Java for Android App Development] Dr.Alexander_Breen:
[MENTION=2011359]MohammadAG[/MENTION]:

Your code looks fine to me, but there is one thing.

You register your RemoteControlDisplay in handleLoadPackage() method. I suppose that this method is called only once, but RemoteControlDisplay needs to be registered every time the metadata view is show to user.

Also, added 4.3 implementation.
[Java for Android App Development] MohammadAG:
But that's only if I unregister it right? I'll see about it, maybe I need to do the Handler bit different in Xposed.

Thanks :)
[Java for Android App Development] Dr.Alexander_Breen:
Actually, no. As in 4.2 and lower, there can be only one active RCD. So, in case your system decides to register it's own RCD, it automatically unregisters yours.
[Java for Android App Development] MohammadAG:
Oh, so that explains why your app displayed Unknown at some point. I guess that was my RCD being registered.
[Java for Android App Development] nikwen:
And it's on the portal: Implement Lock Screen-Style Music Controls in Your App
[Java for Android App Development] Dr.Alexander_Breen:
So, have you managed to make your app working?
[Java for Android App Development] MohammadAG:
No, actually I haven't :/

I register the display each time the S View screen shows, which is when I want to show metadata, but that doesn't work, the handler's handleMessage method is never called.
[Java for Android App Development] Dr.Alexander_Breen:
Hmm. I'm afraid this is something with Handler in Xposed. You can, however, move IRemoteControlDisplay implementation to service, which will connect with your Xposed part via AIDL or smth like that.

Also, check, if methods of IRemoteControlDisplay are being called. Like, fire a log message when method is called.
[Java for Android App Development] MohammadAG:
I thought about that, but I'm pretty sure it'll use up more memory and introduce a bit of lag (if the service was killed for example).

I was thinking of hooking registerRemoteControlClient and keeping the registered remote(s). Then I can simply get the data from their methods, do you know if they're kept in memory for as long as the app lives?
[Java for Android App Development] Dr.Alexander_Breen:
Again, please check, if methods of RemoteControlDisplay are being called. Write message to debug log(Log.d) in setMetadata or setAllMetadata methods.

As a workaround, I have this idea.

If I understand correctly, Xposed can hook the method of the class, not the instance. Then you can hook RemoteControlClient methods to get the metadata directly from the clients. Check the API reference to RCC to get necessary methods.
[Java for Android App Development] sak-venom1997:
really cool tutorial :)

Thanks a lot !

Could you post one for implimemtation of IBatteryStats...... etc private battery APIs ??
[Java for Android App Development] Dr.Alexander_Breen:
Well, I think the answer is "no", because I'm no Google Software Engineer. I'll look into this, however, as it will be simplier, I think.

Something like connecting remote service with IBatteryStats.Stub.asInterface. I'll look into it, however.
[Java for Android App Development] sak-venom1997:
Connecting to serivice and obtaining data i could manage by diging into source but parsing the info is causing trouble

thanks :)
[Samsung Galaxy Mega] dchsub:
At 5% or lower, the screen is forced to go dim and I loose the ability to set brightness. Both in settings and by pulling down notif. bar. Is there any way to turn off this force-to-go-dim?
[Samsung Galaxy Mega] Pariki:
==============

Tubgirl already faced this. I am sure this may be a bug...Please read this post by him...

http://xdaforums.com/showthread.php?t=2386881
[Samsung Galaxy Mega] gx3k:
Forced dim for battery level below 5% is normal. If it automatically dims when it is over 5% battery then that's a bug. I never experienced the dim bug.
[Samsung Galaxy Mega] Troute:
You really shouldn't let your battery get that low anyway, lithium batteries don't like being discharged that much.
[Samsung Galaxy Mega] gx3k:
Sometimes I can't help it but I'm using third party battery so I'm not too bothered. I got them for less than £5 for 3500 mah, been using them since I got my Mega (over 5 weeks now) and never had problems.
[Samsung Galaxy Mega] Troute:
The advice I gave is valid but with batteries so cheap these days I'm not sure it matters any more.

Do you find your 3500mAh batteries actually last longer or about the same?
[Samsung Galaxy Mega] gx3k:
Can't tell as I've never used the battery that came in the box. I'm keeping all accessories pristine for selling it on. Anyway, I get over 24 hours for light use and 10 hours with heavy use on the third party battery.
[Samsung Galaxy Mega] Troute:
Cheers, that sounds much the same as I'm getting.
[Samsung Galaxy Mega] dchsub:
I can see the caution of using lithum battery. But at the times when I am out of immediate reach of a charger and a replacement battery, and I need an extra minute to finish an email or text, it becomes counter productive.
[Samsung Galaxy Mega] gx3k:
Not bad for a battery you can now get for £3.45 with free delivery on

eBay

.
[Android Q&A, Help & Troubleshooting] STALKER_88:
https://play.google.com/store/apps/details?id=com.kfbtech.wallswitch&hl=en

Can somebody mod this app to work with ics/jb roms? last update for this was in April 6, 2010. ive sent an email to the developer about this but he haven't replied yet, i dont think he will.

i use this app and it works with jb but UI doesn't look that nice. also have a bug that the widget doesn't work with some custom launchers after a reboot.
[Android Q&A, Help & Troubleshooting] erdal67:
I have Jelly bean 4.2.2 and it works but it only problem is it crops some of the image so you can see it just on one screen

Sent from my HTC Sensation with JellyBam ROM
[Android Q&A, Help & Troubleshooting] STALKER_88:
yes it works fine but its not perfect. getting errors when changing sometimes and the worst thing is the widget. in some custom launchers it doesnt work after a reboot. you have to remove it and add it again to work again. and in vertical view the widget looks horrible. the UI could use some freshening up too
[Android Q&A, Help & Troubleshooting] erdal67:
Maybe try this app i think it is similair didnt use it https://play.google.com/store/apps/details?id=de.j4velin.wallpaperChanger

Sent from my HTC Sensation with JellyBam ROM
[Android Q&A, Help & Troubleshooting] STALKER_88:
ive used it. its good but not good enough. take a while to add the wallpapers to the list. and it needs to be rescaned if you add new wallpapers to the sd
[JAM, MDA Compact, S100 General] mjheathcote:
I have a bogo UK T-mobile Compact.

ROM 1.01.00 WWE

Radio 1.00.10

ExtROM 1.01.128 WWE

I have had no urge to upgrade the ROM, however if it improves the handsfree performance...

Nokia bluetooth car kit: Un-useable due to echo at 'the other end'

Jabra BT800: Similiar echo, not as bad, & no caller id etc.

Both the above work fine with my works Nokia 6230!

So does a ROM or Radio ROM upgrade improve the situation ?

Many thanks,

Mike.
[JAM, MDA Compact, S100 General] RanZor:
Nokia Carkit, sorry, but it will never work...

Jabra BT800, i have that and it works fine, no echo and caller id works..

uppgrade
[JAM, MDA Compact, S100 General] zerimar:
Many members here have claimed of improved sound quality of BT headsets after upgrading their ROM.

You can also upgrade the BT800's firmware and Caller ID should work.
[AT&T HTC One (M7)] nastystang05:
Anyone having this issue? Just bought an HTC one. When apps update through Google play I get invalid package. I tried clearing cache for app uninstalling updates. I tried flashing a new ROM. Still getting the error. Also this only happens on certain apps. Chrome titanium backup Google music and some others. Can anyone shed some light on this?
[AT&T HTC One (M7)] homegeek:
I have been having the same issue. It seems to come and go depending on the application. If you do a Google search, this seems to be a common issue right now. The only other suggestions are to downgrade the Play store or try VPN software.
[AT&T HTC One (M7)] nastystang05:
Unfortunately I've tried both to no avail. I'll just have to sideload them.
[AT&T HTC One (M7)] dcemtp1:
I didn't know anyone else also had this issue, I thought it is that because I had those apps disabled so it couldn't but apparently it's just the play store.

There can only be one, the chosen ONE.
[AT&T HTC One (M7)] nastystang05:
Quite frustrating. Google better step up their stuff. It seems as after further research it is happening to lots of users with random apps.
[Sony Tablet S] Athawulf:
hello everyone, can anyone help me flash the stock FW Italian original? (ICS 4.0.3 R5A)

1) where can I download the firmware?

2) how to flash the firmware?

I did a bit of mess on the tablet and now it does not work well.

My device is SGPT114IT

for example with the galaxy s2 I use ODIN and get back all right
[Sony Tablet S] stifilz:
My signature... FAQ and Update links
[Sony Tablet S] Athawulf:
eadomgo first

thanks for reply,

I used this info.update.sony.net/ST003/nbx03_010/contents/0008/signed-nbx03_010-ota-121116072.zip. I flashed with recovery install this update via sd card but it tells me update failed error code 7
[Sony Tablet S] DudemeisterAT:
Did you try with or without condi? To flash pure stock the way sony intended it you should do it without condis tool.
[Sony Tablet S] stifilz:
Ok next step. On a computer using adb (see faq for set up) use command after trying to install zip file: adb pull /tmp/recovery.log

Post the log here and we will have a look
[Sony Tablet S] Athawulf:
so, here's some screens
[Sony Tablet S] Athawulf:
problem solved

hello to all,

I solved the problem, now I'll explain what I did to those who have the same problem:

1) root device with AIO 6.5 by condi

2) changed region (Italy for me) with AIO 6.5 by condi

3) unroot device with AIO 6.5 by condi

4) factory reset (I deleted usb archive)

5) I did the updates via OTA

6) tadaaaaaaa no error code 7.

thanks to all.

now I want to say one thing, my problem came out after I used the flasher by condi, does anyone can tell me why?
[Sony Tablet S] stifilz:
BTW you pull the file in recovery after the flash..... Not when it is booted??
[Sony Tablet S] Athawulf:
I flashed the firmware via recovery ----> system update from SD card.

however I have solved the problem.

thanks
[Sony Tablet S] fjlunapa:
Screern only sony logo

Hi my sony s tablet, just puts on display the logo of Sony and not advance, have the orignal firmware for the tablet, the model is sgpt111mx / s
[Sony Tablet S] fjlunapa:
Attach file REcovery.log

attach the recovery log file, obtained via adb, adb mode does not give me write permissions on the tablet :crying:
[Sony Tablet S] Athawulf:
've tried the factory reset from recovery?

hold vol up, press power, and when you see the logo sony release the power button.
[Sony Tablet S] fjlunapa:
Factory reset not solve the problem

perform the system recovery via factory reset, deleting all user data and the problem continues, only shows the logo of sony

---------- Post added at 05:12 PM ---------- Previous post was at 04:25 PM ----------

I solved the problem thanks and drops a firmare from post http://xdaforums.com/showthread.php?p=26882207 and select the firmware ICS Release 5A from the following link info.update.sony.net/ST002 / nbx03_002/contents/0009/signed-nbx03_002-ota-121116062.zip
[LG Optimus 4X HD] xCrasherr:
Hello Guys...

What i have to do i've i have a brick on my P880 and then i have connected it with my PC via USB and go into the S/W Upgrade Modus...

I have installed the Driver and have downloaded a Euro Open 4.1.2 kdz but the Computer doesn't find my device... also the LG Mobile Support Tool doesn't find the device... what did i have to do?
[LG Optimus 4X HD] SimonTS:
Standard troubleshooting - which you would know if you searched before posting;-

De-install and re-install the LG tool

Check the drivers

Try different USB ports (USB 3 are often a problem)

Check you are following the steps 100% correctly

...
[LG Optimus 4X HD] xCrasherr:
okay Thank you :D but now : http://xdaforums.com/showthread.php?t=2401809

:(
[LG Optimus 4X HD] xCrasherr:
AW

okay Thank you :D but now : http://xdaforums.com/showthread.php?t=2401809

:(
[LG Optimus 4X HD] Adam77Root:
You really opened another thread about it? :what:

Sent from my LG-P880
[LG Optimus 4X HD] Mr.Fong:
I have tried the .DZ mode ,but it can't work ,kdz work fine.
[Galaxy Ace II Q&A, Help & Troubleshooting] Fennybad:
Hi am I using the best firmware android 4.1.2

Base i8160xxmc8

It seems to freeze alot and just tried installing icephone theme but cant seem to apply it
[Galaxy Ace II Q&A, Help & Troubleshooting] pinhead97:
Have you actually got CyanogenMod on your phone? You can't do it on stock rom
[Galaxy Ace II Q&A, Help & Troubleshooting] Fennybad:
Im unsure to be honest I updated my phone from a firmware on here
[Galaxy Ace II Q&A, Help & Troubleshooting] Fennybad:
Do u get it from google play
[Galaxy Ace II Q&A, Help & Troubleshooting] Shadowcareful:
The theme or cyanogenmod?
[Galaxy Ace II Q&A, Help & Troubleshooting] Fennybad:
I got the theme but I dont think I have got cm im on jb an im rooted
[Galaxy Ace II Q&A, Help & Troubleshooting] pinhead97:
Find a temporary CWM and also Download a CM from the ace 2 dev thread onto a micro SD card, then enter recovery (power button+home button+volume up) and flash the CWM first, then wipe cache and dalvik and flash CM
[Galaxy Ace II Q&A, Help & Troubleshooting] Wermeael:
And what is the best bugless custom/stock rom for our phone?

I want no hassle and everything working, but I had some issues with kyrillos before. But this was with the preleaked versions. I see that Cyanogen has some bugs and I want to wait for a bugless version.

Thanks
[Galaxy Ace II Q&A, Help & Troubleshooting] Szczepancio:
I'm using stock XEO firmware (because of stability) while waiting for Sakura CyanogenMod. Try it.
[Galaxy Ace II Q&A, Help & Troubleshooting] pinhead97:
I don't believe there is a truly bug-less custom ROM around for ace 2 yet, maybe try a lite ROM or the Italian job, they seem fast and they don't have many bugs at all usually
[Galaxy Ace II Q&A, Help & Troubleshooting] Rox:
Use roms based on stock if you want to be bugfree... (Kyrillos, italian job, v-rom, blue job, lite rom, minimal by judas77...)
[Galaxy Ace II Q&A, Help & Troubleshooting] Wermeael:
Thanks Rox, but are these CUstom Roms more reliable than stock? If so, I will try Kyrillos.
[Galaxy Ace II Q&A, Help & Troubleshooting] Rox:
Yeah. For sure they are. A lot of improvements, debloated, deodexed, zipaligned...

Sent from my GT-I8160
[Galaxy Ace II Q&A, Help & Troubleshooting] Fennybad:
This all seems complicated I just want to be able to put icephone on my phone I got cwm
[Galaxy Ace II Q&A, Help & Troubleshooting] Shadowcareful:
If you want to use that theme you have to download cyanogenmod 10 by dh.harald and install it with cmw then you can doenload the theme and you can apply it inside settings at Designs
[Galaxy Ace II Q&A, Help & Troubleshooting] Fennybad:
Cwm backup I got that where do I get cm10 from ive searched but im using 4.1.2 and cant seem to find it
[Galaxy Ace II Q&A, Help & Troubleshooting] Fennybad:
Soory for been a noob but could someone provide me with the best programs I could have on my phone
[Galaxy Ace II Q&A, Help & Troubleshooting] muxa1980:
All in Google Play :D
[Galaxy Ace II Q&A, Help & Troubleshooting] Fennybad:
I got cm10 but lost all my apps there on SD card but can't get them on phone also play store will not open
[Galaxy Ace II Q&A, Help & Troubleshooting] muxa1980:
Why do not use moded vold.fstab?
[Motorola Atrix 2] IAMAB:
Hi..

I know this is a known bug in jb leak 1, but is there a fix for the sudden drop in battery level?

Daily as soon as the battery level reaches 30, there's a drop of 10%.

I already tried clearing battery stats from recovery but still no luck..
[Motorola Atrix 2] 1BadWolf:
Like you said, it's a known bug. Even the custom 4.1.2 ROMs like MagicMod and CM10 have a similar issue. With those two the battery reading will go from 19% to 1% really quick but stay at 1% for over an hour sometimes. It's not a problem with the battery, it's just the way those ROMs report the battery reading (that's part of the reason why clearing battery stats doesn't help). AFAIK there was never a fix for that.

Brought to you by time and relative dimensions in space.
[Motorola Atrix 2] Neontc:
Happens with me too using dirty unicorn with jbx. As soon as I get to around 30% it just drops to 19
[Motorola Atrix 2] dr.rav1:
I have a wierd problem. Im on jb leak 3, As I recharge my battery, as it reaches 100% it suddenly drops down to 99% when I disconnect my phone from the charger. Any solution is deeply appreciated. Thank you
[Motorola Atrix 2] Aceofzeroz:
There is no solution for that I'm afraid as the same thing happens on custom roms and stock with the 1% battery feature.:( It's been happening for a long time so it's nothing new. :p

Sent from the Ace's MB865 using xda-developers app
[Motorola Atrix 2] Er.gajendra:
.

i am also facing same battery problems but mine is also some different, when my battery is at 20-30% and if i plugged charger(samsung's charger or Data Cable) then within 25-30 minute it become 90-100%. once i have reverse problem while connected to laptop for full day its charged max 70%.
[Motorola Atrix 2] Lifehacker7:
Samsung chargers I believe have more voltage supplied during charging. That's why it charges up quickly. While laptop doesn't give out that much of voltage.
[Motorola Atrix 2] hafizkris90:
I once have battery drop but only around 5%.. 24%-19%.. but now it seems fine.. I use leak 3 as daily drive.. I think it depends on charge cycle.. if u charged a lot and your phone are used to the pattern then your battery cycle won't be messy with sudden drop..
[Android Q&A, Help & Troubleshooting] Madcomp:
Hello to everyone,

may be you can help me. I tried to port a rom from another device(MT6589) to my phone(MT6589).

So i copied app and framework from other rom to my rom. I checked vold.fstab too. They were same. I flashed my phone and it is working really good. :)

But i have a problem, the internal and external storage are mounted. But apps are not finding them. Camera app says "please insert a sd card".

I can see my Internal and external SD-Cards with Root Explorer or with MiFile Explorer. I can copy files or delete files.

Under Root -> /mnt/ -> SDCard

I don`t any have any idea anymore. Maybe can someone give me a clue.

Best regards,

Mad
[Android Q&A, Help & Troubleshooting] noriyori:
So I'm getting a bit more in depth with porting but found a weird one and got a question.

What does the BOOTCLASS path do in the init.rc? I've run across a scenario where I'm instructed to edit the bootclasspath but I've looked at many different base roms for porting and none of them have the bootclass path. Is this something that can be left out? It seems to be declaring various jar files to use or initiate, but if I don't declare them at boot will they still be available? It seems so with CM or AOSP roms I've checked as none of them have a bootclass path line in the init.rc.

Thanks for any help getting my brain wrapped around this!
[Samsung Galaxy SL i9003] yoktur:
I tried sd swap apk for Alpha 6 but it didn't work.

I tried editing vold.fstab (changing emmc and sdcard) it didn't work.

I also tried editing sdswap section in build.prop it didn't work too.

Can anyone explain step by step what i need to do for internal-external sd swapping after flashing 10.1 Alpha 8?
[Samsung Galaxy SL i9003] nitv007:
Hi,

to swap sd card with external card , you can use the following command in the emulator:

su

setprop persist.sys.vold.switchexternal 1
[Samsung Galaxy SL i9003] yoktur:
I tried it but i have a problem.

File managers shows my ext sd card as sdcard0 its okay.

But when i try to take a photo it says There is not sd card, please mount it.

also in gallery there is photos but when i try to open them it shows gray color only.

In apps with photo caching in sd card like Twitter i can't see photos.
[Samsung Galaxy SL i9003] ajayprakashpandey:
Use as mtp.
[Samsung Galaxy SL i9003] nitv007:
After executing the command, you should reboot the phone.

yes , your external sd card is shown as sdcard0. if gray color image is displayed in gallery, it means the file is corrupted. Possibly that camera app has not written the file properly. Please restart the phone , see if it works.
[HTC First] cplking:
http://xdaforums.com/showthread.php?t=2366476

Can this be done for our phones on stock deodexed rom? And can someone give it a whirl? My laptop crashed so I can't
[Samsung Galaxy Mini] lorotel:
Starting from this release the native wifi tethering has to be working.

I can connect my Nexus7 to Mini 2, but data traffic doesn't transfer, while Open Garden Wifi Tether app is working great.

I had the same problem with stock rom, solved by changing APN type.

Is there any APN type other than default,supl that I might use with cm 10.1?

Thank You.
[Samsung Galaxy Mini] TheWhisp:
I have used it with LG G and it works just fine
[MDA III, XDA III, PDA2k, 9090 General] mikealder:
OK new to this forum, but please assist if possible - I have an XDAIIs which I have combined with a Bluetooth GPS unit and Bluetooth headset, I am runing the latest ROM from the O2 web site and the following occurs:

with TomTom vs3 the headset will pair but fails to connect, with TomTom vs5 the headset set will pair and connect, but when I terminate a call on the road using the TT vs5 the GPS disconnects at the same time. I have tried TomTom vs 3 with the GPS driver rolled back to vs2.06 which was the concerted opinion of pocketgps.co but that to did not work. I have tried setting the XDA up for a wired conection but that to fails to work - does anyone have a TomTom nav working reliably with this device when it is combined with a Bluetooth headset, any help much appreciated as I am now considering returing the unit as not fit for the purpose it was sold to me - in anticipation many thanks Mike
[MDA III, XDA III, PDA2k, 9090 General] sinclox:
I have had the same problem with TTN3 and headsets not working. The GPS pairing was not the issue. Removing TTN3 restored the link, but for some reason headsets will no longerconnect automatically.

I have tried soft and hard resets, and updated the bluetooth drivers to build 3900, but still the headsets will not connect automatically, only manually.. :(

I have exchanged a few e-mails with the guru's at TomTom who now thick this may be a bug, but no resolution yet...