android

Text with gradient in Android

How would I extend TextView to allow the drawing of text with a gradient effect? ...

Adding contacts using ContactsContract in batch

Can anyone please help me on adding new contacts in address book and apply them in batch by using new ContactsContract API. I could not find a proper tutorial on this. I am able to add a single contact. But batch update fails with Unknown contacts being added. Currently I am looping through while loop while collecting info. of users to...

Detect if an app was uninstalled

Is there a way to get a system notification when an app has been uninstalled? I would like to maintain a table of all clients' info currently using my app. However, that seems impossible if there is no way to detect this event. The first solution I can think of is to have an always running service in the background listening for andr...

game programming iphone osx android 1.6 shared codebase

im planning to develop a game for iphone and android. what programming language can i use to create a shared codebase between the two platform. i understand that there are some parts which are device specific. ...

"Conversion to Dalvik format failed with error 1" on external Jar

In my Android appliction in eclipse I get the following error: UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lorg/xmlpull/v1/XmlPullParser; .... Conversion to Dalvik format failed with error 1 this error only appears if I add a specific external Jar to my project. I search long time to the right s...

Share files between applications

Hello, Can i share one application related data with another. Say I have a music file in resources/raw folder of apk2. Can I use the same file in apk1. thx... ...

Android custom categories

Hello, I have a view as a main screen of the application which contains the available application's actions as icon+text pairs ( desktop like). I want to find out programatically what are the activities defined ONLY in my AndroidManifest.xml Suppose I have : < activity android:name="example.mainActivity" android:label="mainActivity"> ...

Implement Camera on Android Emulator | Need some knowledge

I'm interested in doing some enhancements to android emulator (implement webcam on emulator). Therefore I'm following the android source and emulators source to get basic understanding & the connection between modules. But its really hard to understand it for someone who is new to android. Therefore can anyone please direct me to some r...

How to set up an Android source repo while hosting the git trees as private repositories on github?

Hello there, I am trying to set up a private repository of Android source code while hosting the git trees on github as private repos. I have no problem changing the manifest.xml file to point to public git trees hosted on github in the same way that CynagonMod does, but when trying to point to private repos I get the following error w...

Android: How to auto-restart application after it's been "force closed"?

In an Android application, we usually got the "Force Closed" error if we didn't get the exceptions right. How can I restart my application automatically if it force closed? Is there any specific permission is used for this? ...

Alarm not working if application gets killed

Hi, I am trying to use an alarm to set my widget layout after some minutes. Everything works correctly in normal situation but, if I try to delete the process of my application ( simulating a system kill) after the alarm is set, then no alarm is executed. Why? From documentation it seems that alarms are executed by AlarmManager service....

How to add a button in android?

Can anybody tell how to add a button in android? ...

Infinite service

Hello, I have some proccess that i would like to run in the background the whole time. so i made it "service". my question is: is there anyway to prevent from the user to kill this service? (even if he uses third party app) thanks, ray. ...

Data 'logger' turning off when phone goes to standbymode

I'm creating a datalogger which logs the gps data and the sensor data of the phone. I've just a strange problem. If the phone is not touched for few minutes it goes into standby mode (screen goes black), and that causes the logger to stop working. Actually the firewriting in the logger stops working. The GPS resumes fine after coming out...

Android FBConnect: unable to get extended premissions

Hi, when I login in and try get extended premissins displays "You must be logged in to Facebook to use this feature". How can I get extended premissions for posting messages in facebook? ...

how to check if Receiver is registered in android

I need to check if my registered receiver is still registered if not how do i check it any methods? ...

Android how to make button text bold when pressed or focussed

I want to change the text inside a button to be bold when the button is highlighted or pressed. I currently use a xml file to define the button and use the XML to change how it looks when pressed but I would like to do this without using an image. <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com...

Sign application with several certificates

Hi, From the signing documentation at http://developer.android.com/intl/zh-TW/guide/publishing/app-signing.html: When the system is installing an update to an application, if any of the certificates in the new version match any of the certificates in the old version, then the system allows the update. This indicates that an applic...

cropped layout on the Android avd emulator

My application layout looks good on two slightly different avds I created in the development environment using Eclipse. However when I try to run these devices in the Emulator as standalone I see some missing buttons and cropped edges on the screen. I used the apk generated by Eclipse and installed it in the devices using adb - install. ...

android : rss reader

hi , i am making google finance application and searching for the API's. i have found api on google finance site but there news also coming . i have tried to search but could not get the api for the news . can u please guide me in this regard. Thanks ...