Android :: Prevent Landscape Modus?
Mar 12, 2009How do i prevent the landscape modus? or how i can save the state of my app. without saving manual the data? rgds Mr.No
View 3 RepliesHow do i prevent the landscape modus? or how i can save the state of my app. without saving manual the data? rgds Mr.No
View 3 RepliesI was wondering if there is a way to prevent landscape mode when on the home screens. love launcherpro, but it would be perfect if this could be disabled.
View 7 Replies View RelatedIs this possible to do? Landscape mode distorts the background image, and therefore I would like to lock orientation to vertical on phones with accelerometers.
View 2 Replies View RelatedI want to write an app that a parent can use to disable phone functionality to prevent their child from using it.One way the child could circumvent this is by uninstalling the app.Is there a way to prevent application uninstall on the Android?
View 1 Replies View RelatedI really don't know why it's giving me this error... I load an ImageView with an image of 692kb .jpg, using scroll options, so you can scroll it around... the strange it's that when the mobile it's connected to the VM it's less possible to happen. So...how can I prevent this? is there anyway that I can free memory when starting the app? can I tell the system to free memory before loading the image?
View 6 Replies View RelatedI 'm working with GPS in my application. When phone go to sleep, the GPS's data don't update. I want to stay phone screen wake up until my app will be close. How can I prevent sleeping in Android?
View 2 Replies View RelatedI want to prevent native application to receive message.I want that my application only receive message. Is it possible ? if yes then how ? can i access the received message and delete it ?
View 3 Replies View RelatedI have created a multithreaded application but it still hangs if the server is unavailable.causes some delay and I believe this is the cause for hanging. But if the TCPClientService Service is executing in its own thread I don't know why this affects the timeout of the main activity.I would be very thankful if anyone could show how to prevent the application from hanging when the server is unavailable.
View 1 Replies View RelatedI was wondering what the most effective way of preventing people from stealing my application (downloading a copy of the .apk online rather than buying it).I've spent a lot of time on one in particular (Droidbox) and won't be releasing Sync until I can guarantee that the people who are providing illegal copies of the pro version aren't able to.Anyone implemented this? I've tried checking my package signature verses an the signature of an unsigned copy but it appears to be the same - perhaps I'm doing something incorrectly here. I'm unsure whether people actually distribute the signed .apk in which case I don't think signature validation would work to begin with.Please note, this question is specific to Android Marketplace Applications - the difference being, application delivery is out of my hands and I have no way of linking between a legitimate purchase and an illegal download.
View 7 Replies View RelatedIs there an app (or better, a way within Android) to prevent the same contact from showing the the call log more than once? I talk mainly to the same few people, with a few others scattered between, and it would be nice if I had the option to see each contact only once in the call log. (Maybe have the call times viewable if I open the contact's entry in the call log.)
View 5 Replies View RelatedHow can we prevent an edittext from getting focus and displaying the soft keyboard. I have an searchbox which should not be focused by default and should have focus only when user clicks on it to enter something. But right now it takes focus and shows the keyoard as soon as I open the activity. Is this a bug or can this be changed to behave in the way we want?
View 2 Replies View RelatedI have a static library that contains some JNICALL functions, i.e. they are expected to be called from the JVM and are never referenced by the shared library that links the static library. However, it seems like function stripping is exterminating the JNICALL function (it's not visible in arm-eabi-objdump -t). I'm working around it by adding a dummy function with an impossible condition that calls the JNICALL function, but that's dirty. I know that there is a link option to prevent certain modules from getting their unused data stripped, but what is it? And how do I specify that option in the .mk file? I didn't see anything immediately obvious in arm-eabi-ld. Incidentally, the function stripping doesn't strip out JNICALL functions in the shared library itself, but it will remove those from the static library that the shared library is linking. What's the reason for that?
View 2 Replies View RelatedI've got an app where I don't want the screen to rotate when they rotate their device, I need to keep the app in portrait mode all the time. How do I do this?
View 2 Replies View RelatedI have set an activity containing a webview which loads a page from the network. Each time the orientation of the screen changes the oncreate(...) method is called and the webview reloads its content again. Is there a way to avoid the webview to reload the web page?
View 3 Replies View RelatedI have an Activity which is launched from a Service. This Activity can spawn other children Activities. Now under certain conditions (particularly related to using screen lock), I can end up with the Service starting a second copy of the Activity again. For reasons of performance, the Service is being started and stopped at various times, and cannot be relied on to hold state. What is the best way to prevent this second launch? Can I (for example) detect that the Activity is already running in the stack and do finish()?
View 5 Replies View RelatedI am developing an application, for an optimal operation I need that the app prevents phone from sleeping. How can I do it? It has to be like google maps: System Tools prevent phone from sleeping
View 11 Replies View RelatedHow can I prevent this overlapping from occurring without reducing the font size? Here is my XML. code...
View 2 Replies View RelatedI am currently porting a 3D app on Android. This app consists of a 3D view (embedded in a GLSurfaceView) and of menu screens (for settings, search , etc.).
My main activity is the one containing the GLSurfaceView. It's always the root of it's task. The problem is that my GLSurface gets destroyed whenever I launch another activity and all the GL objects (VBOs, textures) that I created in the GL context get deleted/invalidated along. So whenever my users go in the menu, the 3D scene has to be fully reloaded. Wouldn't there be a way to prevent the surface's destruction ?
I am developing chatting app in which i have to run my app continuously in background also. but unfortunately sometime my app kill by Android OS. and i have to relogin. Is there any way to run my app continuously in background. Some App is available on Google play which is running in background.
View 4 Replies View RelatedMy application has an emergency button which dials 911 when clicked on. Every thing on the app is working fine. But I just discovered that whenever I try to add another call when I am in a call, it promps me to complete the action using. 1. my app 2. The normal phone And when I click on my app, it just opens my app. I do not understand what is causing this and do not want my app to be shown in that list.
View 7 Replies View Relatedi have a android application which is ready to release .so to release i have put the app in android market .the user can buy the app and can install the app into the phone.android market wont provide any apk file to the user .so normally we need not bother about re distribution of of the app to the unauthorized persons(who didn't buy the app). But what my problem is ,I heard that there is a jail breaking concept which can allow the hacker to get the apk file(installation file) from the device .(even though android market not giving the apk file to the user ).then he can distribute the apk file to all(to unauthorized persons ).how to avoid it.is there any thing to restrict the unauthorized person in using our app,even though he get the apk file . does android market provides the details of the users who has buy the app by paying?
View 14 Replies View RelatedI am coming from a proffesional environment using Windows Mobile and am in culture shock as i have decided to give the Droid X a shot. I am alarmed at how inefficient the emailing system is. It has taken everything out of me to get the VERY basic functionality of pop accounts. You can only set 1 signature for all emails? You can't compose an email with a font size smaller than 12? The Droid X is an amazing device and should make any young person elated, but to a professional it is proving to be nothing more than an expensive toy. It is too late for me since i have the Droid X already, but i strongly URGE any professionals out there to AVOID Android like the plague if you rely on emails to get your work done on a daily basis. Googles handling of email is embarrassing and inexcusable. Okay my rant is done.I have my phone setup so that i can barely make it by with day-to-day emails (GOD i miss Windows Mobile email! - nothing else) As a professional, consistency is crucial to me. There is a stark contrast to the emails sent from my computer vs emails that i send with the Droid X. When sending from my Droid X, all the phone numbers (my signature) get converted to links which look very tacky and serve no purpose in my environment. i understand, that in some cases, someone may want to use their phone, click on the number and add it to their contacts. In a professional environment this is not necessary and looks terrible. More importantly, it is inconsistant with the emails i send from my pc. Since emails are handled soooo poorly with Android i am guessing i will just have to live with it, but does anyone know how to prevent the phone numbers from becomming links? It is very irritating.
View 8 Replies View RelatedI would like to create a table to store device settings. The table has three rows: id, parameter_name and parameter_value. The table was created by executing the following query statement: DATABASE_CREATE = "create table DATABASE_TABLE (KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT, KEY_NAME INTEGER not null, VALUE TEXT not null); and then the rows are stored by executing the following method:
private long insertRow(int rowParameter, String rowValue, SQLiteDatabase db){
long res = -1;
ContentValues settingsParameterValues = new ContentValues();
settingsParameterValues.put(KEY_NAME, rowParameter);
settingsParameterValues.put(VALUE, rowValue);...................
The problem with method insertRow() however is that it can't prevent duplicating the entries. Does anyone know how to prevent duplicate entries in this case?
as there's a GLSurfaceView in use, no other views receive any KeyEvents. MotionEvents however, are still working as expected. Is there a way to prevent GLSurfaceView from swallowing all KeyEvents?
View 4 Replies View RelatedI use a sqlite database in my project. The stored data in it must not be available for the user to edit. As I've read here I saw that if you have root access you can alter sqlite database. The only solution would be to encrypt database content, but this would be time consuming for device. Any solution to prevent access to database ?
View 1 Replies View RelatedWhy do so many of the applications say they prevent the phone from sleeping? Is this a problem if the applications are left open or a problem with the applications all of the time no mater if they are open or not?
View 4 Replies View RelatedIs there a way to intercept a certain Toast and prevent it from showing up?
View 2 Replies View RelatedWell, preventing an orientation change is easy. But what about doing it at run time.
Say, I have an activity which supports orientation change in normal situations. It has say three Edit Texts.
There's also a button, which when clicked would do some processing in a thread while showing a ProgressDialog which is not cancellable.
Ok, so till the user hits the Button, I want the activity to be able to adapt the orientation changes. I have two layouts files for each orientation with different layout schemes.
What I want is this. Once the user clicks on the button, and the ProgressDialog is showing, I don't want the activity now to be re- created again when the orientation changes. So, before showing the ProgressDialog, is there any way to tell the Activity not to handle Orientation change?
Also, once the process is complete, and the ProgressDialog is removed, I want the Activity again to be able to handle orientation changes.
From what I can tell -- if you return START_NOT_STICKY from Service.onStartCommand(...), the system should not restart a service if it crashes. However, I'm not seeing that behavior -- any ideas on what could be restarting the service?
View 4 Replies View RelatedI'm trying to draw some large circles on the canvas which are partly offscreen, then use animation to rotate them in be fully visible. My circles successfully rotate in, but when they come into view they're clipped at the place that was the screen edge when they were originally drawn. Is there any way to prevent this? I guess my larger question is how can you draw elements beyond the edges of the screen and then animate them into view?
View 2 Replies View Related