android

Changing the position of the button

Hi people, how do i change the position of my button in my screen dynamically??? example: change the x position and my y position Can anyone help me? ...

VideoView problem in 2.1 Emulator of Android?

Hi, I am using the code available here VideoView Example. This code runs properly on Android emulator 1.6 but not on 2.1. In 2.1 it only plays the audio and not video. I have gone through several other threads where this issue has been mentioned. I will like to know whether this problem is limited to emulator only or the devices also ...

Twitter Authentication on Android question

I am consuming Twitter's REST APIs on Android to get a user's status timeline and for updating a user status. I am using Apache's HTTPClient class for this that is bundled with Android SDK. The user enters his/her credentials and I am saving it in String variables. Everytime I need to invoke an API that require authentication, I pass th...

How do I get this linearlayout working on android?

I'm trying to create a scrollview that contains a linearlayout with some options inside of it. I'd like for the options to show up at the top and grow downwards, and to have "save," "delete," and "cancel" buttons which show up at the very bottom of the screen (if there is space left in between the bottom of all the options and the top of...

black screen while retrieving result from webservices in android

Hi Folks i am using following webservices for retrieving data from server server side:.net client side:ksoap2 whenever activity start, onCreate i am using spinner for displying data returned by the webservices when this activity start it showing black screen after lunching the activity .i found black screen is coming when activity c...

which event is used to slide finger left and right ward in android?

dear friends, i am creating image gallery if i click on grid view of images it shows full screen image. now i want to implement functionality of touch screen or finger sliding left and right ward to change images. any one guide me which event should i use or whats the procedure any help would be appriciated. ...

android: AbsListView.OnScrollListener SCROLL_STATE_IDLE is not called after SCROLL_STATE_TOUCH_SCROLL (Version 2.1)

I have a problem with android version 2.1. It looks like a bug. I attached an OnScrollListener to my listView. I'm using the method onScrollStateChanged(AbsListView view, int scrollState) for monitoring the scroll's state of my listview. The scrollstate could assume 3 value (taken from the documentation): SCROLL_STATE_FLING: The use...

Android SQLiteOpenHelper existing database

Newbie Q coming from iPhone/MonoTouch C# background I have an existing SQLite database file from another project. Where do I include the database file into my Eclipse project to have it deploy with the app. Do I need to indicate that the database file is writable? (In the iPhone world you need to copy the database file from the app's...

Last time the contact was modified

Hey, is there a way to find out the last time a contact was modified? I can't seem to find a variable for it. The reason I'm asking is because I'd like to do a sync of the contacts to my web server and I don't feel like checking for each contact with a HTTP request if it needs updating. So I was thinking to check the date of the last u...

Sqlite error only on Motorola Droid devices, puzzled to say the least

This error is driving me partially insane, it only surfaces on motorola droid / milestone devices, it works flawlessly on the hero and g1. Not got a droid to test it on so have to go on the crash reports in the android market. If you can shed any light onto this matter, I have gone through every db open and made sure it was closed. java...

display several items in one row of a listview in android

I don't now if this title is very clear, but I would like to understand how this is possible : And how we can have 2 elements on the same row of the listview, and handle different clicks, as the listview deals with handling the click on a child. Thanks for anyone who could point me in the right direction. ...

What complexities are involvod in writing a ROM for an android fone

Hello all, This is a pretty open ended question. I have a T-Mobile Touch and have some free time on my hands. So far as i understand im stuck with Android 1.5 and no sign of T-Mobile or Huawei releasing a ROM using a more up-to-date version of the Android SDK. Im asking what are the major complexities involved with making a ROM for t...

navigator.notification.* fails "navigator.notification [undefined] is not an object"

Any call to a PhoneGap navigator.notification method is failing with the message "Result of expression navigator.notification [undefined] is not an object" I've gone through the full installation and project generation process outlined here: http://phonegap.pbworks.com/Getting-started-with-Android-PhoneGap-in-Eclipse ...and the applica...

Good guidelines for developing an ecommerce application

I'm making an ecommerce application on Android and, as it is my first serious project, I'm trying to figure out beforehand the best approach to do this. The application talks to a web service (magento api, meaning soap or xml rpc unfortunately) and gets all the content on the phone (product categories, product details, user credentials ...

focus not going to another button in android

Hi, I wrote a code for pinging of given URL.It works fine for me.But whenever i clicked on the start ping button, pinging started but that time focus always is on start button and no widget of the screen working that time. After pressing many times it will gives the force close error.If iam giving URL which is not pinging then that time...

When to use a service in Android

Hi everyone, I have a class that fetches data in response to button presses in the main activity. Unfortunately, I keep running into problems because this class is not an Activity or a Service. For example, without a Context I cannot translate a resource id into a string: getString(R.string.example_string); // Doesn't work Should I m...

Receiving a File via RFCOMM on Android

Hey guys, does someone know how to receive a file on android via RFCOMM? I'm a newby to bluetooth issues, so please have patience with me. I'm looking for an approach to receive data via RFCOMM as a stream and store it somewhere on my phone. Saving data is not the problem, it works quite fine. The main issue is the implementation of t...

Packaging "hidden" asset files

I'm placing the file '.nomedia' into a folder in order to avoid Android's MediaScanner from detecting the media files in the folder. I need to copy this folder (including '.nomedia') from the APK's assets to the SD card (so other apps can make use of these media files, etc.). When I package the APK in Eclipse, it doesn't package the '.no...

Android Live Wallpaper touch events

Hi, I've just started with Android, I'm making a simple Live wallpaper. I'm testing it on a 2.1 emulator. The trouble is while it works in the preview screen before you choose "Set Wallpaper" the touch events don't appear to register on the screen once you've selected it as a wallpaper. Do I need to state anything in the manifest about ...

When anyDensity=false why does getDrawingCache(true) return null?

First off, my application currently defines anyDensity=false in the manifest file. Elsewhere in the app, I'm trying to capture and display a View's DrawingCache but I'm not able to get a clear Bitmap without scaling artifacts. The code below yields a Bitmap but it has scaling artifacts and is generally fuzzy. myView.setDrawingCacheEnab...