Android :: Receiving Passed Data Using Intent

Jun 28, 2010

I want to receive a data which is passed using intent from another page.

Android :: Receiving passed data using intent


Android :: Determining Who Passed An Intent To You

Aug 18, 2009

I was wondering if there is a way to determine who passed an intent to my application. For example, I have a service, that I want to act differently depending on who passed the intent (for security reasons). I'm trying to sandbox each calling application, so they only have access to their data stored in my application.

For it to be secure, I cannot trust any application to be truthful about the identifying data it is passing into my service. Therefore, I need some system way of identifying who sent the intent in a way that the calling application cannot change that information. I don't know if it is possible, but I can't find anything in the Intent class, and I was wondering if there may be another structure which does what I want it to. If it is not possible, I would like to get some type of mechanism to do this in the roadmap.

View 13 Replies View Related

Android : Use Data Passed From Parent Activity In A Sub?

Jun 28, 2010

When we want to pass data from an activity to a sub activity we use the is there any event handler that handles this?

View 1 Replies View Related

Android :: Sending / Receiving Custom Broadcast Intent

Jul 25, 2009

I'm building a service that sends a broadcast intent when some value changes. The service sends the broadcast like this:

Intent broadcastIntent = new Intent(); broadcastIntent.setAction("nl.vu.contextframework.NEWREADING"); broadcastIntent.setData(Uri.parse("context://"+cer.getKey())); broadcastIntent.putExtra("reading",cer); broadcastIntent.addCategory("nl.vu.contextframework.CONTEXT"); sendBroadcast(broadcastIntent);

In some Activity (in a different process), I'm tryint to receive this broadcast as follows:

IntentFilter intentFilter = new IntentFilter();
intentFilter.addDataScheme("context");
intentFilter.addCategory(CATEGORY_CONTEXT);
registerReceiver(new BroadcastReceiver() {
public void onReceive(Context context, Intent intent) {
Log.d(TAG,"Received intent "+intent); }
}, intentFilter);

View 6 Replies View Related

Android :: Android Market Place Crashes On Receiving Intent For An Application That Doesn't Exists In Marketplace

Mar 25, 2010

I am creating an application that checks the installation of a package and exits after launching the market-place with its id.

When I try to launch market place with id of an application say com.mybrowser.android by throwing an intent android.intent.action.VIEW with url: market://details?id=com.mybrowser.android, the market place application does launches but crashes after launch.

The application com.mybrowser.android doesn't exist on the market- place.

MyApplication is my application.

CODE:....................

However, when I try to launch the market place for a package that exists in the market place say com.opera.mini.android, everything works. Here is the log of this case:

CODE:.....................

View 6 Replies View Related

Android :: Android App Should NOT Launch On Receiving Intent / Restrict It?

Aug 26, 2010

I have written an Android Application and the generated .APK file I uploaded in Android Market. So, a User can download that apk and install in his device.How can I restrict my apk to launch , if he calls from other application through Intent. That means my application should not respond to any intents from other outside Applications.

Is there any possible way to restrict my application's launch from intents from other application.?

View 1 Replies View Related

Android :: Receiving Data SMS In 1.0?

Mar 25, 2009

I can confirm that joe.scheidegger information about data SMS does work on device. However, the port specified on the receiver does not seem to matter.

View 2 Replies View Related

Android :: Sending / Receiving Data Using StartActivityForResult

Apr 21, 2009

Ok, I have 2 Activities I want to send data between activity A and B.My problem is that some random code of mine seems to be called between startActivityForResult() and onActivityResult()in Activity A.This doesn't make any sense because there is no code after startActivityForResult() is called.Shouldn't onActivityResult() be the first thing A does after B finishes?

View 2 Replies View Related

Android :: Sending And Receiving Data Messages Via A BroadcastReceiver

Feb 15, 2009

Is there already functionality similar to the push registry or wireless messaging API in J2ME implemented in Android? Or at least plans to do so?I have been looking at this issue for a while, because in a corporate environment it is essential to be able to push information out, or trigger actions via SMS or other connections.I have successfully sent an SMS between emulator instances, and successfully received an SMS by using a BroadcastReceiver on another emulator instance. I have also been able to use SmsManager. sendDataMessage to send a data message to a port on another emulator instance, but in this case the BroadcastReceiver is never triggered. This seems to be the closest the API's get to what I'm looking for.

View 3 Replies View Related

Android :: Trying To Start A Thread Dedicated To Sending And Receiving Data

Apr 8, 2010

I have a main class activity that does the task of sending control to other activities on click of a button. I am also starting a thread in the main class. This thread basically sets up a connection with the server and is active throughout the lifetime of the application.I have two functions in the thread class, send and receive data from server.Therefore, when the other activities need to send/receive data from server, they use those particular functions.First of all please let me know if what I am trying to do is fine as per the architecture of the operating system. If its fine, when I try to run the code, the app crashes and i see a NullPointerException and a RuntimeException in the DDMS log.Could some one please help me out in this or suggest a better way to implement the concept.Also, please be assured that, the other functionality of the code works perfectly fine.

View 15 Replies View Related

Android :: Sending Data To HTTP Servlet And Receiving String

Dec 30, 2009

This is the servlet code in java ME.

protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
ArrayList<String> listName = new ArrayList<String>();
ArrayList<Integer> listLongitude = new ArrayList<Integer>();
ArrayList<Integer> listLatitude = new ArrayList<Integer>();
String sLongitude = (String) request.getParameter("x");
String sLatitude = (String) request.getParameter("y");
String path, list, scount; Integer numLong = null;
Integer numLati = null; Connection con = null; String slanje = "";
int limitLeft, limitRight, limitUp, limitDown, icount = 0;
if (sLongitude != null && sLatitude != null) {
try { numLong = Integer.valueOf(sLongitude);
numLati = Integer.valueOf(sLatitude); } catch(Exception ex) {}
} try{ Class.forName("org.apache.derby.jdbc.ClientDriver");
con = DriverManager.getConnection("jdbc:derby://localhost:1527/bazaprojekt", "projekt2009", "midlet"); limitLeft = numLong - 8; limitRight = numLong + 8; limitUp = numLati + 8; ...

How do I send x and y to servlet and receive some string in Android?

View 2 Replies View Related

Android :: What Would An Intent URI Look Like For Numeric Data?

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

Android :: Multiple Data For An Intent

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

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 View Related

Android :: Passing Data With Pending Intent

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

Android :: How To Read Data From Server Using Intent?

Aug 26, 2010

i am new in android how read the data from server using intent.

View 4 Replies View Related

Android :: OnActivityResult Intent Data Not Correct

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

Android :: Use An Intent To Send Data To My Activity

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

HTC Desire HD :: Receiving SMS Overseas / Data Roaming Off

Nov 16, 2010

I hope someone can help me with this, since searching has not yielded any help. I am overseas with my DHD and continue to receive SMS messages even though I turned data roaming off. I know I am being charged for this and now I am too afraid of turning the phone back on. I just want to use it for wireless and downloading some new apps, without phone calls or messaging.

View 2 Replies View Related

HTC Desire Z :: Receiving Or Sending Any Data Through Wifi

Nov 29, 2010

i recently bought a HTC Desire Z and when i broguht it home, i hooked it up to my wireless n router with MAC filtering and I believe WPA security. it was working fine until around sunday. it said i was connected to my network but i was not recieving or sending any data.

View 3 Replies View Related

General :: Receiving Picture Messages With No Data

Apr 23, 2013

so my phone battery is terrible, so i have an app that shuts off the network in certain situations.. my question is this: i know that when the network is off, i am not capable of receiving pix. but when the network comes back, will i eventually get the pictures i was sent? ive heard of some ppl getting my pix hours after i send them, so i hope i should at least get the pics.. if so, is there a way to speed up the process?

View 2 Replies View Related

Android :: Pass Data From Activity To Service Using An Intent

Jul 20, 2010

How do I get data within an Android Service that was passed from an invoking Activity?

View 1 Replies View Related

General :: HTC One - 3rd Party Apps Not Receiving Data Connection

Feb 25, 2014

I have a Sprint HTC One. I recently flashed a new ROM. VENOM 5.0 which supports my PDA.

So, after installing it I downloaded all the required apps and they worked fine.

Later the next morning when I switched on my data connection, all the apps ran on data and everything went on well. Then I installed Root Firewall PRO and set all my required settings, after that none of the third party apps didn't receive any data connection. Neither Whatsapp nor Facebook Messenger received data. Even though they are only messaging apps, they also did not receive any Data Connection.

View 3 Replies View Related

Android :: Specify Scheme Specific Part In Data Tag For An Intent-filter?

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

Android :: Adding Data To Intent Fails To Load Activity

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

Android :: Read Mail Intent With Access To Email Data?

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

Android :: Intent - Receive Myval Data In Screen2 Class?

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

Sony Ericsson Xperia X10 :: How Much Data Phone Is Receiving / Sending

Apr 19, 2010

I got the phone last week and very disappointed with low sound volume but seems I am not alone....anyway that's not my question.I am interested in how much my 3G connection is active and how much data my phone is receiving/sending. I installed the 3G Watchdog app and for example this morning with browsing BBC website with NO downloads etc it is showing 4.76MB data alone (3.96MB received and 838KB transmitted). My 3G connection is almost always flashing with the arrows showing data transfer but what is it?!

Facebook has all updates off
Email is synced hourly
Moxier calendar daily

I seem to have a "background" data transfer of 3MB/day and this is without any browsing etc...what is going on?!

View 12 Replies View Related

HTC Legend : GPRS - H For HPSA Was In Status Bar - Occasionally Sending And Receiving Data

Sep 5, 2010

I usually have the Mobile network turned off, to save the battery but mostly because I don't want to use my limited data allotment.

Today I was out about 60 miles away from home; I had a decent cellular connection, no Wi-Fi because I was out of range and no data because it was turned off...or so I thought.

Without me turning anything on There it was the "H" for HPSA was in the status bar; occasionally sending and receiving data.

I did use the GPS for a while and I would have thought that if it needed a data connection a warning would have popped up.

I tried the obvious, turning on and off the Mobile network, but the "H" remained.

One back in the city the "H" remained, the only way to reset my phone was to reboot.

View 6 Replies View Related

General :: Rooted Galaxy S III - Not Receiving Voice Calls When Data Turn On

Feb 16, 2013

I have a Tmobile rooted Samsung Galaxy S III, I was running a nightly Cyanogenmod 10 ROM. Yesterday there was an update for that rom and I downloaded it and installed it, everything was fine and running smoothly until some people started telling me that they were not able to reach me by phone. I tried checking what was wrong and I finally realized that whenever I have my mobile data on or while I am using it I don't receive voice calls. I tried looking everywhere for a way to fix this and I came across the ##DATA# code in which I could turn off the DDTM option but unfortunately my phone doesn't recognize that code.

this is the message I get every time I try to enter ##3282# code.

I thought that maybe something was wrong with the ROM itself so i decided to browse around here for one for my Tmobile samsung galaxy S 3 and I decided to install this one [ROM][4.2.2][RC1] LiquidSmooth ROMs - d2tmo - 2|14|13

after wiping data/cache and dalvik cache I installed this ROM and this is my current phone info and still when I am using my mobile data I cant receive calls nor put the ##DATA# code to turn off DDTM.

is there any other way I could access that DDTM option?

Another thing I realized is that even tho I did the factory reset, wipe dalvik cache and data cache on recovery mode my phone still says it only has 4gb free on its internal memory, isn't it supposed to be completely free after wiping all that stuff?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved