Showing posts with label android-intent. Show all posts
Showing posts with label android-intent. Show all posts

Friday, June 8, 2012

Using Intent in an Android application to show another activity


In my Android application, I have two activity classes. I have a button on the first one and I want to show the second when it is clicked, but I get an error. Here are the classes:

Sunday, June 3, 2012

Sunday, April 22, 2012

Android Notification intent to clear it self


I have read many examples of how to create notification messages. What i wanted to achieve, is because the notification will be executed by a widget, i would like the notification intent when clicked to clear it self when the user clicks on it.I do not have an activity to return to. The notification for my purposes will just plainly notify, nothing else. So what would be the code of an intent that just clear/cancel itself. The code below is an activity launched by a button(button code not included) the notification will be fired up by a background service.

Sunday, April 8, 2012

install / uninstall APKs programmatically (PackageManager vs Intents)


My application installs other applications, and it needs to keep track of what applications it has installed. Of course, this could be achieved by simply keeping a list of installed applications. But this should not be necessary! It should be the responsibility of the PackageManager to maintain the installedBy(a, b) relationship. In fact, according to the API it is:

Intent for selecting wallpaper with wallpaper region highlighting


I would like to know if it's possible to create an Intent that makes the gallery cropper show wallpaper highlighting. This feature has been introduced in Honeycomb. To get an idea of what I'm looking for have a look at the tablet on the image (the three blue rectangles).

Monday, March 5, 2012

How I can install apk automatically when the sdcard put on?


I have not any idea. How can I install apk automatically when the sdcard put on?

How I can install apk automatically when the sdcard put on?


I have not any idea. How can I install apk automatically when the sdcard put on?

SQLlite Android. Managing data


Hi friends. I'll tell you the aim of this part of my app. I've got a SQLite dB which has 3 columns. First is "Quantity", Second is "Product" and third is "Price". Well, what i want to do is to get the whole dB and send it by email. This is what i have right now:

SQLlite Android. Managing data


Hi friends. I'll tell you the aim of this part of my app. I've got a SQLite dB which has 3 columns. First is "Quantity", Second is "Product" and third is "Price". Well, what i want to do is to get the whole dB and send it by email. This is what i have right now:

Thursday, March 1, 2012

Show frame before capturing image for android app


I want to show human posture/any other shape as a frame when we on the mobile camera and set the preview in that frame before capturing it.I want this to implement in my android app??Please can anyone help me out?

Android app crashes on load - classNotFoundException


This has been driving me mad for a couple of days :)

Wednesday, February 29, 2012

I want to refer checkbox in another activity in android


In my application i am having checkboxes in first activity that i want to refer on second activity with its state information whether it is checked or unchecked . is there any way to do this plz explain in detail with example . Thank you.

My Program stops after 2nd intent in android


My android application stops after startActivity () call of my 2nd intent. It works perfectly for the first time with intents. But on the 2nd time its control doesn't pass to 3rd activity. I haven't displayed anything on 2nd activity. Is it the problem? Or is something with my AndroidManifest.xml file? Can some one help me? I have added the intent filter of three activities as shown below.Is it the problem? I am new to android so please help me!

Tuesday, January 17, 2012

How to retrieve sms date field in android


I'm new to Android programming and I was writing some test code to retrieve all the sms messages in the inbox using an sms intent. The code I wrote is as follows:

How to put more than pending intent /actions in one notification?


I want to display a custom notification. The notification will have a little refresh button on its right side. When a user clicks that button, notification is updated to newer information. And if a user clicks at any other place, then the actual pending intent gets fired.

Android - TabHost


I have a tabhost implemented with three tabs and are functioning. What I wanted to know if there is any way back when to click the same tab is selected, it returns to its initial state (like a reset)?