yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] WisdomWolf:
Oh, OK. I could probably submit a pull request as I've already managed to combine them. Or you can find my fork of your repo on Github.

EDIT: I sent you a pull request. Also, posting my modified version of your RemoteMediaTest application that works with ICS, JB, and KK's RemoteController class.

https://github.com/WisdomWolf/TESTRemoteMedia
[Java for Android App Development] Slimshady007:
Great work!!!

You are bloody awesome mate. You have done a marvelous job with this library. I cannot thank you enough. I am just getting started with Android development, was stuck at those internal and hidden classes. For some reason eclipse would force close after modifying the ADT plugin. That's when i stumbled upon your thread. Thanks a ton once again. You Rock!! :good:
[Java for Android App Development] Dr.Alexander_Breen:
Here is the guide for the RemoteController:

[GUIDE] Implement RemoteController in your app
[Java for Android App Development] WisdomWolf:
I am thoroughly stumped. Do you have any suggestions for using RemoteController in an application that is also designed to handle notifications and be backwards compatible with 4.3? The odd requirement to inherit NotificationListener really throws a wrench in things. I know I could actually define two different notification listeners but that seems inefficient and there's got to be a better way.
[Java for Android App Development] Dr.Alexander_Breen:
We probably could use reflection to register the guts of RemoteController directly to AudioService, bypassing the NotificationListener check. I suppose it's possible, but it can have unknown side effects. Do you want me to try it out, or you can do it yourself?
[Java for Android App Development] WisdomWolf:
I have very little experience with using reflection, so your help would be greatly appreciated. I've tried all sorts of workarounds, but the registration always fails. The only other solution that I could think of was writing a dummy OnClientUpdateListener interface to be loaded when running API level 18. Not entirely sure how to accomplish that either though, but I believe it's something that could be accomplished by making use of ClassLoader. Any help you can offer would be very welcome. I'd still be trying to wrap my head around metadata if it weren't for your library and articles.
[Java for Android App Development] WisdomWolf:
I figured it out. Your tip about reflection was really useful, but after chasing my tail for a bit I discovered that reflection wasn't necessary. I used the source code to find out exactly how the permission access was granted. It looks like it takes the OnClientUpdateListener from the RemoteController that gets passed to it and then checks the class against the enabled notificationlisteners. Once I realized that, I simply rewrote the registerRemoteController method to try getClass().getEnclosingClass() first. The registration bypasses the AudioManager, but all the other method calls are left in tact.

You setup a great example of a support library, so I used that concept to create a support library for KitKat's RemoteController class. It includes the modified registration method along with some passthroughs to otherwise inaccessible methods like getArtworkSize() and getRemoteControlClientPackageName(). I don't know if I'll have time to write a guide, but I've included the library in case anyone else is interested. You can find the source on my github.
[Java for Android App Development] ScootrNova:
Thanks a bunch for the library Dr. Alexander! It works pretty good and has saved me on a project that I'm currently working on.

...but I still have seen an issue or two. Namely, Samsung's default player that comes with its TouchWiz devices seems to not work want to work here. On a Galaxy S3 and S4 the default music player refuses to work with your library. However, other music apps on the phone do work (like Pandora and Rdio).

I'm guessing that this is not an issue that you can truly fix, given the nature of all of this. But I'm just hoping that maybe, just maybe, there's a chance.

Thanks mister, you've done a great job. And without your RemoteController guide, I would have never gotten that working either.
[Java for Android App Development] ScootrNova:
This is a follow up to my post right about this one.

So one a Galaxy S3 running 4.0.4, the MetadataUpdaterCallback class's handleMessage() method seems to be the culprit. When the msg parameter's what member variable is RemoteControlDisplay.MSG_SET_GENERATION_ID, the PendingIntent object that should be available under msg.obj is null. This only seems to effect the TouchWiz player, as other apps on this very same phone (like Google Play Music and Pandora) both give a valid PendingIntent object here.

Our S4 (running 4.3) exhibits a similar problem with TouchWiz, but I'm not sure yet if it's the same issue. (I haven't looked into it yet as it's using that different v18 library.)
[Java for Android App Development] ciberbeb:
Hi,

First, congrats and thanks for this lib, it helps me a lot.

I'm not very experienced in android development, so please be indulgent ;)

I'm trying to use this library from a widget.

I read the documentation and the AppWidgetProvider lifecycle seems to be very short, meaning, everything is created upon user interaction and killed after.

Is there a way to persist my listener registration between the onUpdate and the onReceive methods?

Cause it seems that my fields are always reset (set to null).

Do I need to use a service?

Actually my app is just a widget, so a service seems unnecessary.

Thanks a lot in advance.
[Java for Android App Development] Shwiby:
Thanks

First off, thank you for creating this amazing library.

I used it in one of my most recent apps and it is holding up well.

One thing that I did run into is a few users on android 2.2 and 2.2.3- 2.3.7 are reporting NoClassDefFoundError's.

I assume this means that the library can't find the class that the locksceen uses to display music playback.

I'm not sure if I missed something about this library not working on those versions or this is just a device thing.

What ever it is let me know if I can help fix it in any way!

Awesome work,

Shwiby
[Java for Android App Development] WisdomWolf:
It won't work prior to ICS as the required hooks don't exist in those earlier Android versions.
[Java for Android App Development] doomedez:
Is it possible to use this library without MediaPlayer? Because i use custom engine for media playback.
[Java for Android App Development] WisdomWolf:
If your custom media engine registers as a RemoteControlClient and reports metadata this library should work.
[Java for Android App Development] doomedez:
Can you show a method for report metadata? I read the post carefully, but only saw a methods for get metadata from widget, there are some methods for report? Thanks.
[Java for Android App Development] WisdomWolf:
Google has a fairly straight forward, albeit brief, explanation here: http://developer.android.com/reference/android/media/RemoteControlClient.html
[Java for Android App Development] doomedez:
Oh damn. Thanks. I couldn't see EditMetadata method.
[Java for Android App Development] tombarr:
RemoteController without NotificationListener

First off, thank you for the guides and good work! They've been a great jumping off point.

Regarding this "bypass" of the NotificationListener check, do you have a working demo? I tried the jar you provided but got an IllegalAccessException with Line 64 (the method call to getUpdateListener). Moreover, I've looked into the source of Audio-related classes. Unfortunately, this is what I've found:

/* Like registerRemoteControlDisplay, but with success being subject to a check on
* the android.Manifest.permission.MEDIA_CONTENT_CONTROL permission, and if it fails,
* success is subject to listenerComp being one of the ENABLED_NOTIFICATION_LISTENERS
* components.
*/
public boolean registerRemoteController(android.media.IRemoteControlDisplay rcd, int w, int h, android.content.ComponentName listenerComp) throws android.os.RemoteException;

As it turns out, the checks are performed in AudioService which exists in the system process. This is pretty standard and means that no matter what you do, you cannot bypass it simply using reflection or code build with android.jar. If you pass null to registerRemoteControlDisplay you'll still get the permission check, and that is a signatureOrSystem permission so third-party apps cannot access it.

Is there anyone who has had success working with RemoteController and NOT having to register a NotificationListener? I just find that a ridiculous requirement without justification (why do media control/ playback apps need to receive notifications)?

Best,

Tom
[Java for Android App Development] WisdomWolf:
It turns out that my initial solution only worked for me because my class loader didn't actually check to see that all classes in a package were loaded from the same place. I'm not sure if it is a Cyanogenmod thing or if it had something to do with XPosed. What I ended up doing instead was writing a RemoteController shell to include in my project. This satisfies the interface implementation on 4.3 which prevent the notification listener from crashing. I also made it the lowest priority so that it doesn't get loaded at all on 4.4+ due to the actual RemoteController class having already been loaded from the Android Library. You can find the shell library code on my Github.

Side Note: I've started working on Android L compatibility and it turns out that Google changed everything again. I'm working on getting a Nexus 7 for development, then I'll try to give some examples as to what exactly has changed.
[Java for Android App Development] AMQTech:
Nice! Thanks!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] andy_d0:
I'm now on my 3rd S3 which thankfully is still covered by warranty. I really would like to avoid having to go through this over and over but I'm not sure how to avoid the charger port not working properly over time. I don't think I've done anything really to provoke it. I think the case might have angled the port a little so I'll likely stop using that case

I'm curious though - is anyone else experiencing this? Looks like I can do self repair but it would require soldering skills which I don't have
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] aybarrap1:
What case do you have?

Sent from my SAMSUNG-SGH-I747
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Micronads:
Yes, have had one phone replaced already. This one is flaky as well. Bought a wireless charger for it, but have to use air droid for file transfers.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] andy_d0:
Aybarrap1 - I have an authentic and a fake spigen neo hybrid case

Micronads - never thought of that. I think I would prefer that option. What wireless charger are you using
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] thanitos:
Is induction charging possible with just the coil behind the battery cover
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] andy_d0:
It looks like that is the case. I'm going to try it out myself. Ordered the receiver from Fast Time and a Nokia wireless charging pad from AT&T
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] fhp3:
I'm having a similar issue in that I cannot charge the phone via the USB. It starts to charge but then the LED goes off. By the morning I am down to 3% charge after 7 hours of being plugged in. I have tried 3 different batteries, 4 cables and ac adapters. I reflashed to stock and then had a Samsung guy at Best Buy reflash again. Same thing happens. The only way I can charge is with an external battery charger or if I use an iPad was charger with my USB cable...go figure.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] tokuzumi:
My S3 is only a couple months old, but so far, it's holding up nicely. Is the issue actually with the charge port, or with lint from your clothes preventing the charger from connecting to the pins in the port?

No phone could have a worse charge port than the Evo 4G. I was lucky to never have an issue with it, but I know tons of people did.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Micronads:
I cleaned the lint out, but it still would not work properly. I also tried different batteries, cables, wall ports, usb ports, everything.

---------- Post added at 09:09 PM ---------- Previous post was at 09:08 PM ----------

I have the qi charge station and induction pad. Just install on battery. Works great
[T-Mobile Samsung Galaxy S 4] Just Anton:
Hello All,

I am a new user here and would like to find out how to install new ROM on my Samsung galaxy s4 GT-I9505 (T-Mobile-UK).

Firstly my question is -

what rom should I be going for? Google Vanilla or any of the custom ones?

I see a lot of roms here and how to install them but not sure where to start...

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

Also could someone confirm if ROM versions will work in UK?
[T-Mobile Samsung Galaxy S 4] Misterjunky:
re: flashing custom roms

Only flash Samsung 4.2.2 Jellybean based custom roms for best results (especially for new users)

Your post here is in the wrong forum for the Galaxy S4 GT-i9505 phone.

The correct i9505 forum is located at: http://xdaforums.com/forumdisplay.php?f=2166

and there you will find all kinds of roms which you can flash after your phone is rooted.

Rooting your phone is the first thing you have to do if you want to flash any roms.

Before going to the i9505 rom forum it's best to go to: http://xdaforums.com/showthread.php?t=2219803

so you can root your phone. Before flashing any roms your phone needs to be rooted.

You will find everything you need including step by step rooting instructions in the link above.

Good luck!
[MDA II, XDA II, 2060 Windows Mobile 2005 Upgrading] rick83:
Im just hoping that we can get WM5 running on BA soon enough...
[MDA II, XDA II, 2060 Windows Mobile 2005 Upgrading] mata:
ya its avalbl

its avalbl on www.buzzdev.net injoy
[Moto X Q&A] ShanMan14:
When I got my Verizon Moto X it had this wallpaper, a stock Jellybean wallpaper. I changed it to one of the Moto X wallpapers and then tried to change it back and interestingly, none of the JB wallpapers are there, including the one it shipped with, odd.

:confused:
[Moto X Q&A] ijustwantaname:
That is pretty weird indeed - my VZW MX didn't have any of the JB wallpapers at all. Consider yourself quasi-fortunate?
[Moto X Q&A] gunnyman:
I bet the wallpaper came from setup. Did you select restore from backup when you set it up?
[Moto X Q&A] ShanMan14:
Ah! Good call, I didn't even think of that. It did restore (some) apps, whatever Google was backing up from my Galaxy Nexus was old but at some point in the past I did use a stock JB wallpaper. That must have been it.
[Galaxy Y GT-S5360 Themes and Apps] WhiteWolf:
Here is a app to make windows animation faster or slower, changing font size etc. on galaxy Y.....

STEPS TO INSTALL

1. Install the apk

2. Open the app

3. Open window animations

4. Click on Fast

5. Click on transition effects

6. Click on Fast

7. Done

U WILL FEEL UR PHONE A LITTLE FASTER
[Galaxy Y GT-S5360 Themes and Apps] ojannn:
nice work pal, work very well :)
[Galaxy Y GT-S5360 Themes and Apps] burak144:
this app isnt his work. he just sharing. op plz change title to [share][app]

Galaxy Pop Plus'ımdan Tapatalk 2 ile gönderildi.
[Galaxy Y GT-S5360 Themes and Apps] Theawesomeguy4:
Nice works bro! :thumbup:

I guess you pulled it up from a rom?
[Galaxy Y GT-S5360 Themes and Apps] WhiteWolf:
Yes BRO.... From a ROM....
[Galaxy Y GT-S5360 Themes and Apps] WhiteWolf:
Title changed.... Sorry earlier I forgot to write ..... :p
[Galaxy Y GT-S5360 Themes and Apps] WhiteWolf:
Thanks a lot for appriciating my post.... :good:
[Galaxy Y GT-S5360 Themes and Apps] -CALIBAN666-:
Here is link to Play Store

https://play.google.com/store/apps/...&utm_medium=organic&utm_term=spare+parts+plus

GREEEEETZ!!!!
[General Questions and Answers] mosy7:
Hello

I have a tablet with a10 CPU and 2g GSM, 512MB RAM and 8GB nand-flash

It's not a famous brand so there's not a firmware for it, so I've flashed it with livesuit and wintouch Q73 and after that my laptop doesn't know the tablet, I don't know if there's anything wrong woth my tablet, with my livesuit or with the windows , but I've changed my windows and checked up my cables and usb ports, any Ideas about why the laptop doesn't know the tablet and live suit doesn't react?
[Galaxy S 4 Q&A, Help & Troubleshooting] ronran:
Hi

I bought 3 weeks galaxys4 I9505

suddenly before few days the phone charge the phone very slowly. i thought its the charger so i bought new 1 and now the phone is not charging at all.

i replaced battery and its not solve the problem.

factory default will solve the problem?

any other idea?

Thank you Ran
[Galaxy S 4 Q&A, Help & Troubleshooting] :
Are you using the official samsung charger and USB lead they supplied? Some micro USB leads can be dodgy. One I borrowed at work wouldn't mount on the PC. If its brand new I'd send it back otherwise
[Galaxy S 4 Q&A, Help & Troubleshooting] ronran:
Yes i am using the official charger and i change 2 more to check . its brand. but i prefer to try to solve it alone because the phone with root and i don't want to wait 24 hours to let them check the phone.

any more idea?

??
[Galaxy S 4 Q&A, Help & Troubleshooting] :
Could just be the battery.
[Galaxy S 4 Q&A, Help & Troubleshooting] ronran:
Replaced 3 battery. still same problem
[Galaxy S 4 Q&A, Help & Troubleshooting] :
It's looking like it could be a hardware fault. It will need sending back for repair.

If you are using a stock Kernel on your current rom I would look into trying to reset the binary counter using Traingleway. Obviously you will need a charged battery for this. Use a friends phone or something

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

This will reset the flash counter on the device but I can't confirm if this will pass an engineers inspection. Make sure you read the thread thoroughly

Once reset, use mobile odin to flash an unrooted copy of the official firmware on the device. Using odin will only increase the binary counter again but mobile odin does not.

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

delete the offical firmware from the internal SD and send the phone back for repair. In it's current state your phone is useless so you may aswell try
[Xperia Arc Themes and Apps] gauravj:
WARNING

I/xda will not be reposible if you brick your device

Requirements

1)Android device

2) CMW Recovery

3)Human Brain:confused:

Steps

1)download the file

2)make nanadroid backup

3)flash zip file

4)wipe cache/dalvik cache

Tested on

Slim bean 7

CM 10.1,10.2​

Credits

AWESOME BEATS (for his apk file)

ME (for beats libs)​
[Xperia Arc Themes and Apps] GreatVegeta:
Will it work if AC!D soundmod is already installed?
[Xperia Arc Themes and Apps] gauravj:
nope

no dude
[Xperia Arc Themes and Apps] Omessy7:
hello there... can you make a vid, to show difference between sound loudness/quality with this mod and without... thanks anyways ;)
[Xperia Arc Themes and Apps] gauravj:
nice idea

yup man asap :):good:
[Xperia Arc Themes and Apps] soybi:
is this universal like the original aroma installer? Coz im using the original one from awesome.

soybi™
[Xperia Arc Themes and Apps] popthosegaskets:
No, this one is just a flashable zip, no AROMA installer.

僕のLT18iから送られてきた
[AT&T LG Optimus G] pivotraze:
My computer runs Ubuntu 13.04, and I have Windows 7 in Virtualbox. Could I use LGNPST through Virtualbox, or should I make a dual boot Windows 7 partition real quick?
[AT&T LG Optimus G] Shelnutt2:
You can use it in VB. Make sure you have the qcserial module loaded in Ubuntu and the serial ports forwarded in VB.
[One (M7) General] Ali_ultra99:
HTC one was the best mobile phone in 2013 , and no one can say otherwise

HTC introduced to the industry 3 majors features in the HTC one , that definitely other phone manufacturer will be using in there future phones.

First : All metal design

Second : boomsound

Third : ultrapixel , and that more megapixels doesn't mean better pictures

Samsung is rumored to enter its new phase in phone design , and begin using all metal bodies

The highly praised speakers of the HTC one , could be a sign of competitors start using similar design or start to develop its own technology to compete in this area.

What I want us to discuss is HTC going to use this three things again in there next gen device ( 2014 ) , or introduce something new .

They are facing a hard job , they must introduce a better device , with new features , that will make it differ from the HTC one , while making the most loved features in the one not to be missed
[One (M7) General] ArmedandDangerous:
I want a S800 tablet that isn't made by Samsung.
[One (M7) General] Nokiacrazi:
This isn't necessarily product related (well it is) but I want then to release all colour variants of the same phone at the same time or close to same time. If they can't release it around the same time as the device launch then they should at least say they are working on whatever color variant and it will be available in the future.

I really wish I had said to buy the red HTC one.
[One (M7) General] Hiken_Ace:
The main job of HTC now isn't new features .. but rather built quality and more testing b4 rolling out the devices ... For example the HTC One .. Design is good but u have to be super lucky to not get a faulty device from the first time ... Either dust under the screen .. or volume rockers are too loose ... Or there are gaps between the aluminum and the plastic .. or hardware problems .. or or or ... And secondly their customer service .. if they go and work on those 2 factors .. I don't find any trouble seeing them leading the smartphone market for a long time !!
[One (M7) General] Alsarea3:
I wish if they make an 8 megapixel ultrapixel camera .. I like the performance of my HTC One's camera a lot, best camera phone I ever used, but you know .. sometimes we need to zoom ..
[One (M7) General] quattro_rs:
There next big thing might be declaring bankruptcy ..... :(
[One (M7) General] seltaeb:
Unfortunately this may be true, though maybe not immediately. They do have their share of problems and being up against a juggernaut like Samsung is not the least of them. However, the smartphone market is fickle and one or two consistent good products (supported by great marketing) is all it might take for them to make a turnaround.

Anyways, as far as the device itself goes I'd only like them to sort out quality control issues for whatever they put out next.
[One (M7) General] bornotty:
the only thing they should focus on is MARKETING!
[One (M7) General] Hudrator:
I think HTC has some potential for marketing. For example the HD-Microfone. A Feature that I won't miss anymore. Best audioquality on a handycam I ever had. But nobody mention this , even not the reviews.

Evenmore they can improve with there own software. For example: Nice to select music for highlightvideos, but why can't I choose whitch part of music?

Or maybe implement a feature like chathead.... Or multiwindow....

My wishes for hardware. Sdcard slot... Really.... All other high-end phones have this feature. Even my old DHD had this feature....

Maybe work on the ultrapixelcam. 6 to 8 megapixel would be nice.
[One (M7) General] NovaSlim:
The chasis & dimension of the One imo are fine, build quaility issues mentioned by Hiken_Ace aside(these should be fixed as they make more phones of that design, AndroidCentral claim the Blue Ones don't have much issue).

Things I want for the HTC One successor(hardware changes like S800+LPDDR3 are inevitable anyway):

Thinner bezel

Three Button layout

The buttons become on-screen thus increasing the screen size

More Pixel in the Ultrapixel Camera, 6-8MP. The Zoom & Daylight performance still leaves something to be desired.
[One (M7) General] killman2659:
Because focusing on making the best device possible is overrated /s