Discussion Forums  >  Uncategorized

Replies: 17    Views: 278

Lars1
I hate code!
Profile
Posts: 44
Reg: Dec 26, 2011
Stenungsund
440
01/14/12 02:39 AM (14 years ago)

Testing on real device instead of emulator?

I can not get the AVD emulator in Eclipse to work but my .apk works on a real device (Samsung Galaxy). Is it sufficient to test the project only on a real device or do one need the AVD emulator as well? Android BT 1,5
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/14/12 06:04 AM (14 years ago)
Hi Lars, I don't know Android but it doesn't matter if you test on emulator a or real device. Best Regards, Danny
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
01/14/12 06:15 AM (14 years ago)
It does actually matter if you test on an emulator or a real device as on occasion the emulator will not perform all functions, more so on Android. Since you are doing the opposite and only testing on an actual device you should be OK for now though. What Google api are you using? 2.2 Make sure you set your emulator to the same version.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/14/12 06:23 AM (14 years ago)
Hi, You're right MacApple didn't think of that but as far as I can tell its only the (making a)call and the email that won't function on the emulator. Best Regards, Danny
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
01/14/12 07:50 AM (14 years ago)
I can/have sent email from the VD. You'll need to get the VD working so you can test different screen sizes. Fred
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/14/12 07:59 AM (14 years ago)
You can of course test multiple screen resolutions/sizes with an emulator, including tablets. The app might work perfectly on a Samsung Galaxy but for all you know, it might be the only device it works properly on! @Danny, email works in an emulator, it can be set up just like a regular phone. Emulators can be extended beyond the basic configuration to do almost anything a regular phone can. Except rate and comment on your app! I'm sure it should be possible, just haven't figured it out yet... maybe an emulator running gingerbread 3.0+ would allow it?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/14/12 08:01 AM (14 years ago)
Beat me to it again Fred!
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
01/14/12 08:45 AM (14 years ago)
Far more important to get emulator running on Android as opposed to Apple. Danny makes it up as he goes along. 'I don't know Android but it doesn't matter if you test on emulator or real device.' How can you say 'I dont know' at the start of a sentence then answer it at the end?Danny if you don't know don't confuse people. Your advice is often wrong. You still with us Lars1?
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/14/12 09:01 AM (14 years ago)
@MacApple This is off topic but with your comment regarding my advice giving: By answering a lot of questions there is always the posibility that an answer isn't correct just because you thought you gave the right answer. I'm sure I helped a lot of people by trying to give answers to their questions. 'Cause my answer seemed incorrect, other people where responding to this topic with details everybody can learn from. I learned a few things that I can add to my knowledge for future helping. If you think my advice is wrong that respond and come up with the right answer! By not answering questions you can't do anything wrong. Regarding your latest post in this topic: how does this help Lars or anyone else??? Best Regards, Danny PS Sorry Lars for this discussion
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
01/14/12 09:08 AM (14 years ago)
So by that rationale, you giving the wrong answer is what benefited the thread? You don't have to give wrong answers for people to post the right ones. Who do you think you are? Giving wrong answers is not about teaching, it's about giving wrong answers. You don't get it and you never will. Away and boil yir heid. FYI - Your buddy David removed one of his posts from a previous thread when I joined in, you know the one I mean.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
01/14/12 10:32 AM (14 years ago)
MacApple, have you tried installing Android market and other apps on the VD. I don't see why it shouldn't work. Perhaps I'll try that today. Fred
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
01/14/12 10:34 AM (14 years ago)
Fred, I haven't touched eclipse for weeks, maybe longer!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/14/12 10:48 AM (14 years ago)
@Fred - I've got the Android marketplace set up on one of my emulators, but it's got a very limited range of 'core' apps showing up (which install to the emulator just fine). The emulator is for v2.2. I guess the limit is much the same as the limit you see on Tablets running 2.2. I'm pretty sure that it would have full functionality if the emulator is set to gingerbread 3.0+ like a good tablet, haven't tried it yet though.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
01/14/12 10:56 AM (14 years ago)
Cool, The ability to install market apps will enhance the ability to test our apps interaction with other apps. Good work. Fred
 
Lars1
I hate code!
Profile
Posts: 44
Reg: Dec 26, 2011
Stenungsund
440
like
01/14/12 02:06 PM (14 years ago)
McApple, still with you. :-). Yes, using Google API 2.2 but the AVD just want to mess with me. Feels that I tested every solution. Raveyd points to one important thing. The ability to test different screen resolutin.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/14/12 02:06 PM (14 years ago)
I haven't downloaded any apps from the market onto a simulator but it can be done. It takes bit tweaking but does eventually work (as I understand). Because the emulator manage (AVD) in Eclipse is so flexible, it's easy to setup emulators to simulate all sorts of different environment and device options, I do this all the time. My general dev method: a) I start with my device connected and run / build constantly while I test / tweak / adjust an app. This is much faster than wrestling with the painfully slow emulator. b) When I'm satisfied with how it works on the device I setup 3, 4, 5 sometimes different devices with different connection types, storage settings, screen sizes, etc. c) I run the same set of testing on all the different emulators to see the results in different conditions. Sometimes, depending on the design / goal of the app, I'm totally satisfied with the results across all the devices. Other times it's very different and very bad it it's running on a device it wasn't designed for (no connection, wrong graphics for the screen, etc). In these cases I need to make decisions about how much effort I want to put in (creating duplicate by re-sized graphics for different stuff) or allowing online use only, etc. These decisions are sometimes hard, sometimes easy, depends on the apps purpose. @PSMDanny / @MacApple: Disagreements are cool, happens all the time and for sure moves things forward. And, it makes for some interesting reading for sure! LOL. However, because it's a fine balance between a fun and useful conversation and an all out battle, it's tough to know sometimes where to draw the line. Arguments are cool, battles are for another place. We are not here to moderate and have zero interest in settling any disputes, I'll leave it up to you to decide on how to handle those. In the meantime, both of you are helping lots of folks and you should feel good about that.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
01/14/12 02:41 PM (14 years ago)
@Lars1 - Eclipse is a beast to use, more quirks than a hat full of, well, quirky things. Ice cream sandwich should take care of a lot of these issues then i'll get back into the Android platform. There'll be folk a plenty on here that would run your app on their device if need be but you'll get it. I have an old Samsung Droid thing I can fire it up on if need be. Sorry if this came across as 'handbags' on your thread, bad crack on my part. @PSMDanny - I probably owe you a wee apology. Spent 6 hrs last night and 3 this morning trying to fix a problem that I should be able to walk through then cable modem died during a power surge and had to go out and buy new equipment. I just foolishly reacted on here to another thread comment, too much caffeine and not enough progress. Apologies sir. On top of that I went out to take mother in law to shops and I could smell gas on the Subaru and had to spend another 2 hours getting that checked out. Fun Friday night and Saturday morning not. Anyway, I'm big enough and ugly enough to know better and shouldn't make comments like that when you are genuinely doing your best to assist. No excuses, sorry. Will buy you a pint next time I'm in your neck of the woods. @David - True story. See above, sorry. Happy days indeed. *slides off into corner of room silently*
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/14/12 02:49 PM (14 years ago)
@MacApple, Thank you and your apology is accepted (we all have our bad days). We're all trying to do our best to help others and that's the way we should move on further. I appreciate your post and whish you all the best. Best Regards, Danny
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.