intent

How to get "all" (or the MAIN/LAUNCHER) android intent

Hey, i want receive all start app intents (i think MAIN/LAUNCHER, see below) to log how often i used the application. So i do not want create an activity... I tried several receiver blocks, but for now nothing works: with, without priority, only the action, both, only the category and so on.. <receiver android:name=".Receiver" android...

Launching Intent.ACTION_VIEW intent not working on saved image file

First of all let me say that this questions is slightly connected to another question by me. Actually it was created because of that. I have the following code to write a bitmap downloaded from the net to a file in the sd card: // Get image from url URL u = new URL(url); HttpGet httpRequest = new HttpGet(u.toURI()); HttpClient httpclie...

Create web page launcher, losing focus

I have created a php webpage. I now want to create a launcher application in android phone, it simply opens the browser with the url "http://&lt;mywebsite&gt;/m". I use uri intent to launch the browser in onCreate function. public void onCreate(...) { .... startActivity(new Intent(Intent.ACTION_VIEW, new Uri(http://&lt;mywebsi...

Android: Is there a universal way to send the MMS on any android devices?

This code works on the plain google devices with native android system. But there is no MMS app in the list on htc sense devices and I don't know about Motorola Blur etc.: final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType("image/png"); emailIntent.putExtra(Intent.EXTRA_STREAM, uri...

startActivityForResult to an activity that only displays a progressdialog

I'm trying to make an activity that is asked for some result. This result is normally returned instantly (in the onCreate), however, sometimes it is nesesary to wait for some internet-content to download which causes the "loader"-activity to show. What I want is that the loader-activity don't display anything more than a progressdialog (...

How do I get the value of the item selected in ListView?

I thought I could use the position int, but when I click on the item in the list view, nothing happens. Please help! ListView d = (ListView) findViewById(R.id.apo); ArrayAdapter adapt = ArrayAdapter.createFromResource(this, R.array.algebra, android.R.layout.simple_list_item_1); d.setAdapter(adapt); d.setOnItemClickListener(new OnIt...

Start application when Content provider is changed.

Hi. I want my application to start when someone modifies a content provider. A setting to be specific. The settings framework calls "notify" when a value is set. If my app was started I would use registerContentObserver() I guess, but is is not started. Can define some intent-filter in my manifest that wakes up my application. A back ...

start sms Activity @ ConversarionList.class from my own app.

I've done my research and found plenty of people launching the sms application from an intent, The thing is that people usually tend to do this only for outgoing messages. I'm currently displaying a Unread Sms Count on my app, but it seams I cant get the proper intent to work. On every try I get the same result, It launches the app but...

How to get the file name from the intent?

This is my manifest file. After using intent filter i download the ics file from the mail attachment. When i open the downloaded file it start my application. I need to get the file name and data of the selected file in my application. What should i do in the manifest and the java file. I am very new to android can any one help me???? <...

working with android intents how to pass arguments between father and the intent h in

Assuming i want to open another activity from my current activity and i want to pass arguments such as in my case difficulty level how do I do it? newGameButton.setOnClickListener(new OnClickListener() { public void onClick(View view) { Intent i = new Intent(countryCityGameMenu.this,GameScreen.class); ...

Submit form with POST data in Android app

I've been searching the web for a way to do this for about a week now, and I just can't seem to figure it out. I'm trying to implement an app that my college can use to allow users to log in to various services on the campus with ease. The way it works currently is they go to an online portal, select which service they want, fill in the...

Android: Sending an Intent to Browser to open specific URL

Hi guys, I'm just wondering how to fire up an Intent to the phone's browser to Open an specific URL and display it. Can someone please give a hint? Is there also a way to pass coords directly to google maps to display? greetz, poeschlorn ...

Display HttpResponse (string from Handler) in new WebView

I have the following code in a form's submit button onClickListener: String action, user, pwd, user_field, pwd_field; action = "theURL"; user_field = "id"; pwd_field = "pw"; user = "username"; pwd = "password!!"; List<NameValuePair> myList = new ArrayList<NameValuePair>(); myLis...

Should Android services be completely independent of an application?

We currently have an application that starts its own background services to manage syncing of data and downloads of files/images. We want to automate some of those services and we have a difference of opinion on what the best way forward is. I contend that having services completely separate and driven through intents is a better way to...

How can I set an intent's class from a string value?

I am trying to set the class for an intent to the address listed in a string value, so that I can launch a given activity. The string is composed dynamically during runtime. Is there anyway to make something like the code below run: String target=com.test.activity1.class; Intent intent=new intent(); intent.setClass(this, target); Th...

How do you debug an Android IntentService?

I'm using Eclipse and have an emulator running Android 2.1 and my IntentService. I'd like to step through my onHandleIntent() overridden function. I've put in a breakpoint on the first statement of the function, which is Context context = getBaseContext();. When the intent is called the program just fails and does not go to debug view...

PendingIntent sent from a notication.

Hi, What im trying to accomplish is to send a notification through the notification manager that once clicked will do something in the application only if its currently running. i have tried to use: notification.contentIntent = PendingIntent.getActivity(this, nNotificationCounter, Someintent, PendingIntent.FLAG_NO_CREATE) Which allway...

ScrollBall press events while screen is off on an Android device.

I'm writing a quick music player for myself on my Nexus One and really want to add the feature of being able to switch to the next song without removing it from it's case, ie. by pressing the scrollball through the sleeve. I've scoured many resources and... Haven't found a decently easy way to listen to key press events while the scr...

Launch app with URL

Hello everyone! I've read about intents in android but here goes my question. I'd like to launch an app on my android phone with the click of a link in the web browser. Example: If the link is "mycam://http://camcorder.com", "mycam://" acts as some kind of "tag" to launch my app but I'd like to pass "http://camcorder.com" as a string to...

How insert the contact info on the existing contact in Android 1.6?

Hi folks, I have name, phone number and E-mail infomation of a contact. I just want to insert the additional email and phone for the existing contact. My questions are How to find the contact is already existing or not? How to insert the values on the additional or secondary address option? Thanks in Advance. ...