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 ...
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?
...
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 ...
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...
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...
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...
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.
...
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...
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...
i want to use amazon ec2 php library to run on android ?
...
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 ...
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...
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...
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...
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...
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 : ...
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. ...
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...
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...
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....