android

Android: Intercept AJAX call from WebView

Hi all, I want a HTML/javascript application, running in a WebView, to make AJAX calls that are handled by the Java code. Ideal would be to just intercept the call (easy, just use shouldOverrideUrlLoading()) and 'return' some data. However, I don't find a way to 'return' a response to the WebView, other than calling a javascript functio...

Android emulator Mac OSX location

Hi guys, I am wondering where android emulator keeps all its data and itself? inside the SDK folder or somewhere else ? cheers, /Marcin ...

Showing Error !!! Android

When i try to compile and build the application, a red mark is appearing on my application,but there is no error description .. what will be the reason? ...

how to make call conferencing of two calls?

i have tried many things but not getting how to do conferencing in android. i can receive incoming call and make another outgoing call...but not able to combine those calls as "menu option merge do"... if i can take object reference of phone or call class(internal class of android) i can use conference method available theres ...

Android: String value in DateTime field??

I've accidentally inserted the string datetime() into my database (in stead of the result of the function), and never saw my mistake until i did a listing of the data. The string "datetime()" is in the date field of all the records, yet the field type is datetime! Is this normal for the sqllite that is on Android?? What's the point of f...

You Tube Buffering Problem

Hi I am new in Android.I have building my application which brief working is given below- As my application start a UDP Server Socket Activity run which wait untill any data come to the server side from client side 2.Then i press home button and then click on browser and start You Tube Video on Android emulator. When my UDP server...

Launched browser intent for DRM content immediately jumps to background

I have an app that launches a browser with a VIEW intent pointing at a URL containing DRMed content (which the browser should then download into the DrmStore). This works perfectly the first time, but on subsequent attempts to download the same file, the browser opens, pops up a dialog saying the content has previously been downloaded an...

How to detect the area of touch in open gl es in android ?

Hi.. I have designed a 3D model in .obj format and imported using min3d framework. Its a cube with different colors. I want to give a Toast with a message for a particular color when the side of that particular color is touched. How do I do this in android 1.6 ? ...

Get origin of Android Market link after install

Is there any way to get the origin of a link to an app on Android Market after the app is installed? Let's say I have three different web pages that link to the same Android Market app, can I get the origin of the link after the app is installed so I can use it for statistics and such? Any solution to this is very much appreciated! ...

Removing features from android OS

I want to customize the android OS for my specific needs.What i want to do exactly is eg:- remove the access to android market, remove contacts, calendar.etc. basically I want to have apps that I permit. Even if removing the icon is all right. ...

Network checking in android

Hi all, I want to check the network connectivity in android application.so i inserted the following code public boolean isNetworkAvailable() { Context context = getApplicationContext(); ConnectivityManager connectivity = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo[...

Android:How to change opened tab dynamically

Hi, I have an Android application which has four tabs (I use a main TabActivity with TabHost and TabSpecs). In one of my sub activity (activity opened in a tab), i need to open a tab not by clicking on the tab title and i don't know how to do this. For example, i have a button in my activity and when i click on it, it opens a different t...

get Intent from specific class or Activity because PutExtras() from Intents not resolving.

ok am having a funny problem here, scenario is like this: Intent i of Activity "B" calls Activity "A" and the method in onCreate() of Activity "A" runs; intent j of activity "B" calls Activity "A" and puts an "Int" extra which i can use to call a method in Activity "A" intent x, y and z of TabActivity "C" calls Activity "A" and puts ...

How can I tell a Content Provider where to store a file related to a record?

I understand, that I can use ContentResolver's "openOutputStream()" to get a writeable stream of a file that is automatically created for my record, if it contains a "_data" attribute. But I can't find any docs on exactly where this file will be created? Can I alter this location? I'd be better if the provider would create them on the S...

Multiple Application Icons Are Installed On Phone When Running Androids App

I am developing an android app w/ Eclipse. Whenever I run the app on my phone or the emulator, four application icons are installed on the device. I am guessing it is related to my manifest file which has three activities (3 are for tabs). When I uninstall the app, all of the icons are removed from the phone. Upon a reinstall, all fo...

Writing a mobile phone radio station app - is Javascript/HTML/CSS viable, or do we need to go native?

I want to write an app that will stream MP3s from a server to any of the three major smartphone operating systems in the US (iPhone, Blackberry, and Android). Here is the tradeoff I'm concerned with: if I write the app natively, it will make for the best user experience and give me the capability to add many more features if I want, but...

Android: Loading groupviews dynamically

Hi guys, I am trying to figure out how to load different groupviews dynamically. I am creating application that will have menu with 4 categories and each category will have several sub-menu items. I have created four LinearLayouts with sub-menu buttons inside (they are separate xml files). Now I want to display appropriate sub-menu in m...

Authentication Problem..!! ON ANDROID WITH HTTPURLCONNECTION

"Basic YWRtaW46YW RtaW4=" is right code for my address.I check on j2me project. And on android my getbase64 method returns "Basic YWRtaW46YW RtaW4=" its true. and ı use it on: httpConnection.setRequestProperty("Authorization",getBase64Encode()); Finally responce code is 401 any idea??? protected void connect() { InputStream i...

Multiple bluetooth connection

Hi I want to connect 3 device via bluetooth (My Droid must connect to 2 bluetooth devices). I 've connected my Droid to 1 device using Bluetooth chat How should I modify it for multiple bluetooth devices? Could you help me please? ...

Android's RGBToHSV method doesn't work

According to the document, android.graphics.Color has a method called RGBToHSV which can convert RGB values to HSV, this is what the document tells me: public static void RGBToHSV (int red, int green, int blue, float[] hsv) Convert RGB components to HSV. hsv[0] is Hue [0 .. 360) hsv[1] is Saturation [0...1] hsv[2] i...