android

Android SDK 2.0.1

Can any one knows, how i can get android SDK 2.0.1, i have seen developer.android.com but there is not avaiable the Android version 2.0.1. However Available in Older versions What is that mean ? the version is obsolete ??? Kindly give me the authentic answer Thanks in Advance. ...

Android logs printed in both debug and release mode

In Android is there a way to disable logs/stacktrace being printed when the application is code signed and is in release mode. Is there any direct way to do it? In Iphone i heard the logs will not be printed in release mode by default. ...

How to store and display vector text+graphics images in Android without Flash?

What vector graphic formats can be used to display the in a view in an android application? As I understand, PDF is not an option at the moment, so what other options are there for storage and display of complex text+graphics? Unfortunately, I cannot use embedded browser with Flash because I need this app to work on Android versions bef...

Erase bitmap parts using PorterDuff mode

Hi all, I try to erase parts of a bitmap in my Android application by using Porter-Duff Xfermodes. I have a green background which is overlayed by a blue bitmap. When I touch the screen a "hole" in the overlaying bitmap is supposed to be created making the green background visible. Instead of a hole my current code produces a black do...

Using a single intent with multiple buttons!

Hello all, I having a pretty slow day tday so bare with me. Basically I have an android context menu with various selections and depending on the user selection I want to start an intent. The intent starts the same activity for all the buttons but will contain different String variables depending on the selection. I am currently using a...

Developing an Android Homescreen

Hi, I am working on an app that has a homescreen. This homescreen should behave like the android homescreen where you can switch between several views by flinging your finger over the touch screen. The solution is easy. I have 3 view instances, right, left and current view. I get this instances from the viewflipper that I initialized e...

Get the phone number.

Hai I am working on an android application and i want the phone number of the phone i.e the emulator.I know there will be no phone number for emulator.I want to know how to get its phone number. The reason is I want to send sms from the phone. Please Help. Thankyou. ...

How to do smooth movement with Accelerometer in Android?

How to move sprite objects smoothly on x-axis on change of Accelerometer in Android using Cococ2d? ...

Study Partners Wanted For Pro Android Games Book

Hello, I'm looking for anyone interested in joining me to study the book Pro Android Games. If anyone is interested, please reply. Thanks ...

Switching between Views in Android

Hi there In my android game I want to display a screen when it loads up with my logo saying I built the game, then after a few seconds I want this to switch to the menu screen, and then after a game is started, the screen changes to the game screen for the action to start. I looked in to ViewFlipper but I have since concluded this is n...

Is there a built in method, InputType, or other clever way to cause an Android EditText widget to refuse to accept commas?

I am creating a comma seperated file and don't want to give the user a way to confuse the app. ...

Android emulator doesn't use Windows host file?

Chrome using the windows' HOST file: Android emulator: edit "On Windows, the emulator obtains the addresses by calling the GetNetworkParams() API. Note that this usually means that the emulator ignores the content of your "hosts" file (/etc/hosts on Linux/OS X, %WINDOWS%/system32/HOSTS on Windows)." how can I use static IPs in ...

Buggy ListView makes me sad

Hi, I have a ListView where I've defined the layout of each item in a separate XML file. In this file I've included a RatingBar and an EditText. I've programmatically created 7-8 items in this ListView. When I scroll through them, it seems to be quite buggy. Here are some examples: 1) If I set focus to the EditText in the first row...

ViewImage change based on user input

Hi there i am currently trying change a imageView in my program, it needs to changed based what the user picks from the screen before, so i was wondering how i can access an image in my drawable folder through a string path? all the examples i have seen have been either hard coded (R.drawable.XXX) or asking for the integer id value Ch...

How do you finish() task history of activities when a new instance (FLAG_ACTIVITY_NEW_TASK) of activities is started

I have an Android application that doesn't load in the Launcher. Instead a 3rd party application (i'll call App A) will load my app Activity A through a service (account manager service to be exact) and then the user navigates to Activity B. Then the user clicks the Home button. The user then clicks on another 3rd party app (i'll call Ap...

[Android] How to make an image easier to click ?

I placed an image in each ListView Item at the right side,In the layout xml,I set its width and length as 20dip ,kind of small,and I find it is hard to click at it cause the image only occupied 20*20 dip,I hope the length of it doesn't change,while its height full filling the parent, I tried : android:layout_width="20dip" androi...

How to retrieve all the appWidgetsIds within a BroadcastReceiver#onReceive?

I have a repeating alarm, and I want it to update all widgets instances when triggered. The BroadcastReceiver#onReceive method receives a context and an intent from the parameters. When I do intent.getExtras() it returns me null, so something like extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID)...

Can I get logcat logs after phone reboots?

I'm testing an android application with a long running service. I'm using Eclipse and have the usb cord hooked up with the phone sitting next to me. Since it's a long ongoing service, I do some other work while it runs and check the logcat logs every once in a while to make sure everything is going as expected. A few minutes ago I noti...

Installing & using the Android NDK in Eclipse

Hey, I've been running the Android SDK for a while now in Eclipse (MAC OSX). I've downloaded the NDK and installed the C/C++ tools in Eclipse, but could anyone guide me on using the NDK? For example, do I just create an Android project like normal and build it with the NDK instead? Really could do with a decent tutorial if anyone know ...

Android ExpandableListView within Tab OnGroupExpandedListener behaviour changes on switching tabs

I have an Activity with a few Tabs created dynamically within a loop, where each tab contains an ExpandableListView. I then register the OnGroupExpandedListener to each ExpandableListView within each tab, to have a behaviour that only one group can be expanded at any one given time. The problem arises when i switch to another tab, the pr...