Eclipse won't recognize G-tablet - android

I am trying to view a sample app on a real device (a ViewSonic G-tablet), but the device won't display in the "Choose a running Android device" area. The virtual devices show, but no real devices show (there is only one plugged in, the G-tablet). Some other information...
I am using a Mac with Eclipse SDK 3.7.1 w/Android
App is noted as debuggable in manifest file (android:debuggable="true")
G-Tablet is set to allow debugging
Device selection is set to manual in SDK
I CAN view files on G-Tablet using Finder
I have reviewed Android developer docs
I have searched a lot online for a fix, without success
Please also note...
There is NO option on G-tablet to allow "unknown sources". However, I have downloaded apps outside the customary channels (e.g. Firefox from the Firefox site) and it works fine.
I do NOT want to do anything to the G-tablet to void the warranty.
I have already checked for/installed updates using the Android SDK Manager.
The fixes I was able to find on StackOverflow related to this problem did not work for me. I am thinking the problem may be device specific. One fix discussed getting a driver for the device, but I couldn't find one.
Can anyone please help me figure out how to get the SDK to recognize my device? I'd appreciate any insight on this.

Can you export the app as an .apk and run that on your G-tablet?
also is the android:minSdkVersion set to a value lower than your G-tablet's version?

Found the answer after trying a zillion things. All that needed to be done to fix the problem was turn to OFF 'USB debugging' and then turn it right back on. I found the idea on this page... http://www.mobileread.mobi/forums/showthread.php?t=156247 . Hope that might save someone else hours of time.

Related

Can't create new hardware profiles in AVD

When clicking the Create New Hardware Profile button or the Clone Device button in Android Studio AVD (Windows platform) neither button does anything. In looking for any log files which may indicate what is going on, I located the following folder and do see that upon launch, two thread-dumps are generated, but no logs are written when attempting to perform either function.
C:\Users\Bob.AndroidStudio2.1\system\log\threadDumps-20160718-072320-AI-143.2915827\freeze-20160718-072340-10
I have read through many posts on this and similar issues with AVD, including a defect from Google that was posted almost 2 years ago. I have yet to find any solutions or work-arounds that will address this issue.
Has anyone found a way to fix this?
I was never able to resolve my issue while working with Android Studio in a Windows environment, so my resolution to this was to build/use a system which is running Ubuntu and now everything is working perfectly.

Why isn't the usb_driver working...?

I have just started android programming, and after watching many tutorials and reading many articles I learned that if I want to run my programs on my android phone, I will need to install the usb_driver. I have done that, but when I go to device manager, in other devices, my phone has a yellow exclamation error. This is normal, but it should go away after right click->update driver software->browse->C:\Users\myusername\AppData\Local\Android\sdk\extras\google\usb_driver->next. But, after doing this, I get the error:
Without downloading the usb_driver, my device just wouldn't get detected. I have already allowed usb debugging, and allow mock locations, so right now I just need the driver. I have read almost all the other articles and tutorials, but my device still doesn't show up?
There is also a great tool: adb driver installer, that allows you to install drivers for almost any phone, without need for the 'software suites' that often come along drivers.
I figured out that besides for installing the updates for the computer, I must also go into my computer and allow permission for these updates to run. After that, I followed these instructions.

Simulate Firefox android on Windows

I need to debug a problem that seems to happen specifically on firefox android - problem doesnt happen on the Windows version of Firefox. I beleive there may be a javascript error causing this problem so I need to have debug acess to the developer console to see whats going on.
I played around with Fennec and also User Agent Switcher - http://chrispederick.com/work/user-agent-switcher/features/ extension in firefox, but neither one seems to help much.
Can anyone suggest any alternatives?
You can install the firefox apk on the android emulator. Create a virtual device similar to the one you're trying on, and then run it. Look at the LOGCAT or attach ADB and see what you find.

No internet access in Android emulator

I am not able to access internet in my emulator. It doesn't even connect to google on emulator browser. I have already checked Settings. Data Enabled checkbox is checked.
I referred to a few SO questions before posting the question.
As this answer suggests, I don't have wifi enabled. So that doesn't seem to be a problem.
As another answer in the same question suggests, I tried giving it in Run configurations, but still nothing is changed.
If someone can give any idea, that will help me a lot.
Note: On my emulator's home screen, 3G appears, but its with grey lines. I think those lines should be white. I might be wrong on this.
add GSM Modem Support to your emulator.
open AVD manager -> your emulator -> Edit.-> Hardware->New->GSM Modem Support.
You should check for http proxy settings in Tools of android sdk Manager in Eclipse.

while the apk runs without problems on emulator when installed on Motorola milestone picture and icon doesn't shown as they were on emulator

my problem : the app I have uploaded into my cellular device is shown without the pictures I have insert to it .
steps I have done in order to install:
I have inserted the xxx.apk file into the device via usb
I downloaded an apps installer via the Market
I opened the app using the installer and instead of picture an white background appeared
when I opened the xxx.apk file using file system I found the pictures.
note: even an application icon weren't appearing.
Apparently the res libary having problem to be bined to application.
I might ness to add something to my appliction manifest?
I might need to change something on my device ? (I already made a change and enabled user's not Market application )
I would be very grateful for some life saving answer I need to show my work in a few days in this is the first time i tested her on a real devise.
I also tried an example as shown in hello android book the same example worked perfectly on the emulator where on my android device (Motorola milestone ) the picture and icon weren't shown
Please tell me what I might be doing wrong guys I need to apply my project back at uni(I was the only one in uni who did it on android and in my country most of pep don't even know what android is so getting help outside of forum's like this is not an option ) so please please help me .
I don't know what app installer you downloaded from the Market, but you shouldn't need it. You should be installing the app to your phone using the same SDK tools you used to install it to the emulator. Ie, using Eclipse or the commandline "adb install" commmand.
I'm assuming you used the SDK tools to install the app to the emulators? In which case, start there. Start with looking at what you're doing different between when you installed unsuccessfully to your phone and when you installed to successfully to the SDK.
In my experiences so far, there should be very few differences between working with the emulator and working with the phone.
Well, something is wrong, but what is hard to tell from your question. What pictures are you talking about? Your drawable resources? My guess would be that your application works in the emulator (you have tested it?), but that it doesn't on the phone you're testing with. Have you checked the logcat output?
If you're developing from Eclipse, why not try a debugging session using the phone rather than the emulator?
Hard to narrow down without more details, but a few notes:
Pontus has a point - what's your logcat output? You can use logcat on a real device. Maybe not yours unless it's rooted, but with many phones you can.
Do you link the drawable to your app in the manifest file?
How do you test on emulator vs. device? Do you right-click the app and choose "Run As -> Android Application"? Do you do that for both emulator and device?
When you run on the device, do you first sign it? If so, can you verify the jar/apk and see the contents? Is the drawable under res/drawable?

Categories

Resources