android

Autoscroll to bottom on custom dynamic listview

I followed example as http://www.androidpeople.com/android-custom-dynamic-listview/ However I bump into problem applying autoscroll to bottom as listview.setTranscriptMode(ListView.TRANSCRIPT_MODE_DISABLED); Where should I apply it? ...

Android Calendar View for Date Picker

Hi - I'm writing my first app, and I have a question about datepicker. My app requires the user to input a date. The most user-friendly way would be to popup a calendar-like widget that displays the current month like a calendar grid - something like this: http://i.imgur.com/9srDh.png I want to use that in place of the datepicker inte...

controlling the android status bar icon

I am trying to exercise a little control over the state of an icon in the status bar. I want to be able to do the following: Keep the icon visible in the status bar, as long as the app is running, EVEN IF the user chooses to clear the status bar. Clear the icon from the status bar if the app is exited, even (especially) if it is kille...

Android General Programming

I am attempting to write an app for the Android platform which is similar to a lot of code I have written in VB and C++. I plan on using sensor data from the device and doing calculations on that data. I am still working a lot of this, but wanted to know since I was going to need access to the motion sensors of the phone, where would be ...

Android app to connect to backend database / website

Hello, I want to setup an Android app that will connect to a backend database (web/database server that I maintain). What are some good resources for doing so? Thanks in advance. ...

Logcat standalone client

I have developed android application. Now it is time to give it to the beta testers. Is there the standalone application witch will collect LogCat output? I do not want to force testers to install whole android development environment. I was thinking about application witch will collect logs through usb port and display them to the PC c...

Android- Providing Alternative Resources not working?

I feel as if I'm missing something. In my application, I decided to provide alternative drawable resources and alternative layout files. My structure is as follows: res/drawable-hdpi/filename.png res/drawable-mdpi/filename.png res/drawable-ldpi/filename.png res/layout-small/layout.xml res/layout-large/layout.xml res/layout/layout.xm...

Why are there two similar NotePad classes in the Android NotePad tutorial

I'm confused about something in the NotePad tutorial for Android: There are two separate NotePad classes definied, one in com.example.android.notepad, and the other in com.google.provider. They both contain the exact same Notes class defined in them, but I can't figure out why this is defined twice. At first glance the only one used is t...

SMS raw pdu in Android

Hello, 1) Is there any way that I can send a raw SMS PDU from an Android device? Or, 2) are there any classes available that can give me access to the PDU headers (for example TP-DCS) so that I can construct the PDU as I like? I have searched the net and found: http://www.androidjavadoc.com/1.0_r1_src/com/android/internal/telephony...

how to get only active calls from PhoneStateListener

Hello, I would like to get only active calls from PhoneStateListener. I have created the listener with method onCallStateChanged. Once I dial (and the call is picked up) the state is already off-hook. Well, it doesn't really surprise me, because of the text in the API: Device call state: Off-hook. At least one call exists that is dia...

Android onItemClick -> Toast bookmark id

Been trying to find out what is the bookmark id the user clicked on... Tried everything, many force closes... and now an empty toast (no error marks in eclipse): public class Dmarks extends ListActivity { protected Context context; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInst...

Are there any Android multiplayer game libraries?

Are there any good libraries or tools available for adding wifi multiplayer functionality to an Android game? The amount of work and cost involved for getting even the simplest of turn based multiplayer features into our games is somewhat daunting. Doesn't have to be free. ...

data/statistic tracking for users in android application

I have a listview populated by a text file hosted on my website that is parsed and made into seperate list items. Each list item sends the user to a new activity to view more information on that item. My question is - how do I go about tracking the following data about my application.. # of views of the whole listview # of unique views...

Paint on a VideoView

Hello. I am trying to code an app where you can paint (Finger paint) free hand on a running video in a VideoView. I have the two things running sepaerately but not together. I can draw my paint on a blanc screen and i can play my video on my videoView, which is implementet in an xml layout. Is there a way to overlay the xml videoview V...

How can I configure the color of the text in a dialog

In android selection dialog, like this example, http://labs.makemachine.net/2010/03/android-multi-selection-dialogs/ How can I specific the color of the text in the dialog? e.g. the color of the text "Mars", "Jupiter"? ...

Android AppWidget not being updated with Bitmap - What am I doing wrong?

Hi Guys, I am trying to retrieve an BLOB image data from MySQL database using PHP and use that data to convert it to a bitmap and display it on my AppWidget. What happens is the widget initial layout remains on screen and never gets updated. Here are the snippets of my code. Widgetinfo xml <appwidget-provider xmlns:android="http://s...

<TableLayout><TableRow><LinearLayout> hates me. Force close on run. Android.

Hi, all. I'm working on setting up a home screen layout for an Android app in which there is a 4x4 grid of launch icons. My current structure for this is like this: <TableLayout> <TableRow> <LinearLayout android:orientation="vertical"> <ImageButton> <TextView> </LinearLayout> </TableRow> ... ... ... </Tab...

Alternative to /proc/PID/exe symlink for retrieving another processes full path via PID

I'm looking for a alternative method to reading the /proc/PID/exe symbolic link in which to obtain the full path of a process in Android/Linux. The reason being is that on Android, /proc/PID/exe for any process other than your own or 'self' seem to have restricted (permission denied) access. I have looked into the following as well - ...

How to find Memory Leak Class/Activity in Android

Hi, I am New to this Android platfrom. In one application, there is a memory leak. But i couldn't able to find in which actiity or class the memory leak is happening. I am using MAT to get the infirmation that the memory leak is there or not. But not able to find which activity is leaking. Please tell me how to find the which acti...

Android Phone Accelerometer

I would like to write a graphical application for an Android phone that displays a level bar, which changes depending on the phone's accelerometer sensor. Where would be the best place to get started in learning about writing programs for the Android? Specifically, I would need to know: What programming language should I use? What gra...