android

Parcel.readException passing an object to remote service

I wrote a remote service that the clients can log on with the usual mechanisms of IPC provided by Android and the binding seems to work. The problem arises when I go to call a method that I have to pass an object as a parameter because I get this "curious" exception: 10-19 15:09:04.601: ERROR/AndroidRuntime(2985): FATAL EXCEPTION: main ...

android scrollView not aligning in screen Landscape View

I am having a problem in ScrollView. When i run my application on X10i it works fine but when i change the view to landscape half of the layout at the bottom (RelativeLayout) go down to the screen. Here is my Layout code. please suggest a general solution that will be applicable to all phones not only X10i. <?xml version="1.0" encoding=...

android how to show a dialog for a specific time

Hello I would like to show an alert dialog that shows a counter(timer of time) and after 10 seconds will automatically disappear. I have: builder = new AlertDialog.Builder(this); builder.setTitle(title); builder.setMessage(msg); final EditText input = new EditText(this); builder.setView(input); runOnUiThread(new Run...

ArrayAdapter of a dynamic size in Android

I need a gallery to be able to hold up to thirty custom views. These views need to added or removed whenever, they also need to be able to be display in a display bow beneath the gallery. How do I do this? I looked at the doc file for arrayadapter but it requires me to use a reference Id for each view I add, but each view is all java cod...

Android /drawable-nodpi/ loading scaled

I recently rebuilt my Android project to target 2.2 from 2.1. In the old project, I did not specify a target SDK (the manifest did not contain something like: android:minSdkVersion="8"). This gave me an error in the console when running, but everything worked fine so I didn't fool with it. The new project now uses android:minSdkVersion...

Android sidebar

I've been using firefox for Android and really like the use of the sidebar to hold shortcut icons and the like. How would I go about creating a similar bar myself with the following attributes: progressively revealed as I swipe in one direction progressively hides as I swipe in the other direction can be a custom width I can dynamica...

ListView where each item is an ImageView with a radiobox and one item can be selected at a time?

I'm tearing my hair out over this. I would like a ListView where each item in the list is an ImageView. I want each item to have a radio button next to it and only one item can be selected at a time (i.e. single choice mode). This code works fine for creating a list of text box with radio buttons: ListView listView = ... String ...

Check for draw_texture

Hello! I wanna check if the draw_texture function is avaiable on the actual device, so: How can I check if this extension is supported? Thanks in advance! ...

The ADB shell says the column exists but the LogCat says otherwise ...

The sql statement is: SELECT 'customer_address'._id, 'address'.Descriptor AS Name FROM 'customer_address' INNER JOIN 'address' ON 'customer_address'.AddressID='address'._id WHERE 'customer_address'.CustomerID=4 ORDER BY Name When I examine the db using the adb sqlite shell, it reports that the schema for the address table is: CREATE T...

How to display phone call window when click on phone number text

Hi all, Im displaying contact details on a screen. I need to display phone call window to appear when user clicks on phone number in the contact details. Please let me know How i can do this Thanks in advance ...

How to group widgets in "Add widget" dialog

Hello! I have two appWidgets, now if user open "Add widget" dialog, both widgets will be visible in main list. But bundled HTC widgets are grouped by subject. For example clicking on "Calnedar" will bring another list, where user can pick desired design. Is it possible to reproduce such feature or it is some feature hardcoded to Sense ?...

re-prompt to choose default activity

is there a way to reprompt the user to choose a default activity for an intent? For example, user selects his default home apk and I want him to reconsider his choice once again. I know how to do that on 2.1 and before, but is there a way to do that now on 2.2? Famous Home Switcher, which did similar thing, does not work on 2.2 anymor...

how to know the coordinates of image when mouse over

Hi all How to get image coordinates at mouse hover position. Please let me know Thank you ...

managing wimax in android

You can manage wifi connectivity, and you can kind of manage 3G, but what about 4G, more specifically WiMAX? I saw an API on ClearWire's website, but I am not sure if Google is planning to include WiMAX as part of the SDK. Does anyone have an insight? I am looking for connect/disconnect functionality, failover connection settings, etc. ...

Options Menu Cancel Event [Android]

Beginning with a basic approach -- Options Menu. Question: What is the best way to capture a cancel (return) event? I.e. the user changes their mind and hits the back arrow. The issue is that I would like to unpause my an application thread. @Override public boolean onCreateOptionsMenu(Menu menu) { onPause(); MenuInflater infla...

Android: Passing Resource ID as an int

So I'm writing an android app, and I have an xml parser class that parses my xml files and builds me a tree I want to reuse my xml parser code for different xml files However, having problems with getXml(resourceID) not working: public class myactivity extends Activity { public void someMethod() { Xmlparser myparser = new Xml...

Record Video in a Service

Is it possible to record video in a service, that is without setting the setPreviewDisplay? I tried it on a HTC Desire, however it is throwing this info in the log, MediaRecorder Prepare Failed: -1 CameraInput No surface is available for display Is there some additional properties to be set? ...

Android - Loading an external .js file into a webview then accessing it's functions?

I have a JS file that has functions to search a document for substrings. I want to access functions inside this file by passing parameters to it (the search keyword). I know we can use .loadUrl("javascript:~~~~~) but I'm not clear on how to do it using multiple functions. Anyone who can point me in the right direction? Thanks! ...

Wizard cannot find necessary software for Dellstreak Eclipse

I am trying to run my Android applications from my Dellstreak but cannot install the proper drivers. I use many other phones to test with and know the process of finding usb drivers, but none of this is solving my problem to test on my Dellstreak. Any ideas? ...

How to display large amounts of text on Android

I want to display about one or two full screens worth of text in an Android application (like a welcome screen or help screen), and I'm trying to figure out the best way of storing that text in the app. The text does not need formatting, but line breaks and empty lines must be preserved. So far I have come up with the following alternat...