13

I am trying to run my app specifically on Galaxy S4. But I do not have the real time device. So, I'm trying to create the emulator for Galaxy S4. I have a normal Core I3 system with 4GB RAM. It doesn't have any graphics card and all.

I am finding the ways for installing the Samsung Galaxy S4 add-ons to my sdk. But I am not getting it.

I referred these links,

Android Galaxy S4 Emulator Not Opening

How to test android app in Galaxy S4 configuration using emulator?

http://developer.samsung.com/android/technical-docs/Using-Samsung-Emulators-for-Android-Application-Development

http://developer.samsung.com/board/list.do?ctgy1=1&ctgy2=1&menu=EN01010301&srchYn=Y&pageIndex=1&pageSize=10&search=

However, I am unable to get any results with these.

Then I referred this alternative for Galaxy S4 i.e., installing Sony add-on for Xperia Z which has the same config as S4. And I am able to create a Xperia Z avd. I have checked "Use Host GPU" option also. But still, the screen appears to be totally black.

http://developer.sonymobile.com/knowledge-base/sony-add-on-sdk/install-the-sony-add-on-sdk/

So can any body tell me how to install S4 add on so that I can create an emulator for it.

Update:

RAM Allocated: 256MB
HeapSize: 64
And I have modified the screen size to 4.0 inches to adjust to my system.

enter image description here

Alexis Wilke
  • 19,179
  • 10
  • 84
  • 156
tejas
  • 2,435
  • 10
  • 37
  • 54

4 Answers4

22

This is how I created my S4 emulator and working perfectly.

Go to "Android VirtualDevice Manager" -> Device Manager -> New Device and fill in like this:

enter image description here

Or follow this tutorial:

http://developer.sonymobile.com/knowledge-base/sony-add-on-sdk/install-the-sony-add-on-sdk/

TharakaNirmana
  • 10,237
  • 8
  • 50
  • 69
  • Restart eclipse / computer, close all your emulators. Then it should load. – TharakaNirmana Sep 24 '13 at 07:39
  • Will check and tell you – tejas Sep 24 '13 at 07:41
  • 1
    I have already installed this to my sdk. I have created an emulator also but it is also displaying black screen only – tejas Sep 24 '13 at 08:38
  • 1
    And I restarted everything as you said, but still no result :( – tejas Sep 24 '13 at 08:38
  • I don't know what was wrong with my system. I tested this in some other system. There with some modification, it worked. But this will not be having the ppi as that of real device right – tejas Sep 25 '13 at 04:48
  • 1
    Just the heads up. S4 is not considered by Android to be a "large" device. [According to the documentation](http://developer.android.com/guide/practices/screens_support.html), large devices should be at least 640dp x 480dp, and Samsung Galaxy S4 is 640dp x 360dp (1920x1080 @xxhdpi, 480dpi), so it falls in the bucket of normal devices (at least 470dp x 320dp) – Christian García Jan 17 '14 at 13:02
  • 5
    @tejas try setting RAM to 768MB. 200MB isn't enough to load it, I think. – Tim Kist Jan 30 '14 at 15:18
  • Unfortunately, the android emulator consideres the specification in this answer as a "large" screen, and loads the wrong layout file. What to do about that? – Philipp Jahoda Feb 17 '14 at 14:04
14

You can check Samsung RTL. It will be very useful for testing. Just create a new credential and use any of available devices.

Sergey Glotov
  • 20,200
  • 11
  • 84
  • 98
Amit
  • 717
  • 1
  • 6
  • 18
  • 1
    I created and ran a S4 device also. But how to run my application there? When I give Run Android Application from eclipse it won't list right. And also it is not possible to view the LogCat then – tejas Sep 24 '13 at 06:46
  • Just goto above Samsung RTL(Samsung Remote Testing Lab) link. You have got the original device placed in Samsung Lab. Just install your .apk and test the app. But first you need to create a new user/registration. – Amit Sep 24 '13 at 06:48
  • I got it, I am done with registration. But my stupid question, how can I place my apk there? – tejas Sep 24 '13 at 06:49
  • 1
    Friend just select the device and download it. Just click above part on device it provide option to install the .apk. Also, If you need Just let me know if you find any difficulty. I am always with you to help. – Amit Sep 24 '13 at 06:52
  • I am here, just try and let me know. http://stackoverflow.com/questions/6139241/remote-test-laboratory-rtl-for-android – Amit Sep 24 '13 at 06:56
  • From the device list, I selected the Galaxy S4 and Reserved for 45 minutes. Then clicked Start. That time it says, Reservation should have 15 minute safety margins and must not overlap with another reservation. And device is not started :( – tejas Sep 24 '13 at 06:57
  • Actually I could start device around 1.5 hours back. But now I am not able to create. And it has been listed under Test History – tejas Sep 24 '13 at 06:59
  • Currently I am reserve a Samsung S3 and test my demo app. Just try :). – Amit Sep 24 '13 at 06:59
  • Yea I reserved a Note 2. But I want it to run on S4 only and also my credits are only 13 now :( – tejas Sep 24 '13 at 07:01
  • Can you see the screenshot I attached in the question – tejas Sep 24 '13 at 07:02
  • okay, you got the credit on daily basis and now Galaxy S4 is reserved by some other developer like us. Just try after some time. I think if device will be available then I m sure that this will allot to you. – Amit Sep 24 '13 at 07:02
  • Oh ok, but I din't understand hwo to install apk on that device. Does that have internet? – tejas Sep 24 '13 at 07:04
  • Just take little bit patience because developer is more as compare to the devices in RTL and developer from whole world can access them. – Amit Sep 24 '13 at 07:04
  • Sure,I agree with you. But can you please tell me the procedure for installing the apk if you don't mind – tejas Sep 24 '13 at 07:05
  • Once you got the virtual device, Just right click on the header part of device. It will ask for installation. Just provide the path of the .apk it will begin the procedure of installation and from app section you can see your app. – Amit Sep 24 '13 at 07:08
  • Ok, small clarification. Header part of the device means you meant top Settings section? – tejas Sep 24 '13 at 07:10
  • No, Once you got virtual device. Just right click on any part above the screen. You can also right click on place near to "Samsung" name of device. – Amit Sep 24 '13 at 07:12
  • Oh ok. I will try this. But we cannot see logs right in this case. It would have been better if I had an emulator. DO you have any idea on that? Also we have time freedom there – tejas Sep 24 '13 at 07:12
  • Sure, Just let me know your response. Also if this answer help you then please accept so that other can use it and save their time. – Amit Sep 24 '13 at 07:14
  • Sure, I will test and do that. I have already upvoted for helping :) thank you very much – tejas Sep 24 '13 at 07:17
  • Hey, I got the device. Can you wait for a while? I am running it – tejas Sep 24 '13 at 07:19
  • Welcome, My pleasure to help you. Okay – Amit Sep 24 '13 at 07:19
  • It has not yet loaded the screen :( – tejas Sep 24 '13 at 07:23
  • ohhh, what issue you have received. Some time network will play a difficult role here. Just try again and again. – Amit Sep 24 '13 at 07:25
  • It is just showing as Loading screen, no progress. I cannot exit also right – tejas Sep 24 '13 at 07:27
  • Also, you can check here https://www.manymo.com/emulators. You got online simulator. Just select one as per your Galaxy S4 requirements. And I am sure this load in little time. – Amit Sep 24 '13 at 07:28
  • Yes it take time to load and must ensure you have a high speed network connectivity. – Amit Sep 24 '13 at 07:30
  • RTL is saying either the server down or problem with my network.And in that link I don't get S4 specs, 1080*1920 :( – tejas Sep 24 '13 at 07:30
  • ohh Sorry, Let me check with other technique. I will post here ASAP. Just give me some time. I am really very sorry :(. – Amit Sep 24 '13 at 07:33
  • Sure, hey no need to say Sorry, thank you for helping. Will wait for that – tejas Sep 24 '13 at 07:34
  • You can check here http://androvm.org/blog/androvm-documentation/, This environment provide support for each type of devices. Check http://stackoverflow.com/questions/15527619/full-hd-android-emulator – Amit Sep 24 '13 at 07:38
  • @Amith, I downloaded this genymotion-1.2.1_x86.bin from the link. But it is not installing :( – tejas Sep 24 '13 at 08:40
8

Try using Genymotion. It provides a built-in image for Galaxy S4/HTC One/Xperia Z (running Android 4.2.2). While it does not emulate any S4 specific software, it does provide a pretty good hardware match.

free3dom
  • 18,729
  • 7
  • 52
  • 51
  • 1
    I downloaded and this is the file genymotion-1.2.1_x86.bin. But how to install it. I am in ubuntu – tejas Sep 24 '13 at 08:39
  • 1
    Go to [this](https://cloud.genymotion.com/page/doc/) page and click the **Installation** heading for install instructions. You will also need to install VirtualBox - which should be available through the **Ubuntu Software Center**. – free3dom Sep 24 '13 at 12:03
  • I tried a small app of mine on the Genymotion image for S4 4.2.2. Everything works perfectly fine. I then tried it on 2 real S4: the app crashes straight. So unfortunately I guess the emulation is not perfect indeed. – user276648 Apr 10 '14 at 00:26
  • That's to be expected as there is no way to emulate the **software** changes made by Samsung. The only way to be 100% sure is to test on an actual device. But for most apps it should work just fine on the emulator. – free3dom Apr 10 '14 at 07:25
  • Genymotion seems to be a great tip if you need an emulator, cheers – Fattie May 17 '14 at 11:06
5

I am on mac-OSX and setting "Use Host GPU" solved the problem

user739711
  • 1,842
  • 1
  • 25
  • 30