Android :: Intent.putExtras Not Consistent
May 16, 2010
I have a weird situation with AlarmManager. I am scheduling an event with AlarmManager and passing in a string using intent.putExtra. The string is either silent or vibrate and when the receiver fires the phone should either turn of the ringer or set the phone to vibrate.
The log statement correctly outputs the expected value each time.
CODE:..........
The receiver that fires when the alarm executes also has a log statement and I can see the first time around that the statement outputs the expected string either SILENT or VIBRATE but for each subsequent execution the output shows the original value on the receiver end. The alarm executes and then I change the value for putExtra to opposite string and the receiver still displays the previous value event though the call from the code above shows that the new value was passed in. The value for setAction is the same each time.
CODE:.....................
View 2 Replies
Sep 9, 2010
I would like to know if its possible to prevent my application from looking different every time I run it on a different android phone. For example, on stock 2.2, my seek bar (with default values and theme) has an orange color for the selected portion, whereas on a Samsung Galaxy S (with 2.1), it is green. Also the tab background is grey in stock 2.2, but blue in Galaxy S. On a similar note, my rating bar changes size too. I do not implement multiple screen resolutions and all my drawables are located in the "drawables" folder under "res". I donot specify a minimum sdk requirement.
View 5 Replies
View Related
Dec 22, 2009
I'm using the UI test monkey tool provided with android. This is a consistent error I see and wonder how I can avoid it.
Somehow the test app will rotate the orientation of my app such that the emulator window is still in portrait orientation, but the screen surface is in a landscape orientation. When in this configuration, any time you click on an EditText, a system exception gets thrown:
"The application OpenWnn (process jp.co.omronsoft.openwnn) has stopped unexpectedly. Please try again."
So this OpenWnn process is not mine, it looks like it handles display of the virtual keyboard. When in this odd orientation mode, and you try to click in an EditText, I can see the virtual keyboard try to slide in from the left side of the screen, then that exception gets thrown.
I'm not sure what orientation this is, because it's not the normal landscape orientation you get by hitting ctrl + F11. In fact, the virtual keyboard shouldn't even be trying to display itself in landscape mode? Much less from the left side of the emulator?
View 1 Replies
View Related
Mar 31, 2010
I have an app with two activities, one of which the launchmode is set to "singleTask". From the Android dev guide, I got the impression that my SingleTaskActivity should start a new task (or reuse an old task) and always sit at the root of the stack when launched.
However, it's inconsistent with the behavior of the app if I follow the steps below: - launch StandardActivity from home - click the "home" key - launch SingleTaskActivity from home, you will see it's in the foreground as expected - click the "Back" key, StandardActivity comes to the foreground whereas I expect to see the home screen because SingleTaskActivity is supposed to be at the ROOT of the stack. It appears SingleTaskActivity was launched into the task that StandardActivity started, rather than starting its own task.
Is my understanding about the "singleTask" launch mode correct?
=== The Android Dev guide (http://developer.android.com/guide/topics/ manifest/activity-element.html#lmode) says:
In contrast, "singleTask" and "singleInstance" activities can only begin a task. They are always at the root of the activity stack. Moreover, the device can hold only one instance of the activity at a time — only one such task.
CODE:.....................
View 5 Replies
View Related
Nov 22, 2010
I have a problem while using the scroller in my application. I have used the scroller but it is not working properly as it is not able to maintain a consistent speed while automatically scrolling. The speed of the text is getting slower with time as the text moves upward.
View 1 Replies
View Related
Jun 7, 2010
I have some messages being passed back from my server through php. The problem is that the messages are in English and if the user is using another language they will still get the message in English.
So I had an idea that maybe instead of passing back the message I would instead pass the String resource Id from the android app, that way the app will get the correct string id for their language. I will use this in a number of apps so I just want to know if the string id is guaranteed to be the same across different android projects?
View 3 Replies
View Related
May 5, 2010
I want all my contacts consistent - last name, first name. But When the phone consolidated everyone from Outlook, Facebook, and Google (about 800 people, everything is all screwed up and inconsistent. Is there a way to fix that without having to manually open and edit each contact not in the correct order?
View 1 Replies
View Related
Feb 21, 2010
At about 5-10 seconds into a call (either outgoing or incoming), my transmissions are muffled for about 10 seconds. Thereafter, I have occasional intermittent similar problems. I can always hear the other party perfectly; they just can't hear me. It happens with either the built-in mic or the corded headset or bluetooth.
View 8 Replies
View Related
Nov 22, 2013
I'm using Wi-Fi hotspot to connect my ps3 to mobile network but gameplay is slightly laggy. I've been told this is because of slow/inconsistent upload speeds. So is there an app/mod to make upload speed of my network faster or more consistent?
View 3 Replies
View Related
Aug 3, 2010
When im at my house 3g drops in and out like every other 5 seconds I was just wondering if this is normal or not.
View 10 Replies
View Related
Nov 20, 2009
This is my first smartphone and my first experience with any sort of high-speed mobile internet, so talk to me like an idiot. But my 3g speeds seem to be incredibly slow and I'm hoping there's something I can do about it. I might've just chalked it up to poor coverage in this area, but I get consistent 4 bars and I've ran SpeedTest.net and XtremeLabs Speedtest and, oddly, I'm getting very high numbers for upload speeds which seems to suggest the network is fine in this vicinity and something else is going on. WiFi speeds are perfect, very quick.
Here are the results of my most recent tests.
SpeedTest.net
Download: 100 kbps
Upload: 855 kbps
XtremeLabs
Max Download: 100.2 kbps
Upload: 223.6 kbps (Don't know about the large discrepancy here)
So is there any course of action I can take to improve the situation? I've not tested speeds at any other locations yet (just got the phone Wednesday) but the high upload speed seems to tell me that it's not just a matter of my house being a 3g dead zone. And of course, this is my first experience so maybe I'm completely wrong with all my assumptions.
View 6 Replies
View Related
Aug 22, 2010
Battery life and Battery stability. I still cannot seem to get a good consistent battery life from my Evo. One day it lasts 10 hours the next I get only 5 hours with about the same usage time and its driving me bonkers. If I find the Epic to be more reliable with power management I'm keeping the Epic and changing over. Its all up to the battery now!
View 14 Replies
View Related
Mar 8, 2010
I've seen an issue now on both Chevy's and Pete's ESE53 ROMs.
I play a video using the youtube player, and the video locks up, touchscreen and phone buttons non-responsive, and then the phone reboots.
I did a full wipe/reset and installed all apps from the market when I installed Pete's ROM, so it's not due to a messy setup...
Doesn't happen every time, but very frequently. Last night I played some or all of three videos, no issue. This morning tried one and my phone locked up/rebooted within the first five seconds of the video.
View 15 Replies
View Related
Aug 25, 2010
I know this has been asked a lot of times in StackOverflow already, but I haven't quite found a solution yet. My app sends an email with a link in it that when clicked should launch the app. According to @hackbod, the best way to do it is to make use of the Intent URI (see this). Here's my code that sets the intent and puts it in the email body: Code...
View 1 Replies
View Related
Feb 17, 2010
Please clarify me What is Pending Intent with an example.
View 2 Replies
View Related
May 11, 2010
I am newbie to Android. I read the Android documents. Can anyone tell me what "Pending Intent" is?
View 1 Replies
View Related
Oct 6, 2010
I am using the following code to play video..
View 4 Replies
View Related
May 12, 2009
I would like to know how can I determine the value to put in an ACTION tag in AndroidManifest....
We have some defined intent at http://developer.android.com/reference/android/content/Intent.html...... ok.
I tried to do some stuff with receiver. I found an example SMS_RECEIVED. This example work when I use android.provider.Telephony.SMS_RECEIVED in the action. If I try to find these constant in android.provider.Telephony I've a problem...It doesn't exist...So where is it defined?
View 2 Replies
View Related
Jul 3, 2010
I've read lots of articles about intent filters and I really can't understand exactly what they do? so please if anybody can explain to me with a clear example what is the role of intent filters exactly ?
View 4 Replies
View Related
Jul 23, 2010
In my android app, I wanted to start an activity 'B' from initial activity 'A'. I have created classes for both of these. However when using following code to start B, I get runtime error as application has stopped unexpectedly, try again.
CODE:..........
When I added a new entry in AndroidManifest.xml/manifest/application/activity/intent-filers for activity B then the application worked.
I have two questions:
When there are multiple activities entries in AndroidManifest.xml, how does android know which activity to start first?
I could not understand intent-filters.
Here is my partial AndroidManifest.xml
CODE:...................
View 1 Replies
View Related
May 25, 2009
I have an application that open an other class using intent :
CODE:.........
In Repository.class we have the onActivityResult method :
CODE:...................
I don't know how I can return the value of num to the first class (that create Repository.class).
View 2 Replies
View Related
Aug 10, 2010
I would like to know if there is any URI or action to go to a calendar app loaded in the mobile.
The question is similar to http://stackoverflow.com/questions/3116147/intent-uri-to-go-to-favorite-contacts
View 2 Replies
View Related
Aug 3, 2010
I want startActivity in the service.first I new Intent(),but I don't know how to new Intent().Because Activity and Service don't together project.I don't know Intent how to find this Activity.
View 2 Replies
View Related
Nov 7, 2010
I'd like to know which is the intent android sends when it sends a message. And how can I listen for this intent in my application. I wanted that, when I send a message in native android messaging, my application listen this intent, so it will know a new message has been sent.
So, which one is it, and how to listen for this intent?
View 2 Replies
View Related
Nov 5, 2010
Code...
i want to:
browserIntent.close or something... browserIntent.finish();? how to?
View 3 Replies
View Related
Nov 2, 2010
Is it possible to get the Activity from an Intent?
View 2 Replies
View Related
Aug 11, 2010
But the problem is i am getting a blank view.My view is not coming up with textview. is this proper to set background "DetailsTextView.setBackgroundResource"?
View 1 Replies
View Related
Oct 14, 2010
I have four groups in a listview each with four url's I want to load in a webView. When the user select a url to goto I set a value like so;
if (position == 0) webb = webb +2;
{
Intent intent = new Intent(this, official.class);
startActivity(intent);
}
I then carryout the intent to move to the webView class where I have given each URL a value like so;
if (webb == 2) mWebView.loadUrl("http://yahoo.com");
if (webb == 3) mWebView.loadUrl("http://www.bbc.co.uk");
But the screen stays blank, if I state the value inside the official.class it works. How can I get this value to pass to another class based on the selection the user makes from the listview.
View 3 Replies
View Related
Oct 16, 2010
I have been trying to get "getExtra" to work but without success, I have a listview with 4 choices which launch a webpage within a webView class, when the user selects the option lets say option 3 I want to pass the value of 3 to the webView class so that it will load the correct webpage, at the moment I get no errors, but the app force closes when I select the option, could this be due to having to announce this in the manifest? can somebody help with where I am going wrong. This is my intent
public void onListItemClick(ListView l, View v, int position, long id) {
if (position == 0) {
Intent intent = new Intent(this, official.class);
intent.putExtra("weburl", 3);
startActivity(intent);}
This is the official class:
public class official extends Activity {
int number = getIntent().getIntExtra("weburl", 0);
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if ((keyCode == KeyEvent.KEYCODE_BACK) && mWebView.canGoBack()) {
mWebView.goBack();
return true;
} return super.onKeyDown(keyCode, event);
} WebView mWebView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.browser1);
mWebView = (WebView) findViewById(R.id.webview);
mWebView.getSettings().setJavaScriptEnabled(true);
if (number == 2) mWebView.loadUrl("http://bcafc.livewwware.co.uk");
if (number == 3) mWebView.loadUrl("http://www.bbc.co.uk");
mWebView.setWebViewClient(new HelloWebViewClient());
View 1 Replies
View Related
Sep 14, 2010
I'm launching an IntentService using startActivity from inside the onClickListener of a button. startActivity returns immediately. No blocking there. But the button stays "pressed" until the IntentService finishes its work. In addition, the screen does not respond to rotation while the IntentService thread is running. I can see that it's a separate thread in the debugger but the UI seems to be coupled to it. As soon as the IntentService thread finishes, the UI is unblocked. Any idea how I can prevent this and let the UI continue?
View 2 Replies
View Related