Android :: Putting Data In SMS Sent Intent?
Dec 30, 2009
I'd like to send an sms message. If the text is too long, I split it into multiple messages. I'm trying to put some extra info into the "sent" intent to know which part has been sent, and when all the parts are complete: The message is sent, and I catch the intent when each part is sent - but the intent always has the same data in it. For example, "partIndex" is always zero, even though for the second message, it should be one. Seems like the same intent just keeps getting thrown to my broadcast receiver. What's the right way to do this?
View 1 Replies
Dec 11, 2009
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.my_list);
mDbHelper = new MyDbAdapter(this);
mDbHelper.open();
fillData();
registerForContextMenu(getListView());....................
The date is actually stored as an int in the SQLLite database, and thus it displays as an integer. Does anyone know a way to create a date from the int so it doesn't display as 1216544611 (or whatever) but as "12/11/2009 11:32"?
View 2 Replies
View Related
Mar 5, 2009
Suppose I want to include data right in an intent, e.g. pass a number or string in the intent data field.What should the uri look like? Something like "data:3.14159"?Or just don't include the scheme at all, "3.14159"? In fact, is there a list of standard schemes anywhere?
View 4 Replies
View Related
Sep 10, 2009
I was just wondering if it is possible to give the intent a set of data, instead of just one. A particular scenario where this could be applicable would be a music application.You select a list of songs, and pass all these data (file path) to the Music Player's application.Another scenario: You need to plot more than one address on the Google Maps. You launch the application with a set of data for the intent.
View 5 Replies
View Related
Jun 28, 2010
I would like to create some home screen app widgets that are entry points into an application. I can put a button in the app widget that uses setOnClickPendingIntent to start the activity. The problem occurs when I want to have two of these app widgets that are entry points to different parts of the activity. I need to be able to pass data into the activity that will distinguish these. Since both app widgets use a Pending Intent that starts the same activity, the two Pending Intents are shared and I can't reliably set extras for the corresponding intents.
View 2 Replies
View Related
Aug 26, 2010
i am new in android how read the data from server using intent.
View 4 Replies
View Related
Jul 29, 2010
I'm venturing into startActivityForResult for the first time and I'm running into a problem.When a user clicks on a list item of Activity B, it returns "ql_id" to Activity A:Unfortunately, extras.getInt("ql_id") evaluates to "0". Why is this? It should be "1". I am clearly doing something incorrectly.
View 1 Replies
View Related
Nov 6, 2010
I have a server running that notifies the user with a statusbar notification that opens my main activity, how can I pass data to my activity trough that intent?
View 1 Replies
View Related
Jun 28, 2010
I want to receive a data which is passed using intent from another page.
View 1 Replies
View Related
Jul 20, 2010
How do I get data within an Android Service that was passed from an invoking Activity?
View 1 Replies
View Related
Feb 3, 2010
I want to set up a BroadcastReceiver to handle PACKAGE_REPLACED, but I only want to be notified when my package is replaced. It works fine if I specify a data tag with scheme="package" but then I get notified when any application is reinstalled or upgraded. I can't figure out how I'm supposed to specify the package name which is in the scheme specific part -- that is, when my BroadcastReceiver gets the intent in onRecieve(), if I do intent.getData().getSchemeSpecificPart(), that's the package name, but is there any way I can filter for only that in my intent-filter?
View 1 Replies
View Related
Apr 11, 2010
I have a widget that supposed to call an Activity of the main app when the user clicks on widget body. My setup works for a single widget instance but for a second instance of the same widget the PendingIntent gets reused and as result the vital information that I'm sending as extra gets overwritten for the 1st instance. So I figured that I should pass widget ID as Intent data however as soon as I add Intent#setData I would see in the log that 2 separate Intents are appropriately fired but the Activity fails to pick it up so basically Activity will not come up and nothing happens (no error or warning ether)
View 1 Replies
View Related
Nov 17, 2010
Android documents starting the email intent for sending emails with Intent.ACTION_SEND. Is there an intent which directs the user to reading his email, or which launches the default email application? The application that launches the "read mail" intent would get no access to the email data.
View 1 Replies
View Related
Feb 24, 2009
I have two classes Screen1 and Screen2 both extends activity i have to pass data from the Screen1 to Screen 2
I wrote in onCreate method of Screen1 class
CODE:............
My doubt is ,how to receive myval data in Screen2 class ,what is the code i have to add in AndroidManifest.xml file
View 6 Replies
View Related
Nov 18, 2013
I have got a problem with Intent in Android..I coded an example about Intent
Ex :Intent.ACTION_DIAL,URI.parse(phonenumber.getText( ).toString())
phonenumber is a String from EditText
But when the Emulator runned .Then, a dialog occur with message : "TestCall has stopped".TestCall is my project..I also want to get a table of ACTION and DATA of Intent.
View 2 Replies
View Related
Aug 24, 2010
I tried using the following data in my intent filter:<data android:scheme="http" android:host="an.example.i.p" android:pathPrefix="t" />.
View 1 Replies
View Related
Jul 30, 2009
I have a notification that starts my activity and passes a messages using the intent's putExtra() function. The message is then displayed to the user in the activity's onCreate function. When the application is restarted due to a orientation change, the message is shown again as it is still in the intent's bundled data.
How can I remove the extra data?
I tried the following:
Bundle bundle = getIntent().getExtras();
if (bundle.getBoolean("showMessage")) {
// ... show message that is in bundle.getString("message")
// remove message
bundle.remove("showMessage");
}
But the message will still be shown after the orientation changed, seems like the intent used is not the one I changed, but the original one. The only workaround I found is to save the showMessage additionally in onSaveInstanceState(). Is there another way? Or is this the way to go?
View 2 Replies
View Related
Feb 9, 2010
I'm still trying to figure out how best to layer views on top of other views. I want to do something like the ZoomButtons on top of a custom view. I tried getting the ZoomButtonsController's parent and then adding views, but I didn't have enough control and they ended up on top of the buttons. I've gotten close by using a FrameLayout and some gravity on the top two views. But this has some interesting effects. Since this is contained with a tab, these two top views appear on top of all four of the tab pages. I want them on top of one of those pages only. Apparently, nested FrameLayouts don't mix well. What is the proper and expected way to do this? Here is more or less my complete layout....................
View 4 Replies
View Related
Jan 29, 2009
I have gotten through signing up as an Android developer, joined Android Market, and recieved and activated my Android Developer Phone.I have my first draft application running in the emulator.The documentation suggests testing it throughly on the device, however, I don't want to put it up publicly in the Android Market until I am satisfied with the app.
1) Is there a way to privately post a testing app on Android Market? If so, would somebody please point this newbie to the HOW-TO?
2) Is there a way to push my app onto my developer phone without using Android Market? If so, would somebody please point this newbie to the HOW-TO?
I'm having more fun working with this Android stuff than I have had in years! As soon as I learn enough to contribute I'm going to be overjoyed to share it.
View 5 Replies
View Related
May 4, 2010
I have a bunch of objects that implement Serializable that I want to store in a SQL database.
I have two questions:
Is there a way to serialize the object directly into the database. Is that the best way to do it or should I Write the object out to a formatting String and put it in the database that way and then parse it back out
Write each member to the database with a field that is unique to each object.
View 3 Replies
View Related
Aug 16, 2010
Is it possible to draw a border around a textview?
View 3 Replies
View Related
Aug 25, 2010
I'm trying to create a form like dialog to accept a few EditText and a spinner. Somehow I can display the spinner but then I start implementing the array and setOnItemSelectedListener it crash. Did I do anything wrong?
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final View layout = inflater.inflate(R.layout.generate_pwd, (ViewGroup) findViewById(R.id.generate_pwd));
final AlertDialog.Builder builder = new AlertDialog.Builder(this);
Spinner spin=(Spinner)findViewById(R.id.spinner);
spin.setOnItemSelectedListener(this);
ArrayAdapter<String> pwdTypeArray = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, R.array.password_type);
pwdTypeArray.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spin.setAdapter(pwdTypeArray); builder.setView(layout);
// Now configure the AlertDialog builder.setTitle(R.string.generate_pwd_title);
View 3 Replies
View Related
Apr 13, 2010
I'm trying to pass an object from an activity to another activity. In the first activity i do:
Intent intent = new Intent(this, SecondsActivity.class); intent.putExtra("package.class", SerializableObject);
And in the second activity:
Class object = (Class) extras.getSerializable("package.class"); objetc.modifySomething(2432);
Intent intent = new Intent(this, ThirdActivity.class); intent.putExtra("package.class", SerializableObject);
But if i modify the object in the second activity, it fails when i send this object to a third activity.Why does it fail? What am i doing wrong? I just need to pass objects between diferent activities because i have an object which contains many information, and creating a Boundle would be very big and ugly in my code.
View 3 Replies
View Related
Jun 21, 2010
When I add a new contact to my phone it doesn't show up in the contacts list. When I dial the number manually it shows the name of the person I am calling or that I added. Where is it putting my new contacts? Is there a group setting somewhere I missed?
I also noticed that all my numbers that were brought over from my old phone are listed twice when I go to edit a contact. They are only listed once when I look up a contact but under edit there are two screens with the same info.
View 1 Replies
View Related
Nov 24, 2010
We are planning on this strategy to distribute our application to clients. We would like to get your your thoughts, if you have done something similar, in terms of whether we are missing something. We have tested this approach and it works.We want to distribute our application to our clients without putting it on the market as we do not want every one to download it. We want our clients to be able to easily get future upgrades to the application. Here is how we are planning to do this:
1. export the apk file using the Eclipse wizard.
2. put this apk file on a website. The user will be able to go to this website on the browser on the phone and install the 1st version of the app.
3. next versions of the app will have an incremented android:versionCode, and android:versionName in the manifest. A button in the settings will point to a link which will have the next version of the app. So to upgrade the user will click on this settings button and download the next version and click on the apk file to replace the old version.All subsequent versions of the app will be signed by the same certificate using the export wizard in Eclipse
View 2 Replies
View Related
May 23, 2009
My app seldom needs to put the device (or screen) to sleep. That is - programmatically imitate user pressing on red stop-call button. According to docs PowerManager.goToSleep() does just that, but requires android.permission.DEVICE_POWER, which is never granted to apps!
(A) What on earth should I do to get this working?
(B) How can I programmatically wake up the device.
just to clarify - I'm not interested in a wake lock solution.
View 2 Replies
View Related
Jan 24, 2009
I have a layout file with 6 image buttons.Each button should show different source image based selection/focus/noselection.I am able to do this with 6 xml files under drawable folder with selector/item nodes.Is there a way to put all these selectior nodes in ONE xml file to accomplish the same.Less files means less management.
View 2 Replies
View Related
Apr 15, 2010
When I put the setContentView in thread as below, it crashes while running in emulator. code...
View 2 Replies
View Related
Mar 9, 2010
Okay, i love my Hero to bits and have been messing about with putting shortcuts here and there on my screen and i was just wondering, like on a pc desktop u can right click and change the name of a folder but can u do it on the hero? I don't like the word 'Handcen..' underneath my text icon, can u simply change it to 'SMS' or something?
View 3 Replies
View Related
Dec 27, 2009
I tried putting a lot of music on my Droid (>5k worth of tracks).
I can browse the music my album, artist, and track just fine.
But I cannot search.
When I try to search the Music app just hangs.
View 5 Replies
View Related