Here android sdk sample code showing blank screen - android

I have downloaded here android sdk 90 day eval.
Tried to run the basic map sample application, but getting blank in the map frame.
I am able to see hello world text.
Seperately i also have here maps app running on my mobile, which runs without any problem.
I have my internet connection and location settings on.
Any help?

Have you included the app_id/app_code and lisence key(if you are using the premium edition) in your maifest file, as mentioned here :
https://developer.here.com/mobile-sdks/documentation/android/topics/credentials.html
Otherwise try debugging your app by adding a break point in the mapFragment.init() method , for example using the code on following link , try putting a break point on the line
(error == OnEngineInitListener.Error.NONE)
to check if there is any error.
https://developer.here.com/mobile-sdks/documentation/android/topics/app-simple.html

Related

Android Studio Emulator - Location Routes not working since updating to Emulator 30.0.26

I am trying to use routes to test an application. I am using Android Studio 4.0.1 and emulator version 30.0.26. When I play a route it looks like it plays the first location and then two seconds after the Lat Lon change to the last location on the route. It is as thought Android emulator only recognises the first and last position.
The developer is using Android Studio 4.0.1 and emulator version 29.0.11, the same KML files and everything looks good on his system. He even gets a window that lists all the locations in the route.
I have tried to downgrade the emulator as per this post (How to downgrade Android Emulator) however Android realises that the emulator has been changed, deletes it and asks to install the new version.
I noticed in the release notes for Emulator 30.0.26 this general fix "Fixed gpx/kml route playback to follow timestamps". I assume that this means I am now required to have timestamps in my KML file. I tried my best to update the data and Emulator did not like the new file. I have also tried various tutorials on how to make KML files without any luck.
I have tried the "Showing Movement of a Point Along a Path" date set at the below link, it does the same thing. https://developers.google.com/kml/documentation/time
Does anyone know how to revert Emulator?
Is there an example KML file somewhere that I could use as a reference to confirm that Emulator is working and use as a template to update my data?
I was facing with the same problem. With the new emulator version you have to add the timestamps into kml/gpx file.
I used this website: https://gotoes.org/strava/Add_Timestamps_To_GPX.php
and it's working fine for me now!

android GPS location doesn't work?

I'm new to android development and I tried 2 tutorials to get the current location but neither of them work for me. I get the exact expected layout but instead of showing the location, it appears to be totally blank as if the command that sets the text field doesn't exist. The logcat doesn't show any exception that's why I didn't post it. Everything else looks normal.
I thought it might be something related to the permissions that must be ran in realtime starting from android 6.0 but this tutorial that I've tried deals with that issue, besides doesn't the lack of permissions throw a security exception ?
Here are the two tutorials that I've followed exactly as they are:
http://demonuts.com/2016/12/30/get-current-location-android-studio/
http://www.viralandroid.com/2015/12/how-to-get-current-gps-location-programmatically-in-android.html
For maps to working you need to put google_maps_key into google_maps_api.xml which is under values folder. You get this key in google api manager.

Google Cardboard Can't Call onNewFrame

I just bought a Google Cardboard Viewer and decided to take a shot at making an app. I have played around with OpenGL and have no problem with the basics of that.
I created a new project following the source from the only sample I could find "Treasure Hunt" linked to from the "Getting Started" for Cardboard.
I can run my own test application and the Treasure Hunt sample application from Google on my Nexus 7 tablet, but I get an error on my phone:
JNI DETECTED ERROR IN APPLICATION: can't call void com.google.vrtoolkit.cardboard.CardboardView$StereoRenderer.onNewFrame(com.google.vrtoolkit.cardboard.HeadTransform) on instance of my.app.cardboardtest.CardboardRenderer
Since I get the same error from the sample from Google, I don't think I need to share any of my code specifically. This is a link to their code:
https://github.com/googlesamples/cardboard-java
I have a T-Mobile Galaxy Note 3 running Android 5.0
Is this the final tipping point for me to upgrade my phone? lol
This seems to be a problem with your build in Android Studio.
Try moving the cardboard.jar file (that contains the vrtoolkit.so binary) to a folder called /lib and point to it.
Upshot is, android cannot find vrtoolkit.so in the delployed apk. The binary is a new addition to the jar, and the docs are older than that.
Or, just stick with Eclipse until Studio is a little more rattled in.
Just a headsup the learning curves around VR development are turbulent like the event horizon of a black hole ...

facebook integration on android

the Fackbook or any of the other codes like updating status or etc all these things are working fine in android 2.1 but in 2.2 (on android device not emulator) it gives
This page contains the following errors:error on line 7 at column 35: xmlParseEntityRef : no name
Re-parse document as HTML
Below is the rendering of the page up to the first error.
CavalryLogger=false;window._script_path="|?dialog|?uiserver.php";window._EagleEyeSeed="H56D";
Request for Permission
I'm in deep trouble because of this, please help me out. Thanks
Refer two Link:
http://github.com/facebook/facebook-android-sdk
http://android10.org/index.php/articleslibraries/290-facebook-integration-in-your-android-application

Android emulator map is not visible

I have added a MapView element in my android project. The project is not showing any error, but when i run the application on my emulator (Google API 2.2), the map isn't visible. Instead only the grid lines are seen. The DDMS is giving me "java.net.UnknownHostException: android.clients.google.com" exception. I have already added INTERNET permission in my application.
You have to get a Map's API key from google to see the map.
http://developer.android.com/guide/tutorials/views/hello-mapview.html
In this link there is described how to use the mapview.
Same thing happened to me: I followed the tutorial, opened the application, and all I got was grid lines. In my case, my computer was attached to working internet, but my Android device was attached to a network that had become broken.

Categories

Resources