android

Trying to output my LogCat to a file.

I've been told it's a command line option. But Eclipse's Run!Run Configurations...!Target!Additional Emulator Command Line Options field is already occupied with -sdcard "C:\android-sdk-windows\tools\sd9m.img" If I wanted to write something like adb logcat -s MessageBox > "C:\Users\me\Documents\LogCatOutput.txt" then where do I w...

switching activities/passing data between activities

me again, So using suggestions from the last question i asked, i figured out how to call BarCodeScanner, and return the value to a field. so now, i have a toast that says "successful scan" and then i want to pass the result to a new activity. when i comment out my intent, everything works (minus the passing of data/switching of screen, o...

HTTP interface for Android application

Hi: I want to implement a http remote control for an Android application: From a browser on a computer in the local area network the application running on the Android device should be controlled. Are there any recommendation how to implement this? I heard about i-jetty but it is not uncomplex to integrate it into an existing app. ...

Android Development Image Upload Corrupted

I'm developing an android application and I'm trying to upload an image to our server from the client side. When I get onto the server to view the image it is corrupted (gray bar on bottom) sometimes. I'm not sure why this is happening. If anyone can shed some light on this issue that would be greatly appreciated. Here is the code that u...

Android Button OnClick event fired after multiple clicks

I have a custom Android (1.5) Title bar which includes a button. Using the custom title bar in Activity A, I am able to click the button, and have the OnClickListener event fire as expected. However, when I launch Activity B for result, from Activity A, it can take 2-3 clicks for the same buttons event to fire. This is the code to set...

Android: Programatically triggering phone checkin

From within my Android application, I need to make the phone 'checkin' with Google for Market updates. This can be done manually by the user by opening the dialer and typing '*#*#CHECKIN#*#*'. My app needs the ability to do the same thing. I'm positive this done using an Intent. Some digging shows that the Alarm Manager has this pend...

Can we replicate the "shadow" effect underneath the titlebar in android?

There are two areas in particular where Android renders very elegant shadows underneath views: 1. Below the title bar 2. Just below the TabWidget It's different than, say, a gradient view between two larger views. It gives the effect that the top view is floating![alt text][1] over the screen. I would attach an implementation seen in Fo...

(Android) Passing Resources/activities with intent

I have a fully functioning program that worked. However it had two dialogs that I know I'll be reusing every time I write a program, or potentially multiple times per program. They are a EULA and an info page. So I've moved the two activities to their own project, however I don't want to have a standard EULA and info page obviously. ...

Android VRAM. check.

hello all. i want to acquire Android Device VRAM size. Is there a method for acquisition from the program? thank you. ...

CONTENT PROVIDER.

Hey folks! Im having problems with the content provider. Im trying to create a content provider. Is my URI parse been parse correctly? public static final Uri CONTENT_URI = Uri.parse("content://data/data/one.two/databases"); this leads to my database as I want to extract data from it and show it in the list view. ...

Android Activity bind to Service

I have a series of 3 activities, and the 3rd activity binds (I'm using AIDL) to a Service. What I notice is, if I am on the 3rd activity and start the service, on clicking the back button (moving from 3rd activity to 2nd activity), the Service onDestroy() gets called, and the Service is stopped. How can I ensure that the service runs e...

Android Change view properties of custom listview item on mouse down (duplicate default listview behavior)

I have a listview that displays a list of items of a custom resource. I have everything working, I can click on the listitem and I can call a toast or whatever I want to do. But how do I make it so I can change the color of the view's background when the user touches the item? I've tried doing the following and it works for a click, I ca...

Binding a Service to an android.app.Activity vs Binding it to an android.app.Application

Is there any fundamental difference in binding a service to an android.app.Activity vs binding it to an android.app.Application. I want to bind the service to an Application because I want to keep some global state/data in the Application instead of duplicating it in all my activities. Thanks. ...

What is the easiest way to release an Android application for multiple OS versions?

I have written an Android application that I am about to release, but I would like to have a 2.1 version with multitouch and a lower API version without. However, if I simply just use the minSDK setting, the 1.6+ version would show up in the market with the 2.1 version on 2.1 phones. Is there any way to release for a specific range of ...

How to share a view across various activities

Is there any way to share the same object of the View across various activities? For example myApp has 4 activities, and every activity shows a Logo at the top of the screen. Now each activity will initiate 4 copies of the same Logo. So is there any way to get around this? And if 3 out of 4 share the same logo? ...

Android 2.1/2.2 Bluetooth serial connection with a desktop computer

Hello, I thought it would be quite easy to develop a bluetooth application on Android, but it looks like the support is very bad. While pairing works, my Nexus One with Android 2.1 can't connect to the PC. It's the same in Windows and Ubuntu. I used on my Desktop computer, in Windows, Hyperterminal and waited on an incoming bluetooth c...

determine API level for platforms < 1.6

Build.VERSION.SDK_INT was added only in API level 4 (1.6). Is it possible to determine if phone has API level 3 (1.5) ? ...

Android MotionEvent - Cant find Left and Right Motion Event

hello all.. i am developing one application in which there is an imageview...in which i want to move left or right using mouse touch... for that i found "android.view.MotionEvent" but in MotionEvent there are few events among that ACTION_CANCEL 2. ACTION_DOWN 3. ACTION_UP ......etc. hence there is no such event for "LEFT" and...

Dalvik JIT compiler on Linux X86 or Mac build

Hello, As I've heard from Google IO 2010 session, Dalvik JIT compiler just support ARM processor. Do this mean my own build of Android source on Linux X86 or Mac OS X can not support JIT compiler? Should I use some target board with ARM processor to test Dalvik JIT compiler? Thanks! ...

Dynamic widget (screen) creation..

Hi All, I'm dealing with a problem you guys might not have faced earlier. I'm having a use-case in my Android application where the actual screen that i want to show to user is not stored in any layout file of my application. The layout of the of the screen is designed by server in this case, based on selection made by user on first sc...