Showing posts with label Android Developer Tips. Show all posts
Showing posts with label Android Developer Tips. Show all posts

Remote debug web page on Android with Chrome DevTools


This video show how to remote debug web page on Android from PC, with Chrome DevTools.


In order to remote debug on Android device, you have to enable Developer options and USB debugging on your Android device.

details: Google Developers > Chrome DevTools > Remote Debugging Devices


How to fix "Found 2 versions of android-support-v4.jar in the dependency list"

Recently after updated SDK on Android-Eclipse, tried to import my old example, and have the following error reported:

Found 2 versions of android-support-v4.jar in the dependency list,
but not all the versions are identical (check is based on SHA-1 only at this time).
...

My solution is to delete the file android-support-v4.jar in libs folder of my project.

The processing instruction target matching "[xX][mM][lL]" is not allowed

If you get the following error in your AndroidManifest.xml, especially when you copy and paste from web:
Parser exception for /.../AndroidManifest.xml: The processing instruction target matching "[xX][mM][lL]" is not allowed.


Most probably there are some character exists before the <?xml ?> declaration, visible or invisible. Make sure delete anything before <?xml ?>, or even delete the whole line and re-type manually.

check the video demo:

Offline GDG Developer Kit available

GDG Dev Kit Pilot (https://sites.google.com/site/gdgdevkitpilotreadme/) is a pack of 4 DVDs (also available in a limited number of single USB thumb drives) containing useful content for developers who work with Google technologies and APIs.

The developer kit is meant for software developers or students of software development in regions of the world where steady access to the internet is expensive , unreliable or non-existent.


Each pack contains the following :
This content is current as at August 2014

Read details: https://sites.google.com/site/gdgdevkitpilotreadme/

Download link.


Get your app in the Google index

Get your app in the Google index — and be ready for the future of search! Try the hands-on codelab at: http://bit.ly/index-my-app.

Google set out to index to mobile apps, to bringing accessibility and discoverability to them. App Indexing is the ability for Google to index apps just like websites. Deep links to your Android app appear in Google Search results so users can get to your native mobile experience quickly, landing exactly on the right content within the app.
  • Drive return visits to your app
    For users who have your app installed, having deep links appear in search results will help drive organic traffic back to your app.
  • Re-engage your users
    For users who have viewed pages in your app, and later searches for similar content, you can use the App Indexing API to have deep links appear in search suggestions. For example, a user visits a pizza restaurant page in an app. The next time the user searches for pizza, a deep link will appear in search suggestions before seeing search results.
Create a seamless experience for your users App indexing is flexible—you can direct search users to your app or website on a page by page basis. Moving from search results to apps is seamless, without any pop-ups or extra taps to slow users down.


To learn more, check out: https://developers.google.com/app-indexing