android

phoneGap/Titanium developing

Hi, I was looking into PhoneGap and Titanium framework, and I did not clearly understand how to they work, let's suppose I have already developed an app for android or iphone, can I run this app on another mobile with a different OS with PhoneGap or Titanium help? Or I have to develop again my app with PhoneGap/Titanium framwork? In thi...

Simplest way to compile an autotools based shared C library for Android?

I have a cross-platform C library that I need to compile for Android as a *.so file. The library consist of many .c and .h files, and it use autotools as it's buid system. (./configure && make dep && make). Afaik, the library does not depend on other libraries, other than libc and OpenSSL (which should be present on Andriod). I'm tryin...

Setting android unlock pattern from code

I'm making an application that locks the phone down after some event. Basically it just turns off the screen and the android lock screen activates. I've set the LOCK_PATTERN_ENABLED setting in order to make sure that the lock pattern is visible when the user has to unlock the device. The problem is if the user had the lock pattern turne...

Android itemized overlay Array slowing down

Hi hi, I've got a script which gets data from a MySQL database through an http request, puts it into a json array, then puts each item into an itemized overlay array so that each item can be put onto a map. Problem is, it takes > 5 minutes to load all the items into the itemized overlay, and is then dog-slow at actually running. It sta...

Using Android Emulator to emulate a phone with Droid spec

Hello. I am trying to use the android dev emualtor to create a virtual phone with the same spec as the droid. I am using the WVGA 854 profile, High deinsity (240) and scaling the emulator screen to 3.7 inch on launch. Problem is it seems to be emulating it like it has WVGA 854 resolution but with a medium or low density screen, as the...

Android TabHost appearance not as expected

Hello , i just followed the tutorial on tabs creation from the android dev documentation and my tabs didn't turn out the way they probably should. Here is a screen on how it looks for me: and here is how it should look like: I found som threads that talks about putting localisation on the tabhost and make every activity follow the s...

how to move from question to question for a quiz app

Essentially what I will be writing is a quiz type application. Basically there will be a paragraph or so to read, with one or more choices below. There will be several criteria to decide what the next question will be, ie. If it was a hard question and get it wrong, the next is easier, or maybe less choices, etc. Where would I put the l...

android linkify without underlines

is there any way to tell linkify not to underline my links? I am already using textView.setLinkTextColor(stateList) to change the color, but i'd like to remove the underline that is there for the link. Is this even possible? ...

Android graphics , dynamic view.

I am looking for help/resource that will help me in bringing up a image as follows in android view. Image looks like x-y axis graph, with sawtooth waves along x-axis, this is a static image developed using certain tool. I need help to make a line move, parallel to y-axis (red in color) that waits at origin(0,0) and starts moving along ...

Android SDK and AVD Manager not listing SDK Platforms

I am just getting set up to do Android app dev using Eclipse 3.6 on Windows, and am following the instuctions at developer.android.com/sdk/adding-components.html. When I open the repository at http://dl-ssl.google.com/android/repository/repository.xml, only 7 packages are found: 6 are "Google APIs" and 1 is the "Usb Driver package". Th...

android emulator ==> change heapSize ???

I am trying to change the heap size of the emulator, to make sure that my app doesn't run out of memory with 16 mb available? How can i change the heap size on the emulator? I run the emulator through Eclipe. ...

How to detect power connected state?

Is there an easy way to be notified when USB or AC power is connected to an Android phone? ...

Adapter & Theme.Dialog & refreshing content [SOLVED]

Hi guys, Theres Activity A with a ListView using SimpleCursorAdapter and for each row, theres a ImageView that should be displayed, according to a column result number in SQLite. Then theres Activity B which is a Activity with the Theme.Dialog. When i open up the Activity B (via startActivityForResult) i have some items, selecting one i...

Can I resign an .apk with a different certificate than what it came with?

If I have an apk can I remove the current signing and some how resign it with a different .keystore file and still have the application install? Update: I managed to get it to work with Jorgesys' solution and where I messed up before was that I unzipped the .apk then rezipped it after removing the META-INF folder and changed the file ex...

Long press menu button (for Samsung Galaxy S i9000)

Hello, How can I intercept menu button long press, in order to launch my app ? Is there any configuration in manifest.xml able to do this ? Thank you. A.L. ...

Android local services : are they that useful ?

I don't see the point of using a local service in Android. If I want to do backgound stuff, I can create a thread and use Handlers. Creating a local service is a big headache, you have to mess with Binders, worry about the start/stop/bind/unbind lifecycle, etc. What does a local service get me that a thread doesn't ? ...

Android JUnit has no output in Eclipse JUnit view

I followed the online directions for building HelloAndroid and HelloAndroidTest in Eclipse. The test runs, the logcat shows the correct results going to stdout, but the JUnit testrunner window in Eclipse is silent - nothing. I am running the test on a Nexus One with Android 2.2 installed via OTA. I've been unable to find any mention of ...

Why is my example Android application not showing properly?

I created a new project from an example provided in the SDK, using: Eclipse IDE for Java Developers Version: Helios Release Build id: 20100617-1415 The application builds and runs successfully but doesn't show what it should be showing. This is what it is showing: screenshot of improperly shown UI ...

Question about onListItemClick in ListActivity

Hi, I have a ListActivty and I overload the onListItemClick(ListView listView, View view, int position, long id) in my List Activity. My question is why onListItemClick() not getting called back (i have breakpoint in my debugger) when I have an ImageButton in my list item view (the one view created by my list adaptor from cursor)? T...

Multithreading this sample code:

So here's some code on http://groups.google.com/group/android-developers/browse_thread/thread/16a2216b39513674 in which the poster writes that he's shortened ideas into a single threaded app. A respondent below his post says, essentially, that's great, nice work, but there are benefits to multithreading so things don't interfere with ot...