android

change the style and theme of android app

From the beging The android app has black background, I want to make all these changes, How is that possible ...

aymsg in android

Hi, What is aymsg ? ...

Movement in native Android development?

Yo guys, I'm trying to get into native android development coming from an Actionscript 3.0 background. My question is: what is the standard convention for creating basic movement in Android? By movement I mean a 2D graphic moving across the screen for instance. Is it by using timers to fire a general update() method? I have seen some...

testing android application

How do I test my android application such that it works on all major android phones ? e.g. Motorola, HTC, Samsung etc. I have an app that works on nexus one and samsung but it is giving problems on htc incredible. ...

Divider for ExpandableListView

How do you create a dummy header view for every first child in the ExpandableListView created using CursorTreeAdapter? The header need not have dynamic content and can be a simple view inflated. (I am also setting tags to retrieve data later onItemClicks & onLongItemClicks) Any pointers will be most helpful. Thanks ...

WCF in Console to Android with username and password

Hi, After reading and trying and reading, I hope somebody might help. I want to make an application that runs in an console (Click and it starts without complicated configuration) . Then an android client connects to the WCF service on the console, enters his username and password, and has access to the service. (only intranet) It soun...

How to get a android ListView item selector to use state_checked

Tearing my hair out trying to get an Android ListView to do what I want. I want to have a ListView in single choice mode with a custom row layout that has a different background color for selected, pressed and checked (i.e. the choice is shown by a color rather than a check mark - this is what I would normally call the "selection" but ...

How would you call a method from all instances of a class?

I am writing a basic game engine and have an abstract class that represents any object that can be drawn in the 3D world, however inside this class is an abstract method Render() which I would like called automatically by the engine on each draw phase. How could I implement this so that every class extending from my abstract class will a...

Media controls Bar disappears after appearing for a second in VideoView Android

Hi, I am able to play a video using VideoView in combination with MediaController. The problem when I started my activity , a bar appears below with media controllers play,pause,rewind ,progress bar representing video. But it disappears after displaying 1 second. Then I how can I make this media Controller bar with controls to display a...

take photo in android emmulator

Hi , i tried running "Photo capture example" in android emulator , http://labs.makemachine.net/wp-content/uploads/2010/03/2010_04_09_make_machine_photo_capture.zip when the photocapture example is loaded in android emulator , it shows the screen with “No Image” Text and “Take Photo” button. as follows, if i click on “Take Photo: B...

Android Share an Image, Process in Background (how do I run the activity in the background?)

I've written an application which adds itself to the image gallery [Share] menu. When the user clicks my app, it uploads the image to a hardcoded web service. It's all working great, but there's one tweak I can't seem to figure out. When the user selects my app, the Gallery "flashes" away for an instant while the Android Activity is...

Android service with locationListener callbacks

Hi. I have an android application. Based on the current geo location of user, I want to fetch some remote data in background and store it. My implementation is: At specific interval a alarm fires up my service. Service uses an anonymous class to query current location and registers a locationListener callback. On call of onLocationChan...

I am having trouble getting the emulator to work

I have followed the instructions found online on my laptop and my desktop. My desktop works fine but my laptop gives me the following errors when I try to run the emulator through eclipse. The device 'and' is listed and the preferences point to the correct file. emulator: ERROR: unknown virtual device name: 'and' emulator: could not ...

How to find out the size of a directory in adb shell?

I want to find out storage usage of an app. I can list file size in adb shell using ls command. But, I didn't find 'du' command in adb shell. Is there any command or tool that allows me to figure out the storage usage of a directory? Thanks. ...

SQLite triggers in Android ?

Hi all I want to forece a foreign key constarint on a table in an Android application. I've searched that this can be done by using triggers: I did it like this: db.execSQL("CREATE TRIGGER dept_id_trigger22+" + " AFTER INSERT "+ " OF EmployeeName ON Employees"+ " BEGIN"+ ...

Can I develop for android applications by using CLI

I've start developing android applications. but My PC has so poor resource cpu and ram for using eclipse so I'd like to develop by CLI javac.. How can I use CLI for developing android? ...

how can i set a title(once) for all activities?

I wish to set the title of each activity with a constant value which is fetched from a local sqlite database. the value is the user's username. Is there a way to set the title once and have it affect all activities? or do I have to manually set the title on each activity? If there is a way, how is it achieved? ...

Query the row which with the maximum value on "cont" column

Hey, I'm trying to query the words which have the maximul values in the cont columns. Ex: if the word "test1" has the value 5 in cont, and "test2" has 2, "test1" will be shown in first position. got it? so. Im trying to do it but it returns the following error: 09-18 22:24:04.072: ERROR/AndroidRuntime(435): Caused by: android.database....

Ideas for Android Securty Project

Hello everyone, I am a student taking a course in Network security.As a part of my coursework I need to do a project on the security side of Android like developing a simple application which involves basic security concepts. I searched for different ideas which I can implement on Android within a span of 2-3 weeks.I found ideas such a...

Location based search on Android

I'm trying to create an Android app that searches for a certain type of business near the user's current location. I found the Google Places API, but it doesn't look like you can specify what type of place you want to search for. They also say you're not allowed to filer the results, so I can't even just filter out the ones i'm actually ...