Here, I am adding the image for more clarification of my problem statement.
You're looking to create a share activity for your Android app.
react-native-share-extension should provide you with a good starting point (as well as providing support for iOS if you're working on a Mac).
I am trying to develop an app that can take a snapshot of current location from Google map and send an email (All this by click of a button)
I would like to do this in the background.
Is this possible?
I was trying out:
http://goo.gl/krFqXu
But the above code supports FragmentActivity, I am developing the app extending an activity.
Is it possible to use the same code in extending an activity? if so how? I am getting error in the following place:
myMap = ((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.map_pass_home_call)).getMap();
If your question is only "How to not use Support lib", you can do this:
myMap = ((MapFragment)geFragmentManager().findFragmentById(R.id.map_pass_home_call)).getMap();
The support library helps you to support devices with an old version of the API. It seems you don't need that, so every sample code you found on the web that is using the "support" library always have a simpler equivalent in most recent version of the API.
I created one project having mapactivity and mapview and it worked fine.but when i created another project on same pc it is showing couldnt connect factory client.any pointers how to sort it out.
I Predict this is the problem with your API key.When ever you integrate the goolge maps with your application you should generate a key and should be added in your app.I think this is the problem with your map showing the grid only.I had came over the same issue once.I predict this may be your problem.This link may help you to solve your problem.
I think you are using different keystores for both the projects you are mentioning.
I want to use the Google Maps API in my Project.
I signed up and got the API key also.
When I run my application now I'm getting an error "Error generating final archive: Invalid keystore"
I m really fed up. It is very difficult to use Maps in an application.
Do you know what the problem is in this case?
I think you may have problem with "debug.keystore",
Go through this example: http://mobiforge.com/developing/story/using-google-maps-android,
read Obtaining a Maps API key paragraph carefully, hope this link useful to you.
Also refer this Tutorial .
Have you been having this problem with your other Android projects? Is your Windows locale NOT set to English, United States? If so, then this bug may apply to you
If it does not, then please post more info about how you are using the Map in your application. For example, please post the layout code where you use the map, and/or any relavant code. Include the file where you are setting your API key.
Finally, have you tried project->clean? You may want to be sure that your eclipse, your android SDK, and your android eclipse plugin (aka ADT) are all fully up to date before trying to clean the project!
I am new to Android software development and new to this site. I am hoping someone might have some experience with the problem I am having.
I've been following the Hello, MapView tutorial in order to not only learn the Android framework, but also the Google Maps library. I've tried my best to implement things exactly as the tutorial has instructed. My problem is that the application does load in my emulator (or even on my phone for that matter), but the map tiles do not load.
Searching Google I found a post by someone else on another site having the same issue, but his/her problem was that the important elements added to the AndroidManifest.xml file were not in the right order. I double-checked this in mine, but everything seems to be right.
So, I am not sure what the issue is and was hoping others have seen this before. I can provide any snippets of code, if that would help.
Thank you.
Non-loading tiles are usually the result of not having the API key set up correctly. Obtaining a Maps API key
To answer the response you left to d.: If you want to have it "just work" when you run from Eclipse you'll need to get an API key for your debug certificate. There's instructions on the same page as before. Do note that you'll have to swap back to your other key before publishing though.
I am guessing the issue is not that you have an incorrect map key, but that you do not have the proper keystore setup. The application needs to be signed by the same keystore you used to generate the map key. You've noted that you can get it to work when you sign the application yourself, but you need to setup a debug keystore in order to use the Maps API with regular Eclipse builds.
All Eclipse builds require a debug keystore; you just normally don't notice it because ADT generates one for you automatically. You should either follow the directions here and create your own debug keystore, or you should take the debug key that ADT automatically created for you (it'll show you where it created it in Windows > Preferences > Android > Build) and sign up for another Maps API key. That key will work with Eclipse.
(P.S., this does make it a hassle to compile for release, as you need to switch your key back and forth depending on the signing keystore.)
I had the issue of tiles not loading as well. As you mentioned your original post, one possibility is with the ordering of elements in the AndroidManifest.xml file. Specifically, I originally had the line:
<uses-permission android:name="android.permission.INTERNET" />
after the application element. Once I moved this line before the application element, my map tiles started loading again.
The tiles not loading is almost always a result of using an inaccurate API-key, i think. Have you checked yours?
Details: Obtaining a Maps API key
I had the same problem... my error was in the manifest file puting INTERNET permissions inside application. After moveing it out (upside) everying was working good.
Make sure you have 3g on the top panel. If you don't then there is no internet connection. Sometimes I have to turn the emulator on and off a couple of times to get 3g to come up.
d. is probably correct. However, Internet problems will also cause similar symptoms. Be sure that your INTERNET permission is properly positioned and that there are no proxy servers/firewalls impeding access to the Internet.
Another problem could be a proxy that you are behind. The proxy slows things down a lot and it will effect your app even though the maps app and internet browser in the emulator work fine.
This is old question, but here is one more answer: if you are as hasty as me, you might accidentally copy the finger print code instead of API key from the web page :)
The Hello, MapView tutorial your were talking about is no longer valid. New V1 map applications can no longer be done.
Follow https://developers.google.com/maps/documentation/android/ for Google Maps Android API v2 applications.