Hi all,
I've been going through the FirstApp tutorial at https:// developer.android.com/training/basics/firstapp/index.html and getting things going. I'm using Android Studio on Linux (Debian).
It's going well enough, but I find that if I Run the app and select "Choose a running device", it will run the first time. After that it compiles successfully and shows as running, but the app simply won't display on the device. I have a Samsung Galaxy 3 running KitKat.
To fix this I find that I can unplug and replug the device and it then works again... for one run. I've also tried being careful and terminating the app before restarting it, BUT that does not help. So unplug/replug is a workaround but not very nice.
Anyone experienced this? I haven't found anything obvious googling.
Hmm okay. It looks like I had to turn on ADB Integration: Tools -> Android -> ADB Integration
I'm not 100% sure this will fix it forever but I thought I'd share in case someone else wants to try it too.
Related
Hopefully someone can help me because I have been stuck for days and I have researched nonstop. My phone was working fine and could connect to my pc a week ago. I installed Android SDK and eclipse so I could try and develop an application. Now that I have installed it, my phone will not connect to my PC. My tablet will not either. I have ticked the USB debugging on and off, updating drivers from Motorola as well as the Google usb drivers from the sdk manager. When i type in the command for adb devices, no device is shown. In the device manager, my device does not show up. It doesn't even charge anymore. I have the original cords, but have tried others just in case. I am running Windows 8.0 if that makes a difference.
dcon025 said:
Hopefully someone can help me because I have been stuck for days and I have researched nonstop. My phone was working fine and could connect to my pc a week ago. I installed Android SDK and eclipse so I could try and develop an application. Now that I have installed it, my phone will not connect to my PC. My tablet will not either. I have ticked the USB debugging on and off, updating drivers from Motorola as well as the Google usb drivers from the sdk manager. When i type in the command for adb devices, no device is shown. In the device manager, my device does not show up. It doesn't even charge anymore. I have the original cords, but have tried others just in case. I am running Windows 8.0 if that makes a difference.
Click to expand...
Click to collapse
do you actually need eclipse? did you try uninstalling everything to see if you could connect again?
likely you do not need eclipse and should have just installed the sdk but i have never had the problem you are describing. i would just uninstall everything and get it working again then re-try installing whatever you want to
jayboyyyy said:
do you actually need eclipse? did you try uninstalling everything to see if you could connect again?
likely you do not need eclipse and should have just installed the sdk but i have never had the problem you are describing. i would just uninstall everything and get it working again then re-try installing whatever you want to
Click to expand...
Click to collapse
I may sound stupid because I don't know enough about this.. But don't I need eclipse to make an application? I am going to try to make an application for my class, and thought I needed eclipse and the sdk. I am currently uninstalling it all to see if it helps any.
dcon025 said:
I may sound stupid because I don't know enough about this.. But don't I need eclipse to make an application? I am going to try to make an application for my class, and thought I needed eclipse and the sdk. I am currently uninstalling it all to see if it helps any.
Click to expand...
Click to collapse
well there are other IDEs out there besides eclipse but you can use that one. Sounds like you are about to have a pretty big uphill battle creating an app lol.
But if you get everything to work without anything installed, try re downloading and installing everything without your phone plugged into the computer. I have no idea if that would work or if it would matter at all but it could i guess. that's where i would start. it should screw anything up on your computer that wouldn't let you connect your phone but maybe something weird happened.
i just did some research and only found people having similar problems with samsung phones. And the solution was downloading some kies program for samsung phones. so idk what else to tell you.
jayboyyyy said:
well there are other IDEs out there besides eclipse but you can use that one. Sounds like you are about to have a pretty big uphill battle creating an app lol.
But if you get everything to work without anything installed, try re downloading and installing everything without your phone plugged into the computer. I have no idea if that would work or if it would matter at all but it could i guess. that's where i would start. it should screw anything up on your computer that wouldn't let you connect your phone but maybe something weird happened.
i just did some research and only found people having similar problems with samsung phones. And the solution was downloading some kies program for samsung phones. so idk what else to tell you.
Click to expand...
Click to collapse
Ahhhh it worked! My pc will finally recognize my device. I'm not sure what the problem was either, I got the same results when I was researching. No one seemed to have the exact same problem.
I'm definitely going to have some problems trying to create an app haha.. The SDK came with eclipse, so I just assumed I had to use it. I'm pretty sure I'm in over my head! Is there another IDE that you recommend? The easiest method is the method I'm going to take for sure.
dcon025 said:
Ahhhh it worked! My pc will finally recognize my device. I'm not sure what the problem was either, I got the same results when I was researching. No one seemed to have the exact same problem.
I'm definitely going to have some problems trying to create an app haha.. The SDK came with eclipse, so I just assumed I had to use it. I'm pretty sure I'm in over my head! Is there another IDE that you recommend? The easiest method is the method I'm going to take for sure.
Click to expand...
Click to collapse
eclipse is fine. a lot of people use it. just search through xda and you will find threads teaching you how to build apps, but unless you are going to spend a good amount of time or already know how to code, prepare to be ticked off.
jayboyyyy said:
eclipse is fine. a lot of people use it. just search through xda and you will find threads teaching you how to build apps, but unless you are going to spend a good amount of time or already know how to code, prepare to be ticked off.
Click to expand...
Click to collapse
I have 10 weeks left to make it, so I've got plenty of time. I know how to code a little bit, but I'm not very good at it. I'll give eclipse a try and see if it works this time. Thanks for the help!
dcon025 said:
I have 10 weeks left to make it, so I've got plenty of time. I know how to code a little bit, but I'm not very good at it. I'll give eclipse a try and see if it works this time. Thanks for the help!
Click to expand...
Click to collapse
no prob
Hey all, so I recently spent some time learning up on these awesome forums, and at least for getting started I decided to just modify stock 2.2, I have just really wanted to be able to play games using my ps3 controller on my nook so I thought the easiest path was to root using the Universal Rev3, and the Unknown Apps, at least to get me started. I have a bluetooth keyboard I also use with this setup for school. Okay so that's the upfront details.
My issue is that, while my bluetooth is connecting fine with everything before I run sixaxis, and my controller works (yay, i got what i wanted!) while I'm running the program, it's when I stop sixaxis and it restores my bluetooth (or says it does... or gets stuck and never says it does) my bluetooth simply can't be switched back on until after I reboot... I've completely stopped and disabled and cleared the cache on the sixaxis app... and nothing, still won't turn back on. Now this is a cadillac issue, my controller works, my keyboard works, but I just have to reset. The problem is that I know it shouldn't be this way and if it has to be, I'll survive, but if not I'd love a way to make it work right, or at the very least see if there's an option to... "respring" (I know that's an iphone thing I just didn't know if there was a faster equivalent to a reboot without having to completely turn it off and back on)?
Anyone else had this problem? Any thoughts? Any options? Thanks for your time and information, have a great day!
"t's when I stop sixaxis and it restores my bluetooth (or says it does... or gets stuck and never says it does) my bluetooth simply can't be switched back on until after I reboot..."
Obviously, its at the fault of the app, because otherwise (sixaxis not installed/used) bluetooth would function properly and no restart would be required.
Therefore, sixaxis is not ending support of the controller properly, re-enabling bluetooth support, or whatever its trying to do for the device, android version, or whatever its problem is in code.
Probably good to let the app's dev know about it and find out if they say anything.
Since root access is required, it definitely requires some deeper access to android (the deeper the more problems are likely to occur). Some code doesn't even work for all devices and they could have gone that route with their app knowingly - whether it was a necessary side effect due to the type of app they created or specifically because of a workaround of what google allows devs to do with android.
Either way it is often an app with problems as reviews show.
sandsofmyst said:
"t's when I stop sixaxis and it restores my bluetooth (or says it does... or gets stuck and never says it does) my bluetooth simply can't be switched back on until after I reboot..."
Obviously, its at the fault of the app, because otherwise (sixaxis not installed/used) bluetooth would function properly and no restart would be required.
Therefore, sixaxis is not ending support of the controller properly, re-enabling bluetooth support, or whatever its trying to do for the device, android version, or whatever its problem is in code.
Probably good to let the app's dev know about it and find out if they say anything.
Since root access is required, it definitely requires some deeper access to android (the deeper the more problems are likely to occur). Some code doesn't even work for all devices and they could have gone that route with their app knowingly - whether it was a necessary side effect due to the type of app they created or specifically because of a workaround of what google allows devs to do with android.
Either way it is often an app with problems as reviews show.
Click to expand...
Click to collapse
Hey thanks a ton for the information. I had started to suspect that but since I'm a noob here I thought it was best to ask. Will contact the developer. But hey for now if all I have to do is a reset after a gaming session to make all things right, it's not so bad. Thanks again!
EDIT: Okay, so after doing some fiddling with my own Nook HD+ it looks like the Nook itself has trouble shutting down bluetooth! When I go into my battery use bluetooth is staying on permanently after initially turning it on. The time continues to run no matter what I do or shutdown with Android Task Manger. And it appears I'm not the only one. http://bookclubs.barnesandnoble.com...Bluetooth-won-t-turn-off-Nook-HD/td-p/1462091
Also since mine is rooted and has unknown sources installed I felt like I needed a control group. So I borrowed my wifes Nook HD+ which is completely stock, no mods at all... and it does the exact same thing... This is mind boggling. Could a few people turn their bluetooth on long enough to register in their battery monitor, then turn it off, and tell me if their time is still running for the bluetooth? It would really help me identify whether this a software problem with Nook software, or it's a hardware issue that they had amongst several models and they shipped with bad parts, etc. Thanks!
gregorcarbine said:
Could a few people turn their bluetooth on long enough to register in their battery monitor, then turn it off, and tell me if their time is still running for the bluetooth? It would really help me identify whether this a software problem with Nook software, or it's a hardware issue that they had amongst several models and they shipped with bad parts, etc. Thanks!
Click to expand...
Click to collapse
It could also be this or similar: https://code.google.com/p/android/issues/detail?id=69135
Quote, "Problem: When turning off the Jawbone, it causes the Bluetooth(BT) to misbehave and not turn off nor function."
...Though that's for android 4.4.2 and nook 2.2 is android 2.2... wow that's old... that could of course be it as well - if the problem is with android, it could have been fixed in a later android version.
In the end, it doesn't appear to have to do with the device itself, but perhaps with that android version's bluetooth package or an installed app. And which android version (if any) would work for you idk. I remember people saying cm and sixaxis didn't work with bluetooth on the nook in the past, so if that's still the case, don't know that either.
I'm not sure how far back many apps are going today with android versions but something like: https://play.google.com/store/apps/details?id=org.myklos.btautoconnect&hl=en
could possibly do something(?). But, I'm just reaching there for anything in the you never know category.
But hopefully that gives a better picture as to what it could be. Sorry, I can't give an actual [working] solution, though for all I know I gave a path to the only solution.
So I had MHL working perfectly for nearly a year. Im on Android 5.1.1
Suddenly I plugged it in as usual and nothing happened. I thought it was the MHL cable so bought another. Same thing.
I started having a look around and in Smart Connect > TV > MHL I noticed under 'launch app' it said 'MISSING: com.sonyericsson.tvlauncher'
I searched and searched and searched online but could not find where to download this app. Only thing I found was http://forum.xda-developers.com/xperia-z1/themes-apps/sony-tv-launcher-time-tv-t2871060 and well...I just installed the apk's from that link. It still didnt work, but now under launch app it said MISSING: something else. To be honest I can't remember exactly what, but it was longer than the previous.
At this point I was getting pretty pissed off so didnt try anything again until I just went online to Sony Support and they advised to go to Apps > All > Smart Connect and press Clear Data.
I just did that and now.....under Smart Connect there is no more TV shown, nothing happens when I plug in the MHL. TV Launcher seems to be installed correctly now...but yea still nothing happens.
Next step I was advised was to connect to my computer and run 'Repair Experia device' which I will do as soon as my phone is 80% charged.
Anyone have an idea about whats happened, and what to do to fix??
Only thing I can think is every few days Im having to move stuff over from phone memory to sd card, and always select everything to move...pics..vids...apps...maybe it moved the tvlauncher app or something? Although last week it did say there was an error and it was unable to move 1 app...I didnt think much of it...
Thanks!
https://play.google.com/store/apps/details%3Fid%3Dcom.sony.tvsideview.phone%26hl%3Dde%26referrer%3Dutm_source%253Dgoogle%2526utm_medium%253Dorganic%2526utm_term%253Dsony%2Btv%2Bapps%26pcampaignid%3DAPPU_1_Ih5nVsXrGYmGzAOmyL-IDA&ved=0ahUKEwjFhMOc78zJAhUJA3MKHSbkD8EQ8oQBCCYwAA&usg=AFQjCNH4ErmJtArvv1f2a-FYLr85JzYFIw
It's this and maybe only got renamed?
Try to edit the package and app name to replace the link or make it work again
aldolino said:
So I had MHL working perfectly for nearly a year. Im on Android 5.1.1
Suddenly I plugged it in as usual and nothing happened. I thought it was the MHL cable so bought another. Same thing.
I started having a look around and in Smart Connect > TV > MHL I noticed under 'launch app' it said 'MISSING: com.sonyericsson.tvlauncher'
I searched
and searched and searched online but could not find where to download this app. Only thing I found was http://forum.xda-developers.com/xperia-z1/themes-apps/sony-tv-launcher-time-tv-t2871060 and well...I just installed the apk's from that link. It still didnt work, but now under launch app it said MISSING: something else. To be honest I can't remember exactly what, but it was longer than the previous.
At this point I was getting pretty pissed off so didnt try anything again until I just went online to Sony Support and they advised to go to Apps > All > Smart Connect and press Clear Data.
I just did that and now.....under Smart Connect there is no more TV shown, nothing happens when I plug in the MHL. TV Launcher seems to be installed correctly now...but yea still nothing happens.
Next step I was advised was to connect to my computer and run 'Repair Experia device' which I will do as soon as my phone is 80% charged.
Anyone have an idea about whats happened, and what to do to fix??
Only thing I can think is every few days Im having to move stuff over from phone memory to sd card, and always select everything to move...pics..vids...apps...maybe it moved the tvlauncher app or something? Although last week it did say there was an error and it was unable to move 1 app...I didnt think much of it
...
Thanks!
Click to expand...
Click to collapse
This apk is from stock .264 (latest) Z3C firmware.
try to install,
or better, move to /system/priv-app/SemcTvOut and set permissions to rw-r-r.
AMDFenics said:
This apk is from stock .264 (latest) Z3C firmware.
try to install,
or better, move to /system/priv-app/SemcTvOut and set permissions to rw-r-r.
Click to expand...
Click to collapse
jep, as i thought, its the same app i linked tnly got renamed So if it isnt compatible to your OS take the play link or have a look @ apkmirror
So I got a new toy. A Samsung Gear Live. I've had it for a week and so far really like it. The biggest issue I seem to be having is the companion apps. I don't know why, but they refuse to work. Everytime I try to use one I get an error message to the tune of, " not connected to a device with this application" or "lost connection to phone". This is clearly untrue. I can see that I'm still connected and even the device itself acknowledges it. I just can't figure it out.
I have attempted a power cycle, using the restart function, a hard reboot, even reseting it back to factory. I rebooted my phone, Uninstalled and reinstalled the apps on the phone, and still no luck. I'm at a loss. Anyone who knows what to do on this front would be very welcome.
What are companion apps?
Sent from my SM-N910T3 using XDA-Developers mobile app
Companion apps, are the apps that are activated on your smart watch. Like the dominoes easy order app, or a bank app that let's you check your balances without pulling out your phone.
I did find my problem however. It seems that my gear live was shipped with a dev kit. I had to completely reflash it to stock software to get it to run correctly.
How did you figure out it was a dev kit? Im having similar problems. Thanks.
Fixed the problem resetting the watch and reinstalling the Android wear app. However now in the storange manager its showing three of several apps. How to fix please?
You can find if it has a Dev kit under the settings. Under build I believe. It should be a set of numbers with "dev" somewhere in it. If that's there, it's gonna hold up your regular use of the watch. It caused the apps not to work right or not to show up, etc. I'll see if I can find the link I used before for how I reset the watch to stock firmware.
Does anyone have a method for completely disabling or removing Android Auto? Every time I plug my phone in to charge in my wife's truck, it pops up and I have to say "no." I don't have the app installed and the required software will never land on my phone (stripped down Lineage OS install). Is there a system app I can remove or setting I can change that will make it stop popping up?
junk408 said:
Does anyone have a method for completely disabling or removing Android Auto? Every time I plug my phone in to charge in my wife's truck, it pops up and I have to say "no." I don't have the app installed and the required software will never land on my phone (stripped down Lineage OS install). Is there a system app I can remove or setting I can change that will make it stop popping up?
Click to expand...
Click to collapse
There should a setting in the radio to disable Android Auto. In my Ford it is under Android Auto settings.
My wife uses it, so doing that would increase the number of steps that I have to take. (Would have to toggle off while I'm driving and remember to toggle back on when done so she doesn't get annoyed.) I'm trying to figure out how to disable it entirely or block the intent that signals it to start.
junk408 said:
My wife uses it, so doing that would increase the number of steps that I have to take. (Would have to toggle off while I'm driving and remember to toggle back on when done so she doesn't get annoyed.) I'm trying to figure out how to disable it entirely or block the intent that signals it to start.
Click to expand...
Click to collapse
OK,
Sorry can't help on that
junk408 said:
Does anyone have a method for completely disabling or removing Android Auto? Every time I plug my phone in to charge in my wife's truck, it pops up and I have to say "no." I don't have the app installed and the required software will never land on my phone (stripped down Lineage OS install). Is there a system app I can remove or setting I can change that will make it stop popping up?
Click to expand...
Click to collapse
It shouldn't be starting should it? When I plug my sons phone in which doesn't have the AA app installed it doesn't start AA on head unit. When I plug my phone in it says something like AA device detected & AA on the head unit starts. So something must be wrong with trucks AA, I think, or maybe different car manufactures do things differently?
Are you sure you can't install app on your phone? If you could install the AA on your phone there is a rejected car list option, you can add your wife's truck there and it won't start… I guess (as I've never used that option)
Alternatively you could just use one of those cigarette lighter USB chargers… I have one of those as passengers are always running low on battery LOL.
Installing the app requires installing and enabling at least one other piece of software that is well known for being bad for privacy: Google. Putting that on my phone is a non starter for anything. It's worth trying to see if I can change that setting without having to install all the dependent software though.
Just wondering if you were able to solve this? I have the exact same issue. Crazy thing is that I had gotten rid fof the annoying Android Auto prompts but then the super helpful techs at Samsung screwed up my phone trying and failing to do something else. Now the prompts are back and I can't remember how I got rid of them in the first place.
what about a cable like this ? https://www.amazon.com/PortaPow-Micro-USB-Cable-Charging/dp/B0088HTYUE
Please help. I highly recommend nobody update Android phones! Android auto does not stop popping up and is extremely annoying. It doesn't work. And causes all kinds of delays and disrupt other applications that work fine. Anybody know how to get rid of the current Android auto that was updated today?
hate Android Auto said:
Please help. I highly recommend nobody update Android phones! Android auto does not stop popping up and is extremely annoying. It doesn't work. And causes all kinds of delays and disrupt other applications that work fine. Anybody know how to get rid of the current Android auto that was updated today?
Click to expand...
Click to collapse
So you are saying Android Auto was installed on your phone by default & you can't uninstall it? If you can't uninstall AA you could "freeze it" with an app, Google "freeze bloatware" there are a number of ways of doing this (even without root) depending on android version
But first is Bluetooth auto start turned off? Have you added car to reject list in settings?
If that doesn't work you can activate developer options & set USB Configuration to "charge only", though that might stop USB working how you want when connecting to something else. Or use the charge only cable as mentioned above.