android

SlidingDrawer on top

Is there any way to set my sliding drawer on top of other elements in my layout? I have an ImageView which is intended for an album art and I would like to have a sliding drawer overlay at the bottom of that ImageView. ...

most efficeient way to play a sound when button is clicked

Right now I have two buttons. Each one needs to produce a different sound. In the future, there will probably be about 8 buttons, but for now just two. public class MyActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Button btnDrum1 = (B...

Hyperlink in Andorid

Hello... I have a question: How can I place a hyperlink WITHIN a text-block of normal text? I have some text and in the text I mention a URL and I want this URL to be in a different color, underlined and click-able. I know hyperlinks in android can be placed with "Linkify".. and i have referred android docs page Consider the same ab...

Making user-defined UI

How can I make my own UI defining my properties? ...

android device not recognised

Hi all I am trying to add my motorola milestone device into PC and debug in the device. When i put the usb cable, the device opens in data storage mode and opens the folder. But when i do a "adb devices" i dont see any device. i did the usb_driver fresh installation guide, but it returned "windows could not find a better driver than cu...

SQLite3 storing String which contains only numbers.

I have to run a very simple query like this in SQLite3. INSERT OR REPLACE INTO tblPhoneList(Phone, PeopleId, StorageType) VALUES('+91912345789', '1','1'); But whatever I do, the number is stored as 91912345789. The + prefix is ignored. The field Phone is a String. Why does it ignore the + prefix? Is there anyway to avoid this? P.S. T...

Android - Need help opening a url in the phone's default browser

I'm trying to make test-program that opens a website by pushing a button. I have made a listener and everything, my problem is just that, the url-opening-script makes an error and tells me "Uri cannot be resolved". Here's the script I use to open up an webpage: Intent browserIntent = new Intent("android.intent.action.VIEW",Uri.parse("ht...

How to change default Android desktop application?

I hear that the Android's desktop is an application that I can change. I'm searching for some information about how to do that. ...

Android file uploader with server-side php.

Hi, I've been looking for a solution to this for hours, but I can't find any. Basically, I want to upload, from my android device, files to an http website. However, I have no clue whatsoever how to do this. I'm using java on the device, and I would like to use PHP on the server-side of things. I just want to upload the files, not do an...

force close when music stops - Android

Hello, another new problem described below: When I press home button when music STILL plays, it closes correctly, but when the sound (that is five seconds long) has finished and I press home button, it gives me a force close. I have tried an else-statement; with no luck. protected void onStop() { super.onStop(); if(mp.isPlaying...

How can you reserve a name for an application?

My small startup is planning to start development of an android app in september. My CEO wants to register the name for the app beforehand. Is it possible to do so? ...

Indoor Custom Maps Application

Hello, I am currently in the research phase of my project on Android.I am interested in developing indoor custom maps application.There are 2 problems I am currently facing in this 1) I can't use GPS as it won't work in the indoor settings like a building or a mall and 2) I can't use Google Maps API as I need to show my location on a in...

Android: Add a textview to linear layout programmatically

Hi, I am trying to add TextViews to my xml-defined layout in code. I have a xml-sheet, where a lot of Views are defined. But I have to add some views in code, so a create a LinearLayout in the xml-sheet: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:id="@+id/info" a...

How to manage multiples activities under a single tab of TabActivity

Hi all, Here's the problem. In my app, I have 5 tabs which contains activities. In each of them, I have to show differents screens. For example, the main activity of a tab is a listview, and when I click on one of its item, I want to display a second screen with an other listview, that will display an other screen when the user will sel...

Race Condition in performTraversals and onConfigurationChanged results in incorrect layout?

I've got a moderately complex Android application where I'm handling rotation myself through onConfigurationChanged rather than restarting the activity. After using the device or emulator for a while (many rotations) I start to see the application laying out incorrectly intermittently (it retains it's portrait width while in landscape m...

Android Webview loading dialog not being dismissed

I am using the following code class CustomWebViewClient extends WebViewClient { Context context; ProgressDialog pd = null; public CustomWebViewClient (Context c){ context = c; } public void onPageFinshed(WebView view, String url){ pd.dismiss(); } public boolean shouldOverrideUrlLoading(f...

Extends Android APIs

I work with Eclipse and implement some applications using the Android Emulator. I'd like to know: is it possible to extend Android APIs with other .jar file? If it's possible, how can I extend the APIs? I just have to add libraries to the project or do I copy it to the $ANDROID_HOME/platforms/android-8/tools/lib ...

How sync all threads in the Android framework

I want to sync threads in the Android framework. How can I do this? ...

Android and MJPEG

Hi, I need to get the mjpeg stream from an IP camera, anyone know the right way do it? I googled a bit and I find this example http://www.anddev.org/mjpeg_on_android_anyone-t1871.html but I've been stucked when I tried to get the stream from another activity called by the main activity. Here the code: Main acitivity package com.test;...

Android: how to make keyboard enter button say "Search" and handle its click?

I can't figure this out. Some apps have a EditText (textbox) which, when you touch it and it brings up the on-screen keyboard, the keyboard has a "Search" button instead of an enter key. I want to implement this. How can I implement that Search button and detect press of the Search button? Edit: found how to implement the Search button...