Android emulator - samsung galaxy y - android

I've just started learning android and I've completed the hello world sample program which running on my galaxy tab emulator successfully.
Now i have the following concerns as below
can this hello world program run on galaxy y handset?
From where I can get the emulator for galaxy y model from samsung?
I am using sdk platform 2.2 , can this code run on Android OS v2.3.5 (Gingerbread - real handset)?

1) Yes
2) I'm not sure if such thing exists
3) Yes
You should try running the program on your handset; you can't learn unless you do. just FYI, I had to install Samsung Kies to get the drivers that let Eclipse see a Galaxy tab. I'm not sure if you have to do the same for the handset, but if that's the case, now you know what to do.

If you are beginning to learn Android you are better off learning with the default emulator that comes with the SDK. Setting up handset manufacturer specific emulators is not the hassle to address right now. Just use the default SDK, you will be fine.
Hello world programs, in almost all cases in Android will work with any emulator or SDK (from Android 1.6 onwards). So you should be okay.
Also, if it doesnt run due to some reason, learning how to recognize it and address it is a useful skill too, so dont think its not important.

If you're new to Android start your app projects with
Minimum required SDK-android 2.2 froyo
Target SDK- 4.2 jelly bean
Compile with android 4.2.
After creating the project go to your workspace APP project folder/bin/.apk file, copy and paste the .apk file and run it on your Samsung Galaxy y. It works, even I to have a Galaxy y mobile and tried it, it works.
Thank You. :)

Related

Delphi XE7 Firemonkey Android 5.1.1 app crashing with just a TEdit on Samsung Galaxy S7

I create a fresh Android app with Rad Delphi XE7 (Pc So win8) and test on Samsung Galaxy S7 with 5.1.1 version.
I put a TEdit on it, and run it in the Samsung Galaxy S7 and the program crashes when enter on edit component and close keyboard.
A similar problem when put image on TListBoxItem the program crashes.
The same android app work ok on Tablet Samsung Galaxy Tab 3 with 4.2 android version.
Has anyone got a solution to this?
Thanks
Not sure if this will solve your problem, but I have found that the VERY FIRST THING I have to do when I create a new android project is go into the project directory and delete the Android.Manifest.xml file. If I don't do this, all kinds of craziness happens including failed deployments, failed launches, random crashes, etc.
It is also a good idea to make sure that your app only deploys to INTERNAL storage, and disable its ability to deploy to an SD card (I don't remember where that is, probably also part of the manifest).
My two cents.
If your PC installed old version SDK Delphi(older version 23) ,You should download new version from the Internet.
If not work,Install Delphi XE8(or DX10) in your PC.
Embarcadero has released a hotfix for Delphi XE7 to update the Java JNI bridge support for Android 5. Otherwise the app crashes on Lollipop. Did you download the hotfix?
http://blog.marcocantu.com/blog/2015-january-lollipop-hotfix-beta.html

Unable to select my Android device when running project in Eclipse

I'm trying to develop an Android app using the Eclipse IDE and I want to debug using my physical Moto X (2nd gen, Android version 4.4.4). I thought it was as easy as turning on USB debugging on the phone, plugging it into my macbook (OS X Yosemite 10.10.1), running my Android application from eclipse, and selecting my device.
However when the device chooser dialogue comes up, it doesn't show my moto x in there. It shows all the Android Virtual Devices I have set up, but nothing under running Android device. What's particularly mind-blowing about this to me is that I can clearly see my device in the eclipse device view as online. I can also see it by going into the sdk folder and running adb devices. The only time to doesn't show up is when I try to run the application and select what to run it on.
Has anyone ever encountered this problem before? Is there something here I'm missing? I have the latest Android SDK all up to date, as well as my Eclipse (I'm running Juno if that matters). My Min SDK version is 11, and the Target is 21, so my device should be in that range. I have also tried restarting the device, eclipse, and even my macbook with no luck.
If you are on Yosemite, try to drag corner of one of the column headers in the device chooser box and it will show the device. This is a hilariously stupid bug on eclipse for Mac. Check this answer.
There might be something wrong with eclipse. Sometimes the only solution to fix eclipse is to redownload a fresh copy of ADT from website.
You say that you can see your device when you run adb devices.
In this case use eclipse to build your project then use adb to install the apk on the phone:
adb install /path/to/projectRoot/bin/myBuild.apk
Better yet I would take this as a sign to forget Eclipse and move to Android Studio. Version 1.0 was released today (no more beta).

Which Android Emulator is better for testing Kivy applications?

I've just finished my Kivy application and it works great in Ubuntu 12.04 LTS (64-bit). Now I want to test it on an Android system, so I follow these steps in the official Kivy docs and finally (after some troubles) I could create the .APK file. Since I didn't hace a real android phone or tablet, I installed the Genymotion Android Emulator which is actually emulating a Samsung Galaxy S4 - 4.3 - API 18 - 1080x1920. When trying to open my application.apk file I'm receiving:
That's all, there's no more information.
Does anybody experimented something like this? Is there any Android emulator which works better when it's testing Kivy applications?
Any help will be appreciated.
The normal Android emulator works fine. Make sure it is using Android 4+ and has hardware GPU acceleration enabled.

Trouble using jsoup with Android 4.2

I have an android app that uses jsoup that runs fine on a motorola atrix phone running Android 2.3.6 and also works fine on a Samsung Galaxy Tab running 2.3.5.
However, I have tried to run it on my new phone: Samsung Galaxy S4 runnning Android 4.2.2. It can't run jsoup at all.
It chokes on this line of code:
Document document = Jsoup.connect(SPOT_SERVER_BASE).get();
Has anyone else encountered this problem for Android 4.2? (Or 4.1 or 4.0?) Is there something I need to do differently to get it to work?
Thanks for your help.
I haven't figured out what causes the problem, but I have figured out how to fix it.
In the manifest, I deleted this line:
android:targetsdkversion="xx"
where "xx" is whatever version you are using for the target in your build.
The only place where I indicate the project build targtet is where you edit the project properties by right-clicking on the package name and selecting "properties".
Why does this work? I have no idea.

IDE for Android

I used to lug my huge laptop all over the place, but now I have a Galaxy Tab 10.1. Im loving the lighter baggage and I can do everything I can do on my laptop, expect for the most important thing, develop. The main reason for this is because i cant find a decent ide that runs on Android, so I'm putting the question out there. Is there and ide i can run on the Android platform?
AIDE supports the full edit-compile-run cycle for Android Apps and has a great editor. It works fine on my devices (Transformer Prime and Samsung Galaxy S2).
Directly on android? No I don't think so.
However it is possible to install ubuntu on a tablet. Then you could use eclipse or any other linux IDE, I suppose. Heres a video showing you how to install ubuntu on a tablet.
http://www.youtube.com/watch?v=agYEOefFfto
UPDATE
Terminal IDE allows for full java/android development on your android device (no root required). I believe C and C++ support is in the works as well. Project is open source and includes the following executable's:
javac, java, dx, proguard, aapt, apkbuilder, signer, ssh, sshd, telnetd, bash 4.2, busybox 1.19.2, vim 7.3, nano 2.2.6, midnight commander 4.8, htop 1.0, TMUX 1.5, rsync 3.0.8, git 1.7.8, BitchX 1.1.
You'll definitely need a bluetooth keyboard to get any real productivity out of it, but its a great app.

Categories

Resources