Android :: Avoiding Application Restart - When Hardware Keyboard Opens

Nov 7, 2010

I am currently working on a multi-threaded game application for the Android platform. so far so good. I just got over a bug in my application which caused it to restart on orientation change (fixed by designating a specific orientation depending on the availability of a hardware keyboard or not, which is important 'cuz it is an online game with chat capabilities), and that works. BUT now i am trying to avoid the same problem when the user simply slides open the hardware keyboard. I'm not quite sure how to go about avoiding the restart of my application or the saving of the state of my application. Any solutions/suggestions?

Android :: Avoiding Application Restart - when Hardware Keyboard Opens


Android :: How To Show Keyboard Automatically While Screen Opens?

Nov 16, 2010

How to show the soft input keyboard while a activity opens. In Normal case a keyboard pops up when we tap inside the edit text but i want to open it automatically when that screen loads.

Here is the xml layout file

And here is the main.xml layout file

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

View 1 Replies View Related

Android :: Onscreen Keyboard Opens Automatically / When Enter On Activity

Nov 10, 2010

When i enter to a activity with a scrollview layout and textedit's they get focus and android keyboard opens.how i can avoid it? when i was using linearlayout and relativelayout without scrollview layout, this doesn't happens.

View 1 Replies View Related

Android :: Avoiding Black Screen On Application Startup

Apr 6, 2010

When I start my application initially, I get a black screen which stays for a few seconds before my main activity starts. In case of iphone an image with name default is displayed for that split second. I am not sure how to do the same in android. I tried as below in vain

<activity android:name=".Index" android:label="@string/app_name"
android:screenOrientation="portrait" android:theme="@drawable/defaultimage">
<intent-filter> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </activity>

View 1 Replies View Related

Android :: Application Opens Webview - Remember Password?

Aug 8, 2010

1. My app opens a web view, with a web page that requires a username & password. 2. The user writes his password, and on the Android popup to remember the password he chooses "remember". 3. Now the user wants to log in with a different password. But the web view always remembers his last password and doesn't even show him the login page. How can I programmatically clear that saved password? Assuming that I know the host URL. I tried webView.clearCache(true), webView.clearFormData(). But it didn't work.

View 3 Replies View Related

Android :: Avoid Activity Restart At Keyboard Open Or Close?

Jul 28, 2009

I have fixed the activity screen orientation to portrait on AndroidManifest.xml file. When I open or close the keyboard the activity gets restarted. How to avoid this restart?

View 4 Replies View Related

Android :: Program Development - Create Home Screen When Application Opens

Nov 4, 2010

I am developing droid apps with eclipse (new to both) and have a basic Layout question. When using the layout tab (rather than the coding tab) in my main.xml, I am trying to create a home screen for when my app opens.
There is going to be the logo at the top center, then 3 simple buttons below, all centered. How do I go about formatting the Logo so it maintains a size relative to the person's screen size, and stays in the center?

I don't want to write sloppy code to where my program looks fine (UI wise) on my screen and is poorly formatted on other's screens. Also, is there good documentation explaining all of the Property values in the layout view?

View 1 Replies View Related

HTC Hero :: Phone Opens Wrong Application

Nov 27, 2009

Sorry for the double thread but no one has replied to this in the G2 section, hoping that this issue carries over to the Hero and someone can help/advise I've had this problem multiple times now. I'll click on messages for example and it will open up something else I had open hours ago like gallery or my outlook email exchange. I close the incorrect program with the back key or the home key and try again and it repeatedly does it. :/ I'm starting to think I have a dodgy handset because no one else seems to be having this problem.Am I closing programs wrong in the first place? I use the home key to close them most of the time.Anyone else had this glitch?

View 1 Replies View Related

Sprint HTC Hero :: Pressing Home Opens Navigator Application

Aug 3, 2010

I am tonight at a party and a good friend asked to use my phone for the music I've got on it (16g class 4 SDHC updated twice a week ). I after a long conversation of "If you break my sh-- I will have to kick someone's butt." I gave it to her and she plugged it in. Long story short, somehow it was knocked off the table and into a puddle of what I will, for lack of a better word, call fluid. I assume it was beer but still am unsure. Now, I've dried it out using the "Rice Trick" and leaving it on top of the heater vent, put the battery back in turned it back on and the screen was totally un-responsive. I tried a battery pull to see if that would fix it, but to no avail, it was still un-responsive. I then tried the factory reset (Home+Back+Tap Power>Clear>Reset). Now when the phone boots up and everything loads, Navigator will load and start up all on it's own and when I press the Home button Navigator starts up again. Tried the factory Reset again and the same problem. I was going to just re load the 2.27.651.5 from sprint (I never deleted it from my PC when it first dropped) but when I connected my Hero to my PC it wouldn't detect the Hero, It would charge, but not Mount/Sync/Share.

View 12 Replies View Related

Android :: Force Application To Restart On First Activity

Mar 18, 2010

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 Related

Android :: How Can I Restart My Application - Service Automatically

Nov 9, 2010

Some Android application restarts automatically when i kill process manually. How this can be possible?

Is there anyone who know how to do like this on Android platform?

View 1 Replies View Related

Android :: How To Restart Application? (Changing From Horizontal To Vertical)

Jul 9, 2010

I would like to restart my application, just like when you change from horizontal to vertical. Something like finish, but I don't want to exit the program.

View 3 Replies View Related

Android :: Restart Service For Application SD Card / Remounted

Oct 18, 2010

Due to overwhelming user complaints I have decided try allowing users of my Android application to move it to the SD card as per the official documentation. However, a core feature of my application requires a background service to be continuously running. When someone who has moved my app to their SD card mounts their SD card for whatever reason, my background service will be killed.

That's all okay by me, as long as I can restart the service at the first available opportunity. Unfortunately, despite the install-location guide claiming I can use the Broadcast Intent ACTION_EXTERNAL_APPLICATIONS_AVAILABLE to detect when the SD card is remounted locally, the documentation for that flag itself, this newsgroup discussion, and my own testing show that this broadcast is not delivered to the applications which become available. Only applications which have not been moved to the SD card get the Broadcast Intent. Is there any way to restart my background service without waiting for the user to open my app after the SD card is remounted?

View 1 Replies View Related

Android :: How To Auto Restart Application After Force Closed?

Apr 21, 2010

In an Android application, we usually got the "Force Closed" error if we didn't get the exceptions right. How can I restart my application automatically if it force closed? Is there any specific permission is used for this?

View 2 Replies View Related

Android :: Make Application To Restart After Phone Powered On Again?

Mar 29, 2009

what should I do to make my application to be restarted automatically after the phone has been powered-off and powered-on again? I read that regular alarms do not survive phone reboots so, I'm assuming there should be a way to do it.

View 5 Replies View Related

Android :: Way To Restart A Service After Upgrading Application On Phone?

Feb 1, 2010

After upgrading my application I would like the service to restart if it was running before. Is there any way to do this? I didn't see any Broadcast Intents that I could register for in the manifest.

View 1 Replies View Related

Android :: How To Restart Scheduled Jobs No Phone Restart

May 15, 2009

I am developing a ToDo reminder type of app for android. on creation of a new reminder an alarm and vibrator scheduler is created with a toast. This works on intents and broadcasts and is pretty straight forward stuff with putextras using the reminder id from the db. My problem is, if some one restart the phone, i guess all the scheduled alarm and vibrator tasks for the reminder will be killed. Once the phone restart again how to recreate the scheduler tasks.

View 2 Replies View Related

HTC Legend :: Application To Restart / Shut-down Phone

Aug 3, 2010

I do need to restart phone sometimes to make sure my internet works. Is there any app available which can help me doing that and maybe to switch-off phone as well? I do use hardware key currently, but want to minimize the usage for better longevity.

View 1 Replies View Related

HTC Droid Eris :: When Aps Restart My Phone It Takes About 15 To 20 Seconds To Restart

Apr 20, 2010

I have noticed that when aps restart my phone, it takes about 15 to 20 seconds to restart When i Power down, it takes MINUTES!Does anyone know of simple restart app I could use to avoid this? If not, anyone know someone who could make one?

View 3 Replies View Related

HTC Droid Eris :: Application Killers Seem To Force SenseUI To Restart?

Apr 23, 2010

I am rooted and rom'd and everything works great. But I have noticed that when using app killers sometimes (maybe 1 out of 10 times) When I kill all apps my SenseUI restarts. So I've started looking at the apps that are being killed before killing them to see if I could find out what is causing this but everything seems to be normal and I cant figure out why this is happening.

View 11 Replies View Related

Android :: Avoiding Compression On Large Files

Sep 29, 2010

Apparently you can't have a file in "assets" larger than 1MB (except for certain file types) because it's considered too large to uncompress. But I'm finding mixed info about how to circumvent this limitation. Some say that you can put the files in "raw" and avoid the limitation but others say that files in "raw" are compressed too.And there's the -0 aapt option that can be used to turn off compression for certain file types, but there's no way to specify aapt options in Carbide. I realize that I can break the file into pieces, but that's error- prone on both ends.And using one of the known uncompressed file types not only confuses things but also runs the risk that the Android PTB will decide to start compressing that file type.

View 6 Replies View Related

Android :: Avoiding Image Compression On Some 3G Networks

Jul 3, 2010

I want to download an image from the 'net and set it as the users background. This works great over wi-fi, and some 3G networks, but others (T-Mobile UK, for sure) seem to compress the images before sending them. This effect is noticeable when using the browser, too - however, if you long press on an image and save it, when viewing in the gallery it is either not compressed at all, or substantially less so. I want to be able to do this in my own app.I assume it has something to do with the HTTP headers, but of the ones I've modified, none has made a difference.

View 2 Replies View Related

Android :: Avoiding Activity Stack Overflow

Sep 17, 2009

I have the following situation. I have a task with the following activity stack -- A - B - C I have a menu item that allows me to start activity D; so my activity stack looks like this -- A - B - C - D Then I could select a menu item that allows me to start an activity C, which would cause my activity stack to look like this: A - B - C - D - C Then I could go back (via the menu item) to activity D, making my activity stack look like this: A - B - C - D - C - D Doing this a few more times, it would wind up looking like this -- A - B - C - D - C - D - C - D - C - D - C - D - C - D - C - D - C - D - C - D - C - D This seems kinda stupid to me. I'd like it to simply re-use an activity, or pop the activity below to be on top (which goes against the nature of a "stack"). So, what I mean is if I had this activity stack: A - B - C - D And I started activity C (from the menu), I would get: A - B - D - C And if I then started activity D (from the menu), I would get: A - B - C - D Is there a way to do this without keeping some global list of activities and doing gross things to them to reorder them?

View 3 Replies View Related

Android :: Avoiding Softinput Specifically In One Activity?

Sep 29, 2009

I want to avoid softinput specifically in one activity in a very specific case.

When i *long press "menu" button *softkeypad is coming irrespective of the activity.

How can i avoid this? i have tried "stateAlwaysHidden" etc for that activity. But did it work.

Al other cases ok. Just this case* long press "menu" button*.

View 6 Replies View Related

Android :: Does Use Of A Remote Service Help Avoiding GC Lags

May 18, 2010

Since yesterday I got an idea running around my mind but I donīt know first if it would work, and then how "hack" it would be.

People who develop audio processing/recording/playback apps for Android know how hard it is to maintain GC away from our critical paths: playing and recording audio. Processing must be as optimized as possible not only to save battery and use less CPU, but also not to create new objects/allocate new memory spaces ... this all to avoid GC at all cost. Well, we have knowledge and this we can handle (mostly). But what about all the other processing that happens from and for user interaction? Media players display images, some apps display ads, ... and sometimes we have to avoid releasing features to the users just to maintain our critical paths free from GC.

Yesterday I stumbled upon an article about remote services and this led me to a doubt: if they can run as a different process, would a GC call from my activity impact the performance of my remote service? I really donīt know how GC works on the Dalvik so this may be a dumb question. If so, I apologize.

You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

View 4 Replies View Related

Android :: Avoiding Spam In Standard Mail App

Sep 4, 2010

I have a HTC desire and have my hotmail set up in the standard mail app. i have noticed that some of the mail that lands in the junk mail folder on hotmail itself goes straight into me inbox on my phone. can i avoid this at all?

View 3 Replies View Related

Android :: Avoiding WiFi Charges For Yahoo & AIM

May 6, 2010

I'm traveling to the Bahamas. Does anyone know if i can you my wifi to avoid charges for instant messenger like yahoo and aim and sending and receiving text messages and which app to download for it?

View 2 Replies View Related

Android :: 'Avoiding Memory Leaks' Article In Blog

Apr 10, 2010

I just read the article 'Avoiding memory leaks' in android blog written by Romain Guy. http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.

View 4 Replies View Related

Android :: Need To Use Some Open Source Code With GPL3 / Avoiding GPL

Jun 22, 2010

I need to use some open source code with GPL3. As usual I don't want to open source code for full application.

Now what I understand is if I make two separate process one with my main application code and other as a service or something with Open source library then in that case I have to open source code only for the other one.

Now the question is what is the best way to do so in Android. Suppose My Main App is A Open Source code is B. So A will give some data to B. B will process this and sends data back to A. B may not need to have any UI.

1. Is it possible to install 2 seperate applications / processes from one APK? 2. What is the best way ?Should B be a service? How will be the communication between A and B ? 3. Is it possible to run/call B from A?

View 22 Replies View Related

Android :: Avoiding String Allocation In TextView.setText()

Dec 28, 2009

On Android 1.5, using the Allocation Tracker I see that every time I call TextView.setText() with a StringBuilder as first argument, a String gets allocated from the following call stack (first line is last call):

java.lang.AbstractStringBuilder toString java.lang.StringBuilder toString android.text.TextUtils stringOrSpannedString android.widget.TextView setText

I tried specifying the buffer type with setText(strBuilder, TextView.BufferType.NORMAL) but it doesn't change anything.

Is there a way to avoid this allocation?

View 2 Replies View Related







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