Android :: Force RecognizerIntent Activity To Stay Cached/in Memory
Feb 16, 2010I was wondering if it is possible to force the RecognizerIntent Activity (or any other Activity) to stay cached so that the launch time would be faster.
View 2 RepliesI was wondering if it is possible to force the RecognizerIntent Activity (or any other Activity) to stay cached so that the launch time would be faster.
View 2 Repliesif it's possible to make some app to always keep running for lowering the time access to that app...I'm talking about "basic" phone app, so phone, sms, and whatsapp;
View 1 Replies View RelatedFor whatever reason every browser I try reloads tabs when I leave the browser. It's REALLY annoying - I'm stuck on edge most of the time, and finding out that my tabs suddenly reload just because I switched to twitter for a second.
I tried to pretty much disable the LMK, and it still did this...
I tried Chrome, Browser Plus, stock ICS browser, Dolphin and Opera (which does this slightly less often) Last time I had this problem was on my old tablet with only 256 MB of RAM. (Which still did this less often than the Note on ICS)
Every time this happened, I had at least 120 MB of ram free. Seriously, the note has a full gigabyte of ram, and yet this happens.
This doesn't happen to me on GB.
Is there anything I can do to make browsing normal again? Like, exclude a browser from getting killed, or something? I'm using a Galaxy Note..
I am using MailDroid Pro and like it alot.If I close/minimize the app using the "home" button when I go to open it again it opens and populates my messages very fast (instantaneously)..But, if i close the app using the "back" button; when I go to open it again the app opens quickly but it takes longer to populate the messages.
It is not like anything is broken. I try to close it each time with the "home" button but it is easier to tap the back button than it is to have to physically push the "home" button.is there someway to permanently keep the app process running so no mater how i close it will populate quickly when opened?
I have this phone running pretty nice since rooting it and freezing/uninstalling all the crap and installing XPrivacy (awesome app!), getting the email how I want it is the only thing I am not liking.
How do I force the screen to stay active and not shut off while my app is running?
View 2 Replies View RelatedEvery morning I listen to RadioTime on my way to work and it is constantly losing it's connection and then buffering for a while to reconnect. I can't figure out the problem because when it shuts off, all it takes to get it up and running again is to hit pause and then play. Judging from that I don't think it's an issue with where I'm at not having a 3G connection. If anyone knows a fix for this it would be much appreciated.I apologize if I didn't explain this very well, if you have any questions feel free to ask.
View 12 Replies View RelatedI am using GIO as wireless access point for my notebook, but in 90 % of cases when I am calling someone or someone is calling me it automatically switches to 2G and of course dropping internet connection.
When using it as AP its always connected to charger.
There is no option in stock rom to make it stay at 3G , there is only option to force 2G.
Was trying to uncover "secret" menu using "any cut" application but no luck with it.
I am using stock 2.3.4 Android , was trying 2.3.6 but there is no option to force 3G either.
I saw there is such menu to force 3G on SGS2 / SGN but not on GIO
How can I force Samsung Galaxy GIO to stay on 3G while talking with someone ?
I am working on an Android service. I need to call RecognizerIntent from a service in order to use in the service the recognized text. I have no startActivityForResult() method in Service class so I have problem understanding how to achieve this task. Is it possible?
View 1 Replies View RelatedI am using NFX 2.2....I enabled, or thought I enabled, apps2sd, my internal memory is still going down. I understand that email uses memory but, my folders are empty. Also, I do not see any of my apps on my sd card, which leads me to believe they are still in the internal memory. Any help or tips would be appreciated. I also tried to enable JIT via the gscript. Maybe I am doing something wrong with gscript. I found the script and saved it, rebooted phone. Please help....
View 2 Replies View RelatedI have a problem to start/create Activity in landscape mode. My Activity need to start in landscape mode and be used in landscape mode by users. So far, I used setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) to force screen orientation of my Activity to landscape mode in onCreate() method.
In addition to this screen mode requirement, my application need to start another background thread in onResume() method, and this thread takes some seconds in order to finish an initialization process, and it is not desirable to to stop/restart this thread's service during the initialization process.
However setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) forces my Activity restart in a very little while (means onCreate->onResume->onPause->onStop are executed twice at the first place). As a result, my background thread be stopped/restarted during the initialization process, and this makes me a mess at this moment.
The default behavior from my observation is if current activity force closes Android tries to go to previous activity on stack How can I control this behavior? I want force close to close all activities
View 2 Replies View RelatedThis app needs the device (and its display) to stay awake between onPreExecute() and onPostExecute().
View 2 Replies View RelatedHow to clear the cached image from memory programatically in android? i am iconic list view when i scroll its reloads the image.So its produce the OutofMemoryError. i want clear the cache while gets this exception. how to do that?
View 3 Replies View RelatedIn my application, user can click on a button and then he can select a picture from his gallery. This image is then displayed.
However, when the user performs 3 or 4 times this operation, the following exception is thrown, due to memory allocation problem code...
Here a sample of my code ...
Is it possible to force object (here the Drawable object) to be released from memory?
is there any app or script to force keep an app in memory to not to be killed.I want to keep Micro CPU Monitor in memory always, but it gets killed all the time, having plenty of free RAM.I have tried App Settings (Xposed module) and init script but all in vain my device is HTC One (4.42)
View 1 Replies View RelatedI am wondering what terminal command I can use to check if a process has been cached. On my Sprint Galaxy Nexus, rooted, with the latest build of the Paranoid Android jelly bean rom, I can go to my settings, click on apps, swipe to the "Running Apps" list, and click on the button at the top of the screen that says "Show Cached Processes," and that displays the list that I am trying to access. My reasoning for doing this, is to use "Secure Settings" in conjunction with "Tasker" to check if my "Groove IP" application is running. Initially, I was trying to use "pgrep -l com.*" and check that list for "com.gvoip" too see if "Groove IP" is running in the tray (pull down menu), but if the process is cached, it still shows up in that list. How to get a list of cached processes from terminal.
View 4 Replies View RelatedI am running Galaxo 1.6.1. Seems like my phone runs very slow. key presses and app responsiveness is pretty bad especially when i am going between apps like google maps and pandora. at this point it starts to turn into one force close after another)
I'm not an expert on android, but i installed Estrongs task manager and the max memory i get when i kill all apps is about 20mb. i'm often running at about 10-14 at normal use. (i'm sure its much less when the force closes start)
Does anyone have any suggestions for freeing up memory? I saw some tweeks for the previous galaxo roms but those don't seem to apply to 1.6
I have an Android application with a main activity that is the tabhost. I'm adding multiple tabs to the tabhost with an intent to several activities.
My problem is that these activities are not created (onCreate is not called) until I click on the tab. This is a problem because I need to register broadcastreceivers: there may be broadcasts that are sent -before- a particular tab is opened.
I tried to work around this by:
Setting my receivers as static and registering from somewhere else. This is not possible because I need to call into methods.
Calling into tabHost.setCurrentTabByTag(the_tag) and then switching back to my root tab. This only works sometimes and this is a very ugly solution imo.
Not using activities but just using views instead. Also not a very elegant solution because it turns my tabHost activity into one huge master class doing all kinds of unrelated things.
My application contains 2 activities A and B. B is opened with startActivity(intent) in A, when B is closed with finish(), I found the method finalize() of B is not called.
My question is: How to force Activity to call finalize() when it is closed with finish()?
I'm writing a widget with a configuration activity which calls the following method when its OK button is clicked:
CODE:..............
This is almost verbatim from the documentation. widget_id holds the widget ID that was dug up during the activity's onCreate().
When I place an instance of the widget on the home screen, I've verified that I get the expected sequence of events:
onReceive() gets an ACTION_APPWIDGET_ENABLED if it's the first one.
onUpdate() gets called (in which I detect that the widget isn't configured and draw something as a default action).
The configuration activity appears.
When I press OK, the ok() method above gets called.
The method gets all the way through to the finish() and the configuration activity goes away, but there's no call to onUpdate() or onReceive() after this point. (The widget itself has no updatePeriodMillis.) I end up with a widget on the screen that has the results of my default action but never gets updated.
If I set the widget up without a configuration activity, it gets updated when created and everything works as expected (just without the configured bits).
For an unknown reason, I can't get my application leaving properly so that when I push the home button and the app icon again I resume where I was in the app....But I would like to force the application to restart at the first activity...I suppose this has something to do with onDestroy() or maybe onPause() but I don't know what to do..
View 4 Replies View RelatedI have an application which is in portrait mode. However, I want to run a particular activity in landscape mode. I have tried the following with no success.
View 2 Replies View RelatedI have an application, where I need to change the language through a settings menu. Now this part works perfectly, but it doesn't change the language for activities that have gone through onCreate.
I got a TabHost, and 2 tabs in it, from the tabs you can get to settings.
Refreshing the TabHost isn't an issue, as it's fairly small, however both the 2 tabs are quite large views, and having a function to manually update all the strings seem unnecessarily difficult. Is there any way to force the activity to recreate itself and trigger a new onCreate?
I tried having a static function in the tabhost that clears all tabs and recreates them, this refreshes the tab titles, but not the content in the tabs.
My app keeps force closing before it starts, eclipse returns no errors in my code and my xml is good.
package com.mhe.test.scan;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class main extends Activity {
/** Called when the activity is first created. */
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button myScanButton = (Button) findViewById(R.id.myScanButton); myScanButton.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
intent.putExtra("SCAN_MODE", "PRODUCT_MODE");
startActivityForResult(intent, 0);
} } );
} EditText totalbox = (EditText) findViewById(R.id.totalbox);
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
if (requestCode == 0) { if (resultCode == RESULT_OK) {
String contents = intent.getStringExtra("SCAN_RESULT");
// Handle successful scan totalbox.setText(contents)
} else if (resultCode == RESULT_CANCELED) {
// Handle cancel totalbox.setText("@string/bummer");
} } } }
Essentially it is supposed to call zxing Barcode Scanner to scan a barcode on a button click and return the result into an EditText field.
My activity contains an editable text view and I would like to automatically show the soft keyboard when the activity start. Anyone knows how to do it?
I tried this:
CODE:.....................
A button on our screen causes an activity to be shown that has a "dialog" theme. We are having an issue were if you click the button quickly twice in a row, the dialog activity is opened twice.
Typically I would expect that when a new activity is started, the underlying activity is immediately stopped, and thus accepts no further input.
However, since the dialog themed activity does not take over the whole screen, I think the underlying activity is only paused, not stopped and thus the buttons are still accessible.
Which brings me to my question... Is there a way to force the dialog themed activity into a modal state where the user can't click the buttons on the activity below?
I could probably manually accomplish this by disabling everything in onPause, and reenabling it in onResume, but this seems like a lot of work!
Is there any way for an activity to register for being notified if a wait/force close dialog is shown or alternatively if the user selects force close, a way to detect that in ondestroy()?
View 6 Replies View RelatedSo I read through the SDK docs and I thought that calling a new activity(browser) as part of a task (myTask) will mean that activity* (browser) will close when a user closes the task (myTask) But I am left with a browser window.
Here is my scenario (in sudo code);
CODE:..........
Question 1: What is the cleanest way to ensure that when a user closes my app, any outside activities called will be closed to.
Question 2: Does a callback URl start a new Task, or use one in the stack if available?
I have a language setting in my application. When the language is switched, I would like all the textviews etc to change language immediately. Currently I just change the locale in the configuration, so the language has changed when the user restarts the activity.
Solution to my problem would be to make each textview load the new resources each time the language is changed. Is there a better solution? Perhaps a neat way to discretely restart the activity? Or maybe just force reload of the resources?
Is there a way to notify an activity/service of a force-close request right before it gets killed?
I mean when the user hits the force close button in Menu>Settings>Applications>Manage applications>app name>Force Close.