Android :: SMS BroadcastReceiver Conflict With GPS LOCATION_SERVICE

Mar 1, 2009

SMS BroadcastReceiver conflict with GPS LOCATION_SERVICE.

Code is here:

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

Android :: SMS BroadcastReceiver conflict with GPS LOCATION_SERVICE


Android :: Cannot Stop LOCATION_SERVICE

Sep 23, 2010

I have a simple application that uses the Android system service LOCATION_SERVICE. On app close I need the service to stop. I have searched hard and long for how to do this but I must not be looking for the right thing. Does anybody know how to stop this service?

Here is what I'm doing.

CODE:.......

The LocationManager class does not seem to have any methods to stop the service. That's where I thought you would be able to close or stop it.

View 1 Replies View Related

Android :: Resource In Conflict

Sep 4, 2010

My application has resource conflict problem. Did some investigation, seems like all the resources within the apk file are cached after they are loaded on demand. The cache is stored in Resources.java mDrawableCache. The key to retrieve the drawable from this cache is combining the data and assertCookie fields of TypedValue class. In my application, there are 2 resources, ex. a color background and image drawable, evaluated to the SAME key value.. So just wondering, how can it happen?BTW, I am using eclair SDK.

View 2 Replies View Related

Android :: AllowTaskReparenting And FLAG_ACTIVITY_CLEAR_TOP Conflict

Dec 14, 2009

I am using Android 2.0 and have the following situation:

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

This activity belongs to a task that has a service running and is usually not killed, so even when I am in the home screen I see the task running on DDMS (I will call it Task A).

It is possible to start Activity A from another application (running on Task B). When it is launched, I assume Activity A is "reparented" to the Task A. I assume that, because the debugger stops on the breakpoint I have set on onCreate and I am debugging Task A only. Please, advise if this is not correct.

So at this point, as far as I can tell, Task A has only Activity A. When in this situation, the service running on Task A receives some event and puts a notification on the Notification bar. This notification, if clicked, will send an Intent that also starts Activity A (this Intent has flags FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_CLEAR_TOP).

Now to the problem, what I expected is that, because of the CLEAR_TOP flag, Activity A would be destroyed and recreated, as it has standard launch mode. But what I observe is that another Activity A launches on top of the previous one. When I click BACK on the new instance of Activity A, the old instance is redisplayed, what for my use case is wrong. Note that this only happens when launching Activity A from another application. If I launch it from my application and click on the event on the notification bar, it is destroyed and relaunched.

View 2 Replies View Related

Android :: APK Installation Fails / Package Conflict

Mar 24, 2009

I'm testing an app I'm developing and asked a friend to install on their device. I wanted to make it as easy as possible for them to help me out so I put the .apk up on my website for them to download to the phone (rather than making them download the SDK and use adb to install). The install of the downloaded .apk fails, complaining of a package conflict.

I have since gotten my hands on the phone briefly and I verified that:
* they have selected "allow unsigned apps" in settings
* there is no package with the same (or similar) name in data/data * installing via adb works with not a peep
* when I download the .apk to my phone the app installs fine.
It would be really nice to make it as easy as possible to distribute to people who might be willing to do me the favor of testing.

View 3 Replies View Related

Android :: Do Locale / Power Manager Conflict?

Mar 6, 2009

I just downloaded Locale and have the free Power Manager. My question is, do they conflict on settings, and do I have to disable one to get the other to work correctly?

View 4 Replies View Related

Android :: HTC Hero / Vista Sync - Settings Conflict?

Nov 5, 2009

After 3 install/uninstall/install attempts my phone is syncing with my vista laptop, but the my outlook 2007 calendar and contact information only goes one way, from the laptop to the phone. I can't find the settings (conflict?) that will allow the two devices to swap info.?

View 1 Replies View Related

Nexus :: Conflict Free Phones?

Mar 1, 2010

I saw some report on the metals that are used in all cell phones and are fueling the conflict in Congo.

View 4 Replies View Related

HTC EVO 4G :: Pandora / Google Maps Conflict?

Jul 24, 2010

I was listening to Pandora and decided to open up Google maps (In the car). And I noticed that in Gmaps it wouldn't give me an accurate reading and by accurate meaning when it says "accurate to 3 meters". It would say "accurate to 1000 meters" or to 1200 w/e. So i closed Pandora and opened Gmaps and right away it gave me an accurate reading of 3 meters.

So I believe you cant run Gmaps accurately if you're listening to music on Pandora? Or is it just my phone? Try this and let me know what u get.

View 3 Replies View Related

Motorola Droid X :: Conflict Between LauncherPro And WidgetLocker?

Aug 15, 2010

Today I rebooted my phone and LauncherPro got stuck starting, only displaying a window in the top left corner, like it couldn't finish rendering the preview screen, and it never starts on that anyway. I was totally stuck without access to the menu buttons but still had the notification for WidgetLocker, so I was able to get to that, unlock it, restart the Moto launcher, and disable WidgetLocker. Now that it's disabled, I seem to be able to make LauncherPro my home again, but it looks like I'll have to disable WidgetLocker, which I really liked.Not sure what else could be causing the problem - probably something to do with WidgetLocker's home launcher sub-app.

View 11 Replies View Related

HTC EVO 4G :: Latest OTA Resolve Bluetooth Wi-Fi Conflict Issue

Jun 30, 2010

For the people who HAD the blue tooth issue where you get random dropouts of blue tooth when Wi-Fi is on, did the latest update fix this?

If you never had a blue tooth issue, that's awesome and I'm happy for you! But please don't clutter up this thread with "no problems" comments.

View 1 Replies View Related

Motorola Droid X : Overclocking Apps / Should Remove One So They Do Not Conflict?

Nov 21, 2010

Sorry for a new thread but I was afraid my question would not be seen because of the size and age of the other thread. I was using the DX/D2 overclocking app and decided to download the Droid X/2 overclock so now I have 2 overclocking apps. Should I remove one so they do not conflict?

View 1 Replies View Related

HTC Desire :: Contacts Icon / Photo Conflict / Phone Vs FaceBook

Jun 13, 2010

i've just upgraded to the Desire & am liking many things in it, but this issue bugs me:i've synced & linked the contacts in my 'people' app. in some cases, this involved linking the FaceBook profile of a person with a pre-exisitng phone number in my phone/sim card.The problem is that the phone seems to default to the Facebook 'profile picture' as the icon/photo that shows up in my People app (for that contact), even if tell it not to.I've tried downloading new pics, or taking a photo with the camera, and then manually setting this as the 'icon' for a certain person. This works for a while (a few hours?) and then within one day, the phone automatically re-sets this icon & replaces it with the Facebook profile pic. again.

View 17 Replies View Related

General :: Contact Pic Resolution JB / ICS - Conflict 2 Devices And 1 Google Account

Sep 12, 2012

I've got a smartphone running Jelly Bean. As I like the gmail contact photos very much, I was happy that one new feature of Jelly Bean is the fact that the contact photos are synced with Google servers in hi-res (720x720). I spent a good deal of time replacing the awful downsized pictures with new hi-res pictures. They sync in 720px, everything fine, so far.

Where my problem begins: Within the next days I expect the arrival of my new tablet. It's a low budget one (Arnova 10b G3) which runs Ice Cream Sandwich and which maybe won't ever get a Jelly Bean firmware.

I'm in a conflict now: On the one hand, I'd like to use the tablet with my Google account and not create a dummy account or something like that. This would spoil much of the usability of the account. On the other hand, I don't want to destroy my hi-res contact pics because one Google sync under ICS would downsize them forever and I guess they would again sync downsized to my Jelly Bean phone.

Is there maybe a hack that prevents Google from syncing the contact pictures? In this case, I could use the Google account on the ICS tablet just without contact pics. The downsized pics are rubbish anyways if one's display has a proper resolution.

Or, can one prevent Google from syncing the contacts after setting up the account? I know that the contact sync can be unchecked in the settings but as far as I know, that doesn't prevent the initial sync.

View 1 Replies View Related

Android :: Android - Avoiding Conflict Of Setting Text Field Values

Nov 17, 2010

I'm writing an Android application that allows a user to maintain a list of products. In the EnterProductData activity, the user can enter information about the product into form fields, which will then save the info to a SQLite DB. The EnterProductData activity also allows the user to initiate a barcode scan via the Barcode Scanner app in order to capture the UPC code. The problem I'm facing is trying to set the value of the UPC text field in onActivityResult() once the barcode scan activity is complete and returns the value.

What is ending up happening is my onResume() method is calling a function (populateFields()) that sets the values of the text fields to whatever is currently saved in the DB. And this seems to be happening after onActivityResult() is called. This means the scanned UPC is set as the text field value, only for an empty value to be set to it immediately after. The line of code to blame is commented with asterisks next to it. I imagine that if I immediately save the scanned UPC to the DB in the onActivityResult() method, I can avoid this problem, but that doesn't seem to be the best practice, in my opinion. Can someone advise me on what I should do?

EnterProductData.java
public class EnterProductData extends Activity {
private Button mScanButton;
private EditText mUPC;
private Button mSaveButton;
private Long mRowId;
private DbAdapter mDbHelper;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mDbHelper = new DbAdapter(this);
mDbHelper.open();
setContentView(R.layout.enter_product_data);
mUPC = (EditText) findViewById(R.id.UPC);
mScanButton = (Button) findViewById(R.id.scanButton);
mSaveButton = (Button) findViewById(R.id.saveButton);

mRowId = (savedInstanceState == null) ? null :
(Long) savedInstanceState.getSerializable(DbAdapter.KEY_PRODUCT_ROWID);
if (mRowId == null) {
Bundle extras = getIntent().getExtras();
mRowId = extras != null ? extras.getLong(DbAdapter.KEY_PRODUCT_ROWID): null;}
populateFields();
mScanButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
IntentIntegrator.initiateScan(EnterProductData.this);}});
mSaveButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
setResult(RESULT_OK);
finish();}});
}private void populateFields() {
if (mRowId != null) {
Cursor product = mDbHelper.fetchProduct(mRowId);
startManagingCursor(product);
mUPC.setText(product.getString(
product.getColumnIndexOrThrow(DbAdapter.KEY_UPC))); //******}
}@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
saveState();
outState.putSerializable(DbAdapter.KEY_PRODUCT_ROWID, mRowId);
}@Override
protected void onPause() {
super.onPause();
saveState();
}@Override
protected void onResume() {
super.onResume();
populateFields();
}private void saveState() {String upc= mUPC.getText().toString();
if (mRowId == null) {
long id = mDbHelper.createProduct(mRowId, UPC);
if (id > 0) mRowId = id;
}} else {mDbHelper.updateProduct(mRowId, UPC);
}}protected void onActivityResult(int requestCode, int resultCode, Intent data) {
switch(requestCode) {
case IntentIntegrator.REQUEST_CODE: {
if (resultCode != RESULT_CANCELED) {
IntentResult scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);
if (scanResult != null) {
String upc = scanResult.getContents();
mUPC.setText(upc);
}}break;
}}}}

View 1 Replies View Related

Motorola Droid : Does Spare Parts 'Task Management Conflict At All With AutoKiller

Jun 4, 2010

I notice that Spare Parts came with a Task Management option. I was wondering if anyone has seen a conflict between using Spare Parts and AutoKiller which seems to have the same job except with more features?

View 11 Replies View Related

Android :: SMS Using BroadcastReceiver

Mar 5, 2010

I am writing my own sms receiver app and i want it to catch all the sms using a broadcast receiver. This on its own, is no problem, but i want to be able to stop the message being passed to the messaging app.

View 2 Replies View Related

General :: Samsung Galaxy S2 - Synching With Two Exchange Servers With Security Policy Conflict

Jun 8, 2012

I have an SGS2 with the latest ICS release (rooted). I work with two companies supporting sync with the exchange server (2010) on a smartphone.

I can set up both exchange servers at the same time. The first day the both work, but on the second day one of the two (so far always the same) start giving me connection errors, and will no longer sync emails.

I am almost sure that the problem is that for security reasons, both want to have their security policy (admin privileges etc) enforced over my phone, and when they re-check daily they find that the policy is not as they want it. to overcome this?

View 2 Replies View Related

Android :: How Do I Do A StartActivity In BroadcastReceiver?

Apr 7, 2009

My use case is to launch one of settings app screen when I receive a certain event in idle state. For which, I added my new intent to PhoneAppBroadcastReceiver() in PhoneApp.java (looks like this receiver handles the misc intents) But when i call startActivity(), The phone seems to go into a panic ex. startActivity(new Intent(this, NetworkSetting.class)); My questions are is this the right approach to go about ? If so 1. How can I launch the activity inside of broadcastReceiver? secondly 2. How do i verify if the activity i want to start is already started?Can the NEW_TASK_LAUNCH be used to verify this ,

View 2 Replies View Related

Android :: BroadcastReceiver To Get Incoming SMS

Sep 21, 2010

I have written an application to read all incoming SMS and if the SMS contains certain string, I will also send a copy of the message to my another phone for backup purposes.

I used the reference from the following website:

http://www.anddev.org/novice-tutorials-f8/recognize-react-on-incoming...

It uses BroadcastReceiver to get the incoming SMS, but when I tried to send it using the following method:

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

It always crashes. Any idea how to resolve it? Is it because of using BroadcastReceiver.

View 4 Replies View Related

Android :: AppWidgetProvider And BroadcastReceiver

Oct 2, 2009

I have an app widget that extends an AppWidgetProvider to create an application widget.

I would like the application widget to be idle until an activity in my app runs; actually when a service in my app is started.

Once that service is started, I need to "wake up" the application widget and communicate with it (i.e. tell it things to display).

So I see that AppWidgetProvider simply extends BroadcastReceiver -- so does that mean:

1. I need to call registerReceiver in my service and tell it to filter for certain kinds of events?

2. Can I even do #1, or will an AppWidgetProvider *only* accept ACTION_APPWIDGET_* intents?

3. If #2 is correct, how can I communicate or "wake up" / trigger the application widget?

4. Can I send events to my app widget using sendBroadcast( intent )?

Then, my app widget has some buttons on it, I need to send an intent back to the application (or service). I see you can do that with PendingIntents, but if i send the different intents it to the same Activity, it seems to re-use the first created pending intent.

View 2 Replies View Related

Android :: App Contains BroadcastReceiver And Activity

Aug 6, 2009

I want to start a project which contains a BroadcastReceiver and an Activity. The BroadcastReceiver doesn't communicate with the activity. But they share a same resource. Can i do it in only one Project (that means, i use only 1 apk to install both BroadcastReceiver and the Activity on my phone), or i have to develope them seperately in 2 projects.

View 3 Replies View Related

Android :: BroadcastReceiver On Service

Aug 28, 2009

Can I Receive a Broadcast from a Service? It seem I have to extend BroadcastReceiver to receive broadcasts but I'm already extending Service and I can't extend 2 classes. Do I set up an additional Activity to receive broadcasts and then just pass stuff to the already running Service. And if so, how to I pass additional info to an existing Service? Is there a better way?

View 4 Replies View Related

Android :: BroadcastReceiver And AbortBroadcast

Jun 22, 2010

How can I best implement a BroadcastReceiver that may need to "consume" the current broadcast (via abortBroadcast()), but it first needs to perform some non-trivial work to determine whether or not the broadcast should be consumed.

The problem is that if the non-trivial work takes more than 10 seconds then the receiver is considered to be blocked by the system and may be killed.

I realise that long-running operations should not be performed in the onReceive() method of receivers for that very reason, and should instead be handed-off to an appropriate service. However, if the current broadcast is to be consumed, then the abortBroadcast() method must be called within the onReceive() method before it returns. If some processing is required to determine whether the current broadcast should be consumed or not, then things can get tricky.

I'm developing an app that can consume some (but not all) inbound SMS messages. For any given SMS message it will need to perform some analysis based on the sender's phone number and the message body (including database lookups) in order to determine if the message is one that is relevant to the app or not. In the vast majority of cases this will take less than 10 seconds, but it is possible that it could take longer on rare occasions.

To get around this I'm considering the following solution.

1. On receiving a broadcast for a received SMS, my receiver starts a background thread to perform the required analysis and handle the message if appropriate. 2. The main thread (currenly executing the onReceive() method) waits until either the background thread has finished its work, or 8 seconds have elapsed, whichever occurs first. 3. If the background thread finished within the allotted time (which should happen most of the time), then the main thread calls abortBroadcast() or not, (depending on the result of the analysis) and returns normally. 4. If the background thread did NOT finish within 8 seconds, then the main thread stops the background thread and instead starts a service to perform the work. In this case it does NOT call abortBroadcast(), and the broadcast will be passed to other receivers (eg the default messaging app) regardless of whether or not the service ends up handling the message. While not an ideal outcome, it is acceptable.

View 4 Replies View Related

Android :: BroadcastReceiver - Sms Received

Dec 29, 2009

I'd like my app to catch incoming SMS messages. There are a few examples of this around. Looks like we just need to do this:

code:..........

Is this correct? I'm sending my phone some sms messages, but the log statement never gets printed. I do have some other SMS applications installed on the phone, which display a popup when the sms is received - are they somehow blocking the intent from getting passed down to my app, they are just consuming it completely?

View 2 Replies View Related

Android :: Service And A BroadCastReceiver

Jun 2, 2010

I have seen several examples on how to implement a BroadCastReceiver, but how should I implement a Service who has to react on some pending Intent (for example incoming phone call)...Actually I was wondering about the same "prbolem" but in an Activity..You obviously have a class which extends a Service 9or an Activity) so it cannot also extend BroadCastReceiver...It looks like we cannot make "platform-awar" services and/or Activties ?

View 2 Replies View Related

Android :: Set BroadcastReceiver To Be Inactive

Jun 22, 2010

I have a BroadcastReceiver set up in my Android application that receives SMS receive events. This works fine, but I want to be able to toggle SMS receiving on and off by toggling the BroadcastReceiver on and off. Because if I have a simple boolean inside the onReceive method, even if the SMS receiving is off, my application will start.

View 1 Replies View Related

Android :: AlertDialog In BroadcastReceiver

Aug 8, 2010

I'm trying to create an application that can use the android as a fax machine, IE Send a picture as a fax or receive a fax and save as a picture. So far I'm starting from the ground up and making sure I can intercept a call at the users discretion. I have an Receiver registered in the Manifest of my program with a filter of Phone_State which flags when the state has changed(IE incoming call).

So on my BroadcastReceiver I'm trying to have an AlertDialog popup prompting the user to either accept as fax or call but the AlertDialog seems to throw a android.view.WindowManager$BadTokenException Error when it has an incoming call. My code is just simple an onReceive(context arg0, intent arg1) and I pass the arg0 to the AlertDialog...

The full error message is below

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

From what I have seen in the AlertDialog code, it passes the context as well as a Window and WindowManager, which I believe is why it's crashing, is there a better way or something else I should be using which might overlay the call screen?

View 2 Replies View Related

Android :: Can't Enable BroadcastReceiver

Jan 12, 2010

I got back to the widget development after upgrading to the latest SDK and all of the sudden my widget is failing on startup with this message:

ERROR/AndroidRuntime(5296): java.lang.RuntimeException:
Unable to start receiver topjob.widget.SearchWidget:
java.lang.SecurityException: Permission Denial:
attempt to change component state from pid=5296, uid=10057, package uid=10048

Here's two lines of code where exception occurs:..................

View 1 Replies View Related

Android :: BroadcastReceiver Crashing / Why Is So?

Feb 19, 2010

I have this Broadcast receiver registered code...

but when the line reaches context.startActivity(intentalarm);
the application crashes

may be it is where we pass first parameter to Intent, I'm not clear about.

View 1 Replies View Related







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