android

RemoteViews and setOnClickPendingIntent

I try to write my first widget application and i got a problem. So, i have 2 arrows: switch to left and switch to right. For both of them I want to use a single Service, which changes the view of my homescreen widget according direction of arrow. For distinguish the direction of arrow i put an extra data to each intent i use. This is my ...

Dynamic linking on mobile platforms

I have heard that the iPhone does not support dynamic linking. I want to know whether any mobile platforms support dynamic linking, such as Android or BlackBerry? ...

Screen Layout for Samsung Galaxy S (480 x 854) Problem

Does anyone know how I should layout my app for phones with the same screen as the Samsung. My app displays perfectly on small and normal densitys but for some reason the buttons are slightly higher on hdpi screens and I have to tap above them to get them to work... its very annoying. Im trying to find out what the dip size etc is so I ...

Android: XML Layout problems

Hello, I've been trying to create a RelativeLayout with a header, body (list) and footer. I want the header to be above everything (aligned to top), the body (list) to be under the header (when scrolling) and the footer (aligned to bottom) to be above the body (list) - only when it's visible. I've managed to do so PERFECTLY when it com...

Is there a listener for when the WebView displays it's content?

Using WebViewClient and/or the WebChromeClient you can get a listener for when the page has loaded, however this is sometimes called before the WebView has any content in it, before it has displayed anything. What would be a efficient method for determining when the WebView has displayed it's content? Edit: (Trying to be more clear) W...

Android, get app size

Hi! I'm looking for a way to calculate the size of an installed Android application/package. I can't find this information in neither ApplicationInfo nor PackageInfo objects. From the ApplicationInfo I can get the path for the data and the app itself. Data is a directory structure, but when attempting to read it recursivly I get a nullpo...

Android: How can I programmatically draw text on key guard screen / lock screen?

Is there a way to draw on or modify the key guard wallpaper programmatically? It looks simple enough for the home wallpaper, you can use WallpaperManager. But how about for the lock screen wallpaper? I would like to draw some text there. ...

adMob is "blinking", if another View has changed

Hello! I'm using an admob-adView in my app. But I have a problem. Everytime I change text/backgrond/or whatever of another (text/button/..)view in my layout while admobview is running, it blinks/refresh... I'm using also a countdowntimer which sets new Text to a TextView every second(onTick()). So the adview is blinking every second to...

Implementing a timer in Android that's active all the time (even during screen timeout)

I've implemented a Service in my android app that starts a timer (using the standard java.util.Timer and java.util.TimerTask mechanism) to do some processing in the background on a pre-defined interval. public class BackgroundProcessingService extends Service { private int interval; private Timer timer = new Timer(); public void onCr...

how amazon ec2 ,php5,android ?

i want to use amazon ec2 php library to run on android ? ...

Detect click on HTML button through javascript in Android WebView

I'm not highly familiar with javascript but I think this is the best way to accomplish my purpose... If not, please correct me. I have a licence text 2 buttons at the end. All of this is written in HTML in a WebView because there are some links in the licence. Now, I want that when the user clicks the "ok" button in the WebView, this ...

Android; App installs and runs OK, but when I exit I can't find its launcher icon in menu

I've created a simple application and put it onto my device. I use a file browser to locate the APK, it installs successful and I can run it OK (when clicking "run" after install completes) However, if I then exit the application, I'm unable to see a launcher for it on my apps menu (where I would expect it, like other apps I've created...

How to create a BKS (BouncyCastle) format Java Keystore that contains a client certificate chain

I'm writing an Android app that requires SSL client authentication. I know how to create a JKS keystore for a desktop Java application, but Android only supports the BKS format. Every way I've tried to create the keystore results in the following error: handling exception: javax.net.ssl.SSLHandshakeException: null cert chain So it looks...

How to display images on demand inside a listview?

I am building a android aplication which will be consuming a json file from the internet. This json file contains a list of news from a particular website. Each json object contains information such like title, summary, descripition and web links for the news thumbnail and the original image. I will be displaying in a listview three inf...

How to enable SSL debugging on the Android platform?

Is there something similar to setting -D javax.net.debug=ssl at the command line for Java desktop applications, but for the Android? I've tried setting it in code via System.setProperty("javax.net.debug", "ssl"); but that didn't work. If there isn't a way to enable this property, is there at least another way to debug the client side of...

Android MapView Projection returning negative numbers

I'm using the below code to put an overlay on my MapView. For some reason after itterating through the location data it draws the point in the same place. It seems to be happening on conversion from Location to GeoPoint to Projection: Location (lat : lon) 51.2651789188385 : -0.5398589372634888 Projection (x : y) 239 : ...

Android compass example does not seem to work in landscape mode

Hi, I have developed a compass based on this example: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/Compass.html Since my app only operates in landscape mode so will the compass. However, it seems as this code does not function correctly in landscape mode. North points more towards east. ...

ScaleGestureDetector not detecting gesture end

I have hooked in a ScaleGestureDetector to an OnTouchListener as instructed in Android documentation. For some reason the ScaleGestureDetector does not always detect end of a pinch gesture. This happens mostly when pinching fast from large to small. The effect is that after I have released both fingers the detector does not fire the ge...

How to use selects in join clauses in Android 2.1?

I have a query that does some magical sort-group-joining that works just fine on Android 2.2 (froyo) version of SQLite: SELECT channels.*, p.* FROM channels LEFT JOIN programs p ON channels._id = p.channel_id JOIN (select p2.channel_id, max(p2.airdate) max_air FROM programs p2 GROUP BY p2.channel_id) pj ON pj.channel_id = p.chan...

Using Youtube Intent to launch a video from a defined starting point

The question is easy :) I want to start a youtube video from a defined starting position. In a regular browser, you can achieve this by appending a #t=1m20s at the end of the url like in: http://www.youtube.com/watch?v=HKdsra1O20Y#t=30m10s But If I use that URL in the Intent, the Android player is not putting the start at that point....