[android-beginners] Re: Emulating the mobiles camera

2010-07-13 Thread madcabbage
Not sure how well it works, but when you create a new AVD there's an
option to add a camera from the Hardware section.

On Jul 13, 1:30 am, Emmen Farooq farooq.em...@gmail.com wrote:
 Hi again , I am using android emulator for developing , and do not
 have an android based phone , but my app requires the following things

 it allows the user to take a picture from the phones camera

 Now my questions is that how do I handle that in an emulator , or in
 other words , how do i know if my app is doing this correctly or
 emulating this correctly

 the second requirement is that the user is able to select a picture
 from his phone's memory  to set as his profile pic in the app , now
 how do I emulate that ? more clearly how should I store and access my
 images so that it is similar to accessing images from a mobile phones
 memory ??

 thanks a million

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: R class breaks on downgrade?

2010-07-02 Thread madcabbage
Do you have three folders for r-*dpi (or *dpi-r, can't remember), *
being l, m and h? I had this problem and it's because the lower
versions of android don't support the *dpi classes. Copying and
renaming to just 'r' worked.

On Jul 1, 10:41 am, lucas verdonk lverd...@gmail.com wrote:
 I had the same problem recently.
 First as justin told you, make sure that you are not importing android.R
 class instead of your R class in your program.
 Then check if your res directory works fine, any problem in this directory
 will cause build to fail and R wont be re-built.

 for instance my problem was that downgrading from 1.6 to 1.5 made the
 resolution screen support folder (drawable-ldpi etc...) unvalid so R wasn't
 generated.

 Hope this help

 Lucas

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] getFromLocationName Service Not Available

2010-07-01 Thread madcabbage
Hey hey,

I'm getting problems with getFromLocationName. Every time I run it, it
stalls at the line:

ListAddress addresses = geocoder.getFromLocationName(Megazone
Leicester, Leicester, LE1 3HS, UK, 1);

with a LogCat Error of:
java.io.IOException: Service Not Available
at android.location.Geocoder.getFromLocationName(Geocoder.java.
159).

I've had a look around and it seems to be a bug, but can anyone verify
it, as some people seem to have it working fine.

Geocoder geocoder = new Geocoder(this);
ListAddress addresses =
geocoder.getFromLocationName(Megazone Leicester, Leicester, LE1 3HS,
UK, 1);
Address SiteAddress = addresses.get(0);
Double geoLat = SiteAddress.getLatitude() * 1E6;
Double geoLng = SiteAddress.getLongitude() * 1E6;
GeoPoint point = new GeoPoint(geoLat.intValue(), geoLng.intValue());


Ta muchly :-)

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en