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...
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...
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://<mywebsite>/m".
I use uri intent to launch the browser in onCreate function.
public void onCreate(...)
{
....
startActivity(new Intent(Intent.ACTION_VIEW, new Uri(http://<mywebsi...
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...
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 (...
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...
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 ...
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...
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????
<...
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);
...
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...
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
...
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...
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...
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...
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...
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...
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...
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...
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.
...