showing map and a saving location

by Atif Musaddaq » Fri, 28 Jan 2011 22:53:31 GMT


Sponsored Links
 Hi,

I would like to show map of the current location along with a small form <a
text field with a submit button>. what exactly i want to do is:

to let user save his desired location, but with addition of that i would
like to show him on the map where he/she is.

Is it possible to do in a single activity ? any sample code, tutorial etc

-- 
Atif Musaddaq

-- 



Re: showing map and a saving location

by TreKing » Sat, 29 Jan 2011 04:01:57 GMT


 




Yes. Look up MapActivity.

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 


Sponsored Links


Other Threads

1. [WTI] [Desire ROM] LeeDrOiD V3.0 GB Android 2.3.3 Gingersense

[ROM] LeeDrOiD V3.0 GB 16thApril |Android 2.3.3 | A2SD+ | FAST | STABLE |
forum.xda-developers.com/showthread.php?t=1038195

What you get!
-Base - Bravo Gingerbread HTC Asia WWE 3.06.707.0
-De-odexed
-Zip-aligned to improve RAM performance
-Rooted
-Busy box 1.18.1
-Nano command-line text editor support
-Bash command shell support
-Optional A2SD+ (requires ext3)
-No A2SD Build Odexed
-Huge locales list
-Huge apns list (cooked into framework)
-/data/app/ zip aligned on boot
Default install location forced to internal (1)
-USB Debugging forced on 1st boot
-Rosie drag and drop (blade view)
-Tweaked auto brightness
-Track pad to unlock (No wake yet)
-LeeDrOiD Boot animation, Audio & Wallpapers
-release-keys fingerprint to allow full market access
-Launcher2
-Ad free
-Titanium backup
-Rom manager
-Google car home
-Spare parts
-Gmail v2.3.4.1
-Maps v5.3.1
-Google search v1.1.2.64376
-Voice Search v2.1.1
-YouTube v2.1.6
-Facebook v1.5.2
-Android Market v2.3.6
And more!
Supported Languages: English, Czech,German, Espanol, French, Italian,
Dutch,Polish, Russian, Norwegian, Korean, Greek,Turkish, Swedish, Danish,
Portuguese,
Finnish, Thai, Korean, Vietnamese, Chinese,Japanese, Portuguese, Croatian &
more!
Please note: Although all of the above locales are included not all will be
100% working

-- 
"

2. How to properly use Model classes in Android

Hi,

When traying to do a good design for an Android app, I ussually face a
problem when trying to get some balance between clarity and efficiency,
maybe is a silly situation but for example, let's take a simple shopping
list app:

I can have a really readable model based on two classes: FoodItem and
ShoppingList, where FoodItem represents each item that can be in the
shopping list containing its fields (name, description, price, etc...) and
the ShoppingList item just keeps a list of FoodItems objects and some extra
fields (i.e: totalPrice, etc...).

Ok, now I'm putting an ActivityList for showing and managing my shopping
list with a custom layout for showing FoodItem's data. The simplest way I've
found to load list is using a SimpleListAdapter, which needs to receive a
Map containing the fields of the FoodItem I want to show in the list,
then... what's the best option? Having a method like "toMap" in my FoodItem
class and, consequently another similar method "toMapsList" in my
ShoppingList class to translate my list of objects to a list of Maps? or is
there any other option?

This doesn't seem to be a good solution from the point of view of
efficiency. It seems it would be better to take off from the model and work
just with Maps the whole way.

I don't know if there's a proper way to keep a clean model in an Android app
withouth having to do things like convertir objects to Maps.

Any good solution?

Thanks! :)

-- 

3. Built-in camera problem deleting files

4. VideoView setBackgroundColor is foregroundcolor ?

5. all_apps_3d error when screen rotation

6. audio recorder

7. gtablet apps