android

Problem with ImageView onClickListener on Android

I have problem, in my Android app, I have ImageView and I implemented onClick event but when I click on ImageView it looks like that it doesn't run onClickListener at all. Any help? ...

Android layout not showing properly

Hi everyone. I'm writing an android app, and in it I want to have a sort of title bar, with the name of the game, the score, and things like that. Then below that I want to have an grid of image views, which will kind of be like tiles on which I can display different characters in my game. I have the following xml layout, but when I ru...

android show context menu from code behind

Hi all, This might be a simple question, but i've been looking around and can't find the answer, well, as my title said, is there any code to show the context menu on the android from a code, instead press the menu button? eg. when i touch the screen then it'll call the context menu? Regards, AnD ...

Android SlidingDrawer from top ?

Is there any way to make the drawer slide from top to bottom? ...

Android: Stop playback on Home or Back button

When I press back or home in my application, it hides, but the MediaPlayer keeps going. Is there a way to know when these buttons have been pressed and stop playback before closing? ...

to create browser for android phones

How to start to create a web browser for android emulators? What all languages are required. What all it should include?? Any reference??????? We are also doing web content adaptation. What all stuff is required. ...

In Android how do you update the screen after you change the text with a setText?

Right now I am using the following cod eot update a textview: txtMain.setText("new text"); After that code executes, the screen does not update with the new text. Is there a way I can force the text to update right then and there? ...

Are there any 3rd party UI libraries for Android?

I've seen specialized Android UI libraries like for charting, but none for alternate implementations of controls and containers. Are there any? ...

[Android] Problem launching Google Navigation

hey, i tried since many hours to launch navigation from my app. I want navigation without destination. i tried with Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=")); startActivity(i); That launches navigation but with destination not found I tried too to launch processName, packageName ...

How to schedule my android app to do something every hour

Hi guys, I want my app to access database every hour and read next record from the table then update desctop widget and send notification. I know that there is AlarmManager which I can use to register my Intents but they are deleted when the phone is turned off or rebooted. Is there any other android class/service that I would update ...

android: pass kernel input event /dev/input/event* to java

how can I create java events from an new input device on an android device? ...

Android: How to change the textsize in an EditText field?

I want to display a table with some fields being editable - see this example: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:paddingLeft="1dip" android:paddi...

Android: can one alias a layout?

I have two Activities that both list items in a table. For the time being both currently use the same layout and then inflate it at runtime. However, to cleanly and strictly separate the two and also allow me to later maybe have slightly different layouts for each, I would like to have two different layout names but simply alias (is th...

Remove all Overlays

Hello, I have the following code to add an Overlay myMapView.getOverlays().add(sites); myMapView.invalidate(); I also have the following remove code where sites is a global variable. if (sites != null) { // myMapView.getOverlays().clear(); myMapView.getOverlays().remove(sites); myMapVi...

Android service error handling

What is best way for services error handling? For example, I have service which get some information from Internt, I want show to user some dialog with message when connectivity is bad. Or if I have some Util class for parse HTML that used by my service and exception occures in this Util class. How to show dialog? As I know DialogBuilder...

How to get phone number of an android CDMA phone?

The TelephonyManager.getLine1Number() works on GSM phones, but not CDMA phones. Is it possible to get the phone number of a CDMA phone through android API calls at all? thanks ...

How to kill a thread and handler before going to new activity...

Hey all - this code might be a bit messy in the way I'm trying to clean up the handler as I've been trying to track down where the crash happens... I've got a dialog activity that is showing a password entry with a progressbar being animated by a thread and handler... It seems that when I'm attempting to see if the progressbar is done,...

MP4 videos hosted on Internet cannot be dowloaded and played on Android OS When size bigger than 1,7MB

I have hosted some videos for Mobile-Learning on Internet (for direct or progressive download, not video streaming service) and I want them to be playable in most of the mobile devices, especially the ones with Android 1.6 and higher. The video container is MP4 with H264/AVC and AAC LC which is compatible with Symbian, Android, Windows ...

Android connecting - WCF Service should return JSON

Iam connecting my Android app to a wcf service, and in my Log.i I can see that it return data correct, The only thing I want to handle it as JSON but my service sends as XML-(I think): this is how the code in the app looks like: if (entity != null) { InputStream instream = entity.getContent(); BufferedReader reader = new Buff...

MapView with maps that have the same resolution as Google Maps

If you compare how the map looks in MapView and how it looks in Google Maps, you'll notice that in Google Maps the map is "bigger". The texts are bigger, roads wider etc. Can I achieve this in my MapView? ...