I'm working on my first app using the Maps API, and I can't get my app to show an actual map. All it shows me is the map fragment with the in/out buttons, but no map inside. When I run my app during testing, it gives me the error shown:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have followed the guide for setting up the API console and getting a key, and I am using the SHA1 returned to me by using keytool on the keystore generated by eclipse for my project.
Does anybody know what's going on here, and why I can't display a map?
drinfernoo said:
I'm working on my first app using the Maps API, and I can't get my app to show an actual map. All it shows me is the map fragment with the in/out buttons, but no map inside. When I run my app during testing, it gives me the error shown:
I have followed the guide for setting up the API console and getting a key, and I am using the SHA1 returned to me by using keytool on the keystore generated by eclipse for my project.
Does anybody know what's going on here, and why I can't display a map?
Click to expand...
Click to collapse
Have you checked your Google API Console to make sure the Maps services you're trying to use have been turned on? I had similar issues and it turned out that, though I had the API key generated, the service was still switched off. Just something to check if you haven't already...
jtweezy said:
Have you checked your Google API Console to make sure the Maps services you're trying to use have been turned on? I had similar issues and it turned out that, though I had the API key generated, the service was still switched off. Just something to check if you haven't already...
Click to expand...
Click to collapse
I actually got it working today I had to delete and rebuild my debug.keystore and start fresh on my API console setup. Now it works
Sent from my SGH-I747 using xda app-developers app
drinfernoo said:
I actually got it working today I had to delete and rebuild my debug.keystore and start fresh on my API console setup. Now it works
Sent from my SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
:good: Glad to hear it!
Related
I would like to launch some applications via the startup menu, and some of them simply need to be running in the background to function properly.
Is there a tag on the shortcut like -minimize that will work for all applications or does the specific application need to support it?
Thank you so much
Try Quickmenu....its nice start menu/task manager it has option to exclude programs from closing when u click on X
you could create a simple mortscript that calls the today screen (maybe with a delay) and make sure the shortcut to it is the last one in startup.
Yep, you can use MortScript to do what you need. I think it's the only way because I needed to do it also. I don't use the script anymore so I deleted it, but if you search the MortScript manual for 'minimize' you should find what you need.
I think its dependant upon the app.. but i have used -s successfully before.. you may also want to try to search MSDN
Give a try to the one attached here........
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
JBabey said:
I would like to launch some applications via the startup menu, and some of them simply need to be running in the background to function properly.
Is there a tag on the shortcut like -minimize that will work for all applications or does the specific application need to support it?
Thank you so much
Click to expand...
Click to collapse
I assume you want to run an app from \Startup. Your question is a little confusing. Anyway, it will be app dependent as far as the functionality using command lines in a .lnk. I do not know of a general command that would work for this as the point of shortcuts is to open the app. If the app is not intended to run in the background on its own, it will open like normal.
What are you trying to do exaclty? Perhaps that would help answer your question a bit more.
Is there a way to force a shortcut to minimize an application when launched?
i need this too.. for UL links..
Hi Xperia Users.
LockScreen for Small App is an application that let you utilize small apps to lock your device anywhere on screen.
Saves your power buttons life.
Kindly leave a comment for any bug reports and helpful suggestions for improvements.
Also compatible with older API version. Xperias with API 1 version will not be able to launch the small app inside the main application. Open the small app lockscreen inside the small app drawer.
******************************************************
How to enable the LockScreen for Small app: *
******************************************************
1. After installation, open the Lock Screen app.
2. Press Enable Admin button and Activate the device Administrator.
3. Congratulations! You can now use the small app lockscreen.
*********************
How to Uninstall: *
*********************
1. Open LockScreen application.
2. Press Disable Admin to deactivate the device Administrator.
3. After deactivating, you can now uninstall the LockScreen application.
Download Links:
View attachment LockScreenForSmallApps.apk
https://play.google.com/store/apps/details?id=com.zdworks.lockscreenforsmallapps
Screen Shots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thank you.
@donedos, great idea.
Nice work Bro.
I've been using greenify's hibernate now +lock, but this is perhaps more apt.
? loving it.
Cheers.
Sent from my C6833 using XDA Premium 4 mobile app
Saatvik Shukla said:
@donedos, great idea.
Nice work Bro.
I've been using greenify's hibernate now +lock, but this is perhaps more apt.
? loving it.
Cheers.
Sent from my C6833 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Good to hear that bro. thank you.
How would I show a map in an activity with a customized marker that shows the current location of the device?
If you're planning to use Google Maps, it's pretty easy: https://google-developers.appspot.com/maps/documentation/android/
And for the device location: http://developer.android.com/training/location/retrieve-current.html
Ianlmt said:
How would I show a map in an activity with a customized marker that shows the current location of the device?
Click to expand...
Click to collapse
Look into using a MapFragment.
Stick one in your layout;
Code:
<fragment
class="com.google.android.gms.maps.MapFragment"
android:id="@+id/myMap"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
Then in the onCreate of your activity, get a handle to the fragment and then get the map as a GoogleMap object from there;
Code:
final MapFragment mapFragment = ((MapFragment)getFragmentManager().findFragmentById(R.id.myMap));
final GoogleMap googleMap = mapFragment.getMap();
When you have the GoogleMap instance, it's easy to set positions and markers;
Code:
final LatLng position = new LatLng(100, 100);
map.setMyLocationEnabled(true);
map.moveCamera(CameraUpdateFactory.newLatLngZoomposition, 10));
map.addMarker(new MarkerOptions().title("Some place of interest").position(position));
Hope this helps.
Thank you so much! Going to play with it later today and see what I can produce!
Ianlmt said:
Thank you so much! Going to play with it later today and see what I can produce!
Click to expand...
Click to collapse
Cool, remember that you need to get you API key's sorted to get it to work.
bornander said:
Cool, remember that you need to get you API key's sorted to get it to work.
Click to expand...
Click to collapse
How do I do that (sorry so new to this whole thing)... Do you mean I need to apply for an API key?
Ok I have attached what I worked out in a zipped project file below this post, what it produces is this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Close, but no actual map is displayed... where did I go wrong?
Thanks for all the help
never-mind it appears I have fixed it ... what I did;
was missing a bunch of code, and the keystone had to match the one that was given to google api, I also had to enable the api from google develper control panel.
Seems to be working now! I am going to keep on tinkering with it, but this is the first map activity I have created... yaaaay
I intentionally turn off OK Google detection so my phone is doing one less thing, but it still is working and the options are disabled. I've only recently started to notice this. Tried to enable and disable the options again... no joy.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my SAMSUNG-SM-G935A using Tapatalk
Anyone?
Sent from my SAMSUNG-SM-G935A using Tapatalk
jgruberman said:
I intentionally turn off OK Google detection so my phone is doing one less thing, but it still is working and the options are disabled. I've only recently started to notice this. Tried to enable and disable the options again... no joy.
Sent from my SAMSUNG-SM-G935A using Tapatalk
Click to expand...
Click to collapse
This may be painfully obvious, and I'm not trying to sound sarcastic at all, but:
Have you tried saying OK Google to see if it's actually working? How about just removing the widget from your home screen and replacing it with one that isn't voice activated? Or perhaps both..
paulhansen said:
This may be painfully obvious, and I'm not trying to sound sarcastic at all, but:
Have you tried saying OK Google to see if it's actually working? How about just removing the widget from your home screen and replacing it with one that isn't voice activated? Or perhaps both..
Click to expand...
Click to collapse
Yes, it does work when saying OK Google. Also, would removing it prevent the mechanism on the backend that's listening from working also? Or would the service still be running?
I know that when I removed it, there didn't seem to be any listening going on. I think it uses this process in Maps as well as a couple other GApps, so after removing it you can try it in there/disable it in there as well. If you have root, you can always freeze it with TB. I completely removed it from my phone, so I don't have it to play with to try to find these things out. That's always the first thing I do, so I know very little about tinkering with system apps without root.
You can enable OK Google in settings.
try disabling your google account in settings.
After enabling google play on TA-1000 is there anyone wanting to enable google assistant on phone. so far i downloaded the Google app from play store and it's just isn't working as supposed to be on my TA-1000. Any solutions? Holding home button not launching google assistant and OK google is disabled
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my TA-1000 using XDA-Developers Legacy app
Install Ok Google enrollment
awsm3572 said:
Install Ok Google enrollment
Click to expand...
Click to collapse
the same
Sent from my TA-1000 using XDA-Developers Legacy app
I got the same issue, weird
its working perfectly alright on my nokia 6 TA1000
surya467 said:
I got the same issue, weird
Click to expand...
Click to collapse
It's working perfectly for me. Today I installed Google launcher app via playstore n after it was installed it popped up for a newer version n then I could place google search bar from widgets onto home screen. Now once I tap on it, conveniently opens search page n when tapped on microphone symbol voice assistant is activated perfectly delivering asked results.
Is this not working for you? See my home screen pic
kanakarkku said:
It's working perfectly for me. Today I installed Google launcher app via playstore n after it was installed it popped up for a newer version n then I could place google search bar from widgets onto home screen. Now once I tap on it, conveniently opens search page n when tapped on microphone symbol voice assistant is activated perfectly delivering asked results.
Is this not working for you? See my home screen pic
Click to expand...
Click to collapse
this works, but "ok google" from any screen/screen off, doesnt work, check the OP's screenshot. That option is disabled.