Android :: Protect A Variable To Be Accessed Only By One Thread At Once?
Nov 18, 2010
I have a variable on my "SharedPreferences", that is accessed by two different threads, one in a service, and one in a activity.
There is a easy way to protect this variable to be accessed by two threads at once?code...
View 5 Replies
Jun 23, 2010
I'm doing an application that requires that certain thread access data that's shared among it and another service.How can I protect these shared data form accessing in the same time is there anything in android for that or android has nothing to do with this as Java API's will do the job.
View 7 Replies
View Related
Sep 26, 2010
Is copying the reference to the object and not the value of the object. Meaning, when I modify pos.top or pos.bottom, the original object gets modified. I'm guessing I am missing a concept of pass object by reference vs value here which I thought I understood. What is the fix here? Is it a problem with how I defined my custom class?
View 2 Replies
View Related
Nov 3, 2010
these is how to give a string as argument String link ="http://www.adobe.com /devnet/acrobat/pdfs /pdf_open_ parameters.pdf"; webview.loadUrl(link);But how to give an "URL" variable to load its content to webview.
View 1 Replies
View Related
Dec 3, 2009
Reading values like integers, strings, colors, etc. from resources (xml files) is easy and well defined at http://developer.android.com/guide/topics/resources/available-resourc.... But what about a float value, like 0.1 or 1.4? How can such float value be defined in resource file and accessed from code? Is it possible at all?
View 3 Replies
View Related
May 12, 2010
I've had my Desire for about a month and a half now, but have been having problems with my SD Card, which seem to be getting worse. Intermittently I get a message saying something along the lines of 'the backup can't complete as the SD card cannot be accessed'. I also sometimes experience the problem trying to snap a photo, only to be told that there is no SD card (which of course is really annoying). When this happens I can still see the card using the ES File Explorer, including seeing the contents, but if I try to open a file (e.g. a photo) I can't view it.
I have searched the forums/the Internet and the general recommendation seems to be to reformat the card which helps for some people. Someone also suggested the SDMount widget to remount the card when it happens. I've tried using two different cards (the included 4GB card + a 16GB Sandisk card), reformatted both several times, but I still get the problem. I ran a memory card test tool on the 16GB card and couldn't find a problem. The only way I've found to get access back is to unmount the card and then restart the phone. Does this mean my phone is faulty, or could it be some software causing the problem?
View 49 Replies
View Related
Oct 10, 2010
I have the superuser installed on my phone and the droid 2 method one click said i was successfully rooted, however when i go to use a root access required app it wont let me, any ideas why and how to fix it?
View 7 Replies
View Related
Nov 14, 2010
With the stock pic on the eris is there a way to have pics that are sent to you in a saved location that can only be accessed by a code etc?
Basically, the degrading pics your bros send you. Wife, rightfully so, gets upset when she sees them in my phone and does occasionally look at my phone to cure her bouts of insecurity
I want to have it so if you look at pics you see certain ones but have to go extra steps to see the others.
View 2 Replies
View Related
Sep 7, 2010
Can an Android APK archive be imported into another Android project and accessed the same way as a JAR archive can?
View 3 Replies
View Related
Sep 7, 2010
How can I implement a run() method of thread if I create a Thread Global?
I mean If I create a Thread Globally then can I implement its run() method {" public void run()"} anywhere in my Application?
In the run() method I have to write the code to perform some action.
IF I can do it then please can anyone show me briefly how to do it particularly.
View 2 Replies
View Related
Oct 23, 2009
I am facing a problem in my Android app which is calling native functions through JNI. So thought somebody in this group can help me to resolve this. The current code :
1. Create an array in JNI layer ( by NewIntArray()) which can be used by both Java & C.
2.we can name that array as type jintArray array.
3.We call GetIntArrayElements() on this array to get its elements i.e, int * elementsX.
4. This elements would be used by a native call which will set it to some value.(project specific* : may not need interest for this issue)
5. We now get the updated value of elements. And copy it back to array using ReleaseIntArrayElements()
6.We use array in bitmap/canvas class of Java layer to display on screen. The whole procedure is followed for (480x640) times. And so there is a redundant creation of the array for every frame display. Is there any way to avoid this creation of array for each frame. Any better solution to achieve the above? I am not getting a way out of this & the performance of my app has gotten very low too Any JNI code snippets to modify steps (1 to 3 & 5) would be of great help to me.
View 3 Replies
View Related
May 21, 2009
I am writing an application in which i need to handle messages between the main thread(the deafult UI related thread) and the user created Gamethread.
The requirement is like this.
An activity(say "Activity_X") is setting the view by "setContentView(some "View_Y")". In "Activity_X" i have implemeted "onCreateOptionsMenu()" and "onOptionsItemSelected()" fucntions for creating menus & a switch case for action to be taken on selecting those menus.Menu has items like "resume/pause/zoom/" .
All action to be take on selecting these menus are implemented in "View_Y" in a separate Gamethread by extending "Thread" class.
So whenever a menu is selected in "Activity_X" i need to send a message to "View_Y". And on receiving this ,a particular action/method should be called in View_Y(GameThread).
How can i achieve this using Handlers?Is there any other way of doing this? Please do share with me some code snippets for these.
View 3 Replies
View Related
May 27, 2010
I have a separate thread running to get data from the internet. After that, I would like to update the ListView in the main thread by calling adapter.notifyDataSetChanged(). But it does not work. Any workaround for that?
View 1 Replies
View Related
Jul 22, 2009
I want to do the drawing in another thread to speed up the game(it is way to slow right now). I was told to do this but don't quite understand why that would speed things up. Is it GameView that should implement Runnable? Should I make the thread sleep when not drawing? where should I start the thread? package com.android.WWS;
import android.app.Activity; import android.content.Context; import android.graphics.*; import android.os.Bundle; import android.view.SurfaceView; import android.view.KeyEvent; import android.view.View; import android.view.View.OnKeyListener; import java.lang.Runnable; import java.lang.Thread;...................
View 4 Replies
View Related
Feb 20, 2009
I need to suspend/resume a thread from another thread in the same process. I tried to look into thread apis,but I couldn't figured out a way to achieve this.Can anyone pls point me some references to look or give a tip to do this.
View 2 Replies
View Related
Dec 28, 2009
Does anyone know how to delete certain texts from a thread in an easy manner instead of having to delete a whole thread??
View 7 Replies
View Related
Aug 4, 2010
How do I protect an app with a PIN / Password like mint.com does? This would need something like a session variable that resets when the user navigates away from app by pressing HOME or BACK. How do we accomplish this?
View 2 Replies
View Related
May 3, 2010
Is there anything out there that can prevent an app from being launched without a password? Primarily I want to prevent gmail, google voice, and messaging from being launched without a password.
View 4 Replies
View Related
Sep 1, 2010
Is there an app which can protect my gps?
I want to set a password on my phone to protect the gps so you have to enter a password to either turn the gps on or off.
View 1 Replies
View Related
Jul 16, 2010
The Android doc says "Like activities and the other components, services run in the main thread of the application process." Is the main thread here the same thing as UI thread?
View 3 Replies
View Related
Jun 23, 2010
I've integrated lots of private information like accounting, messaging, emails, tasks and so on, into desktop widgets and everywhere around the phone. Every so often, someone wants to take a look at the phone and play around. Reading some important stuff is one thing, but people tend to mess the stuff around as well. Have you found a program or a way to protect from that? (other than denying to the people :> ) I guess some kind of shell program that you turn over when someone wants to demo the phone would be a nice solution.
View 7 Replies
View Related
Apr 6, 2009
Just did a little search on google with my paid app name, I found these:
http://www.ipmart-forum.com/archive/index.php/t-337082.html http://droidappz.co.cc/index.php/board,21.0.html
Someone bought the priced app from market with the "rooted" phone and copy the apk file, then post on the websites for others to download.
Should Android team give a better way to protect the priced apps?
For example, encrypt the apk with the unique device hardware id for each download request. And verify the key before execution. So the apk can only be used on this phone.
There should be much better and complicated ways. but this is the basic idea.
I have checked the BlackBerry app world, looks like they have something different:
http://na.blackberry.com/eng/developers/appworld/faq.jsp
>My application requires a license key, how can I get a license key to >the end user? >BlackBerry App World asks you to indicate that an application requires >a license key. The license key models supported include Static, >Single, Pool or Dynamic.
View 6 Replies
View Related
Jan 23, 2012
My employer has told me to create an android app to do the following:
The ability to password protect specific submenus in the Settings menu (i.e. specifically Privacy, Applications, and Location & Security).
Is this possible without rooting?
View 1 Replies
View Related
Mar 13, 2012
My parents are going on a trip in a month and they have there heart set on taking a smartphone with them.What they need is being able to call, text and mail.They also want to be able to use it as a backup (just in case) for finding their way. So just in case they get lost to find out where they are on their map or use the gps to guide them for a little while.
So basically, calling, sms, mail and gps. They don't need to be able to change a lot of settings.So, I was thinking about installing their (yet to buy) smart phone with a simple home screen and the settings they would need. To keep them from accidentally messing anything up, I was wondering if it is possible to password protect settings and stuff.
-how to protect settings etc.
-a good home screen
-other things like very simple gps app for example
View 7 Replies
View Related
Nov 2, 2010
I have an app out that involves keeping track of information over time. Part of the app is a reset button. In order to avoid accidental resets, I made that button respond only to long-clicks.However, that approach confused about 20% of my new users, who thought that the reset button must not be working.Is there a more intuitive (and standard) way to protect a button from accidental presses? (If not, I can add some sort of custom message to the button I have )
View 2 Replies
View Related
May 13, 2010
I'm getting many complaints that users can't find our paid app in the Android Market. I know exactly why. Our app is "Copy-Protected". So the questions is, if our paid app is already available all over the internet for FREE!! What's the point of copy protecting an app? Should I even care at this point about that feature? It seems I'm gonna get more sales if I disable copy protection, but makes me wonder.
View 6 Replies
View Related
Sep 11, 2010
I m designing a big android application, where there are XMLs to store temporary data, images captured by camera and other details. Which is the best way to protect them from outer access from phone or from PC. XMLs can be encrypted. And images too, however there are times when they need to be accessed very often and encrypting-decrypting is very heavy operation. XML encryption is manageable but images cause memory problems. Is there any alternative way, something at folder level ?
View 2 Replies
View Related
Aug 9, 2010
we can password protect our phones but we still have info on the SD card, is there anyway to password protect it so someone can't just remove it and plug it into a reader or another phone and look at the info?
View 1 Replies
View Related
Jun 18, 2010
I have an Android application from which I want to upload some data to a database on my web server. As the MySql java library has a size of about 5 mb, I don't want to include it with the application.So I'll make a HTTP request for a php script and send the data with the URL as parameters. How do I make sure that only I can call this? I don't want people to sniff up the URL and call it outside my application.
View 3 Replies
View Related
Sep 17, 2010
Is there a way to programmatically protect the folder with password in Android ?
View 2 Replies
View Related