android

Android: Custom tabinterface change tab colors, tabwidget

Hi All, I have a problem with my tab style. I would like my tab style will look like this. http://www.technobuzz.net/wp-content/uploads/2010/02/seesmic-android-260-208.png Something goes wrong in my xml ... The style shows only the colors When selected (see comment). When I use a white icon is the text (text setindicator) white. This ...

How to Accsess Strings in List View

final String [] tmp = new String[]{"Android", "Google}; ArrayAdapter spinnerArrayAdapter = new ArrayAdapter(getApplicationContext(),android.R.layout.simple_expandable_list_item_1,tmp); final ListView lv = new ListView(getApplicationContext()); lv.setAdapter(spinnerArrayAdapter); lv.setOnItemClickListener(new OnItemClickListener() { pu...

Android: GUI: Using styles for various image.

I am studying how to use styles and create theme in android. Please help to implement following. I have listview displaying fixed image and variable text. I want to change the image based on theme selection. Is it possible to do that? How? I can change background and text color using following code. Styles.xml <style name="BlueLabel...

How to sell paid application from an unsupported country

Hi, I want to sell an application developed by me, but this service is not supported in my country (Romania). So I want to ask a friend of mine who lives in a country (France or US) where selling paid applications is possible to help me with this. Now I don't know exactly what to tell him about the process: What is required by his side ?...

To check wifi or 3G exist in android

Hello In my android application i am using the below code to make sure that network exists. But am receiving error at the very first line.Do i need to check any permission other than those listed. public static boolean haveInternet(Context ctx) { NetworkInfo info = (NetworkInfo) ((ConnectivityManager) ctx .getSystemService(...

sliderbar is not coming on top of other layouts

Hi, I have a releative layout which contain 2 arrows after that i kept sliding drawer.when i press on slidingdrawer its coming only upto relativelayout.it has to occupy entire screen.can anyone help me on this ...

Using a custom TTF in Android makes for really ugly text

I have an app that contains a custom view, and in it I want to use a custom font. Unfortunately, this results in really ugly text being rendered. My custom view extends Surface (and just realized: is this a bad idea), and I draw the text with the following code: // p = new Paint(); Typeface font = Typeface.createFromAsset(parent.getAss...

Creating delay between measurements

Hello! I am trying to make a set of measurements of signal strength, so i want to make a delay between same method (that return needed value) execution - value1...delay....value2....delay.... Currently i am using Thread.sleep(DELAY); Such way of creating the delay seems to work, but as I understood it makes the whole app to stop. I ha...

Which Activity will be Started when Launching App from History

There are two Activities in my application: LoginActivity and RegisterActivity. The launch mode of LoginActivity is setted to singleInstance in manifest xml. RegisterActivity use the default launch mode. Following are what I did: The italic part is what I think might happen. Launch the app, LoginActivity shows. An task is cre...

Mobile Phone AT command set emulator: proper syntax for response codes

Hello everyone, we've got some legacy hardware which connects to cell phones over Bluetooth using the DUN profile. It then issues AT commands to read SMS for monitoring purposes. Android phones do not support AT over DUN. That's why I'm writing this application. The problem is: while the legacy hardware will connect to the phone, it wi...

USB debug with eclipse

Unable to launch App in telephone device. Device is visible (ADB devices), debug USB on(in phone). In Eclipse I get the following timeout error: [2010-10-14 14:07:30 - TA] Android Launch! [2010-10-14 14:07:30 - TA] adb is running normally. [2010-10-14 14:07:30 - TA] Performing com.xxxxx.ta.TA activity launch [2010-10-14 14:08:00 - TA] U...

smack and asmack

What is the difference b\w smack and asmack.Why i am not able to use smack.jar on android whereas asmack works perfectly???when compared the source code it looks somewhat similar.where does the difference comes from?? ...

Seeking in AAC streams on Android

I'm getting an AAC stream from a HTTP server and using that as the datasource for the MediaPlayer in Android. It plays perfectly fine, but when I try to execute mediaPlayer.seekTo(int position) I get the following errors about a million times: WARN/AACDecoder(13889): AAC decoder returned error -1, substituting silence WARN/AACDecoder(13...

Android Reading Text File Line-by-Line From Res/Raw In Emulator, InvocationException On OpenRawResource

Hi everyone, I've found through research on google that that I can read a text file by storing it in my res/raw folder and then accessing it through getResources().openRawResource(R.raw.words); In a class WordHelper I the constructor provides throws an InvocationException on this line of code: istream = getResources().openRawResource...

Android Radio and Image version for HTC Developer Phone Device.

hi everyone!!! I kinda confused about the "latest" version of the Android platform vs. APIs and SDK. as far as I read in the Android web site the latest Android SDK is 2.2 I also have an HTC developer Phone, and when I go to the htc to update its firmware and Android Image (from page: http://developer.htc.com/adp.html); I found that t...

Layout in android

I want to place an ImageButton on another ImageView in android. How should I do it? ...

Change text size when selected

Is there a way to increase the text size for a TextView when selected? ...

How to read sqlite file from url

Hi all Client given me an url to download sqlite file. I written following code to read sqlite file bt im not able to read file `public void DownloadFromUrl(String sqlFileURL) { try { HttpURLConnection httpCon = null; InputStream myInput = null; URL url = new URL(sqlFileURL); long...

gethitRect() , I am doing it wrong, how does this work?

I keep getting top, bottom, left, right = 0. I guess I am doing this wrong, what is the correct way? TIA in onCreate() ImageView trash = (ImageView) findViewById(R.id.dropTarget_trash); trash.setOnTouchListener(this); Rect trashHit = new Rect(); trash.getHitRect(trashHit); Log.d(TAG,"Trash left:" + trashHit.left ...

How do I fix how my Titanium Developer app Label is rendering on a TableView?

I am having trouble getting the following code to render as I expect it to: var img = Titanium.UI.createImageView({ top: 0, left: 0, width: 140, height: 92, image: 'http://cdn.monmotors.com/tn_' + imgr, defaultImage: 'car.png' }); post_view.add(img); var lbl = Titanium.UI.createLabel({ text: desc, left: 160, width: '...