mapactivity

Android::Extending MapActivity => classNotFound Exception

时光怂恿深爱的人放手 提交于 2019-12-23 19:31:07
问题 I'd like to make a MapView, but extending the MapActivity throws a classNotFoundException: /AndroidRuntime( 374): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585) E/AndroidRuntime( 374): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) E/AndroidRuntime( 374): at android.app.ActivityThread.access$2300(ActivityThread.java:125) E/AndroidRuntime( 374): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) E/AndroidRuntime(

the questions is related to routemap path names displaying

自作多情 提交于 2019-12-23 04:53:14
问题 package com.hands; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; import java.util.List; import org.ci.geo.route.Road; import org.ci.geo.route.RoadProvider; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Point; import android.os.Bundle; import android.os.Handler; import android.widget.LinearLayout

MapFragment causing NullPointerException at getMapAsync(this) method

流过昼夜 提交于 2019-12-22 04:04:31
问题 I have implemented an activity which adds MapFragment at run time. The MapFragment xml has static fragment and I'm trying to get add at run time. Also I found there are some issues in Lollipop adding the map fragment at runtime. Kindly check Issue raised and temporary solution I have also given my codes below, fragment_map.xml <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android

updating google maps marker from a broadcast sms receiver

风流意气都作罢 提交于 2019-12-18 04:23:39
问题 I am a newbie to android and java. I am trying to make an application to perform following task. receive incoming sms (which will have latitude and longitude information) show them on map with markers So every time an sms comes map should get a new marker. currently I have a map where I can show a point and I have implemented a broadcast receiver to get lattitude and longitude form SMS. But I am unsure how to update the map from broadcast receiver on receiving a new sms. Any help or tips will

How to show GoogleMap inside ConstraintLayout?

做~自己de王妃 提交于 2019-12-13 15:26:29
问题 I created a new project "MapsActivity". I got my API key from Google, placed the API key in google_maps_API.xml(debug) inside the YOUR_KEY_HERE area. I see in AndroidManifest it's there. Then I go to build/run the app and it crashes. I didn't even code anything yet. According to Android Monitor here's the crash report: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps

Problems trying to use Android Mapview classes

删除回忆录丶 提交于 2019-12-13 05:15:41
问题 I'm a noob to Android so bear with me and apologies if my post is moronic. Basically, I'm trying to add a mapview to the XML which is causing a few problems, the error I'm getting is: 06-30 12:29:04.760: ERROR/AndroidRuntime(320): java.lang.NoClassDefFoundError: package.android.mapclass From what I can tell the error is happening on this call: Intent i = new Intent(oldclass.this, mapclass.class); The mapclass itself is: package package.android; import android.app.Activity; import android

Android: CalledFromWrongThreadException thrown when broadcast intent is handled

大兔子大兔子 提交于 2019-12-13 01:33:05
问题 Here is the basic life cycle of my application. It targets SDK version 8 by now, since I am still running Android 2.3.3 on my device. The application starts, onResume() is called The method show() is called to display cached data. A background service gets started which downloads and stores data. It uses AsyncTask instances to accomplish its work. One of the tasks stores downloaded data in a SQLite database. A broadcast intent is sent in onPostExecute() when the storing task has finished. The

MapActivity “couldn't get connection factory client”

為{幸葍}努か 提交于 2019-12-13 01:26:03
问题 I'm programming a Google Maps based Android application. The application itself runs fine, without any issues. I can see the map, zoom to my current location etc. etc. All permissions should be fine according to the AndroidManifest.xml. I also have an API key for the map which is working. When the map is loaded I get the above mentioned error. I've searched the Internet and it seems to be an API bug. I would really like to get this confirmed by someone who maybe has had the same problem. If

ActionBarCompat and MapActivity

落爺英雄遲暮 提交于 2019-12-12 01:52:53
问题 I've successfully converted most of my app to use ActionBarCompat by extending ActionBarActivity on most activities, however... I have a MapActivity class and need this to work here as well. How would I go about creating a new class based on ActionBarActivity and having it extend MapActivity and would that even work? The sample that Google provides in the ../samples/android-17/ActionBarCompat directory has a lot of these java files (ActionBarActivity.java, etc.) but also tons of required

Android MapActivity googlemaps : Couldn't get connection factory client

拈花ヽ惹草 提交于 2019-12-11 23:24:43
问题 I'm working with googlemaps V2 and I've made my google api key V2. First time I run this program it's work and then when I run it again until this time, its always can't show the map and only coordinate that I give. And when I see the logcat the error was "Couldn't get connection factory client". And when I open my map.xml graphical layout there's show "Failed to find style 'mapViewStyle' in current theme". Anyone can help me how to fix the problem so the program can show the map? Thank you