How to create a map app with the new google maps?

by Your Master » Tue, 23 Mar 2010 01:51:43 GMT


Sponsored Links
 Hi,
I'd like to create a map application using the new google maps.
My country (Israel) appears in the maps included in the android 2.1
and not in 1.5 and 1., so i'd like to develop an application using the
2.1 maps, but each time I am tryin, it shows me the old maps...

Thanks,
Amir

--



Other Threads

1. App failing to load on Nexus One

Hey guys,

I have an app delivered OTA that I wrote that works find on every
Android device we have ran it against. However, whenever tested
against the Nexus One, it fails to load. LogCat reports something to
the affect of:

06-22 16:23:53.467: INFO/ActivityManager(76): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.company.TestApp/.TestApp }
06-22 16:23:53.467: WARN/ActivityManager(76): Permission Denial:
starting Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.company.TestApp/.TestApp } from ProcessRecord{44879720
148:com.android.launcher2/10016} (pid=148, uid=10016) requires
android.permission.INTERNET
06-22 16:23:53.467: INFO/NotificationService(76): enqueueToast
pkg=com.android.launcher2 callback=android.app.ITransientNotification
$stub$pr...@44c0ab90 duration=0
06-22 16:23:53.477: ERROR/Launcher(148): Launcher does not have the
permission to launch Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.company.TestApp/.TestApp }. Make sure to create a MAIN intent-
filter for the corresponding activity or use the exported attribute
for this activity.
06-22 16:23:53.477: ERROR/Launcher(148): java.lang.SecurityException:
Permission Denial: starting Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.company.TestApp/.TestApp } from ProcessRecord{44879720
148:com.android.launcher2/10016} (pid=148, uid=10016) requires
android.permission.INTERNET
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.os.Parcel.readException(Parcel.java:1218)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.os.Parcel.readException(Parcel.java:1206)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:
1214)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.app.Instrumentation.execStartActivity(Instrumentation.java:
1373)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.app.Activity.startActivityForResult(Activity.java:2749)
06-22 16:23:53.477: ERROR/Launcher(148):    at
com.android.launcher2.Launcher.startActivityForResult(Launcher.java:
947)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.app.Activity.startActivity(Activity.java:2855)
06-22 16:23:53.477: ERROR/Launcher(148):    at
com.android.launcher2.Launcher.startActivitySafely(Launcher.java:1420)
06-22 16:23:53.477: ERROR/Launcher(148):    at
com.android.launcher2.AllAppsView.onClick(AllAppsView.java:560)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.view.View.performClick(View.java:2364)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.view.View.onTouchEvent(View.java:4179)
06-22 16:23:53.477: ERROR/Launcher(148):    at
com.android.launcher2.AllAppsView.onTouchEvent(AllAppsView.java:441)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.view.View.dispatchTouchEvent(View.java:3709)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
06-22 16:23:53.477: ERROR/Launcher(148):    at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
06-22 16:23:53.477: ERROR/Launcher(148):    at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:
1107)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.app.Activity.dispatchTouchEvent(Activity.java:2061)
06-22 16:23:53.477: ERROR/Launcher(148):    at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.os.Handler.dispatchMessage(Handler.java:99)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.os.Looper.loop(Looper.java:123)
06-22 16:23:53.477: ERROR/Launcher(148):    at
android.app.ActivityThread.main(ActivityThread.java:4363)
06-22 16:23:53.477: ERROR/Launcher(148):    at
java.lang.reflect.Method.invokeNative(Native Method)
06-22 16:23:53.477: ERROR/Launcher(148):    at
java.lang.reflect.Method.invoke(Method.java:521)
06-22 16:23:53.477: ERROR/Launcher(148):    at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
06-22 16:23:53.477: ERROR/Launcher(148):    at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
06-22 16:23:53.477: ERROR/Launcher(148):    at
dalvik.system.NativeStart.main(Native Method)

Now what is funny is that the manifest DOES include the
android.permission.INTERNET. Yet for some reason, the Nexus One
doesn't see or honor it.

Anyone have any ideas?

-- 

2. cgroup errors?

helo, wondering if anyone has any ideas how to get rid of the tons of
errors i have like below::

I/ActivityManager(  540): moveTaskToBack: 4
W/SchedPolicy(  540): add_tid_to_cgroup failed to write
'665' (Permission denied); background=0
W/ActivityManager(  540): Failed setting process group of 665 to 0
W/System.err(  540): java.lang.SecurityException: No permission to set
to given group
W/System.err(  540):    at android.os.Process.setProcessGroup(Native
Method)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:
14254)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:
14341)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.updateLruProcessInternalLocked(ActivityManagerService.java:
1675)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.updateLruProcessInternalLocked(ActivityManagerService.java:
1659)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.updateLruProcessInternalLocked(ActivityManagerService.java:
1667)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.updateLruProcessLocked(ActivityManagerService.java:
1682)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.resumeTopActivityLocked(ActivityManagerService.java:
2741)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.completePauseLocked(ActivityManagerService.java:
2236)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.activityPaused(ActivityManagerService.java:
5962)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.activityPaused(ActivityManagerService.java:
5940)
W/System.err(  540):    at
android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:
387)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:
1480)
W/System.err(  540):    at android.os.Binder.execTransact(Binder.java:
288)
W/System.err(  540):    at dalvik.system.NativeStart.run(Native
Method)
W/InputManagerService(  540): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub
$pr...@4401eeb8
W/SchedPolicy(  540): add_tid_to_cgroup failed to write
'916' (Permission denied); background=1
W/ActivityManager(  540): Failed setting process group of 916 to 1
W/System.err(  540): java.lang.SecurityException: No permission to set
to given group
W/System.err(  540):    at android.os.Process.setProcessGroup(Native
Method)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:
14254)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:
14341)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.trimApplications(ActivityManagerService.java:
14413)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.activityIdleInternal(ActivityManagerService.java:
5863)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.activityIdle(ActivityManagerService.java:
5683)
W/System.err(  540):    at
android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:
377)
W/System.err(  540):    at
com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:
1480)
W/System.err(  540):    at android.os.Binder.execTransact(Binder.java:
288)
W/System.err(  540):    at dalvik.system.NativeStart.run(Native
Method)



i think its cgroups relatedbut im not sure how to fix ?

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. How to get the license type of each installed package

4. How to get the license type of each installed package

5. Hello World Ex Problem

6. Adding a button which opens another screen

7. SSL Cert Issue javax.net.ssl.SSLException: Not trusted server certificate