Android :: What Are Units Of Event.values?
Aug 23, 2009
I am experimenting with orientation sensor, register it like this: SesnorManager sensor_manager = (SensorManager)getSystemService (Context.SENSOR_SERVICE); Sensor sensor_orientation = sensor_manager.getSensorList (SensorManager.SENSOR_ORIENTATION).get(0); sensor_manager.register Listener(sensor_listener, sensor_orientation, SensorManager.SENSOR_DELAY_UI); and then read the orientation values in the sensor event listener: private final SensorEventListener sensor_listener = new SensorEventListener() { ... float sensor_data_x = event.values[SensorManager.DATA_X];}
View 4 Replies
Apr 9, 2014
I want to ask where does the defaults values of memory min-free values of a Rom reside? I mean what file I would have to edit to edit those values?
View 1 Replies
View Related
Apr 12, 2009
I use onLongClick and onClick events of a button to get user inputs. Whenever; the user long click and triggers onLongClick event, the onClick event is also triggered. I couldn't find my problem. The code of two methods are shown in below: Code...
View 2 Replies
View Related
Jul 8, 2009
This may be in the wrong forum, but I can't figure out where else to post it.
The maps app (the one from google your phone comes with by default) only shows routes in feet and miles. Is there no way to get it in meters? I can't find any settings for this!
View 1 Replies
View Related
Mar 20, 2010
I'm starting to design my object graph for an OpenGL ES 1.1 app on Android. What's advisable when it comes to actually drawing my triangles and controlling their size? Should I store all the vertices in units relative to each other and then multiply them by a value I pass during a draw(GL10 gl)? Would this approach have any impact when it comes time to do frustum culling?
View 1 Replies
View Related
Nov 2, 2012
How many storage units Android OS have? Including a possible microSD external Card.
Internal Storage, internal memory?! Whats the difference and location in file system folders?
When an app is installed from market where does it go?
In application manager, in most apps there is an option "Move to SD card"...
If I have an external micro SD Card and choose this apps option "Move to SD card" where the heck is suppose to going the app or some part of it? (Data? Apk? Cache?) It's not in external microSD Card! So what is "Move to SD Card".
View 4 Replies
View Related
May 4, 2009
I live in an area which is 9 feet above sea level, and when I call getAltitude I get back a value less than -10. Am I doing something wrong, is my device a failure, or is there some nifty scale that I don't know about?
View 2 Replies
View Related
Jul 23, 2010
My project has the run-of-the-mill HTTP calls to fetch XML files, parsing the XML files, and creating domain objects. Those objects are later used in the actions and services of the Android app, I'd like to isolate that code. I also want to write tests for it. What are some good ways of doing this? Creating an Android Library doesn't seem appropriate. The tests would have to be in a separate project. And there are no services or activities in the extracted HTTP and XML related code. So the test suite doesn't have to be an Android test suite, it could be regular JUnit tests.
View 2 Replies
View Related
Feb 24, 2010
1) I have not been able to find out in which units Location.distance Between receives the latitude and longitude. Is it degrees or micro degrees? Whats the unit for the distance returned? 2) In windows XP using Eclipse 3.3.2. Emulator does not send coordinates properly. Either it by hand or by loading a gpx file the location Listener is not invoked. This same code I have tried it in Ubuntu and works fine. Does someone know how can I solve this? In the office there is no linux installed and I can take my personal laptop.
View 2 Replies
View Related
Apr 30, 2010
this is just an issue with how the emulator is setup, but I'm not sure.
I'm (natively) calling this:
int maxt = 0;
glGetIntegerv(GL_MAX_TEXTURE_UNITS, &maxt);
__android_log_print(ANDROID_LOG_VERBOSE, "Native", "Max textures %d", maxt);
This only outputs 2... could it be possible that I'm going to be allowed only 2 textures? That seems impossible... GL_MAX_TEXTURE_SIZE reports 4096 which is more than enough. I suppose you could lay everything out on a couple of 4096x 4096 images (seems a bit crazy) but anyway... Am I just running into one of things that will be different per phone processor?
View 9 Replies
View Related
Aug 1, 2010
I've got the hard-coded layout, consisting of buttons, and need to enlarge some of them. I found Button's method setWidth(int value), accepting width in pixels, but I need to set value in dp. So, how can I set dp value in program code?
View 1 Replies
View Related
Aug 13, 2009
in xml file we can define measuring units along with the values. If I want to set some property through code it only takes "int" value. What is the default unit for this int? px(pixels) or dp(density independent pixels) ?
View 7 Replies
View Related
May 15, 2013
I have seen several 2DIN car headunits that has Android 2.3 supports FM Radio and Handsfree and can be controlled through the UI itself. how is it implemented?
eg: In eBay, search for item No : 130862564199
View 1 Replies
View Related
May 15, 2010
I just played with a test unit in Atlanta at the South Cobb Radio Shack store. It was a sprint employee who is making the rounds to different stores and talk to customers. Freakin' sweet. I have to run to a b'day party, but it is beyond amazing. Not too heavy, fits in your pant pockets very well. Meow!
View 12 Replies
View Related
May 8, 2010
1st month, US sales...the EVO vs the new iPhone - which will sell more units?
View 45 Replies
View Related
Dec 15, 2009
I hope there is a way to resolve this or bye bye hero.
View 10 Replies
View Related
Apr 19, 2010
Does anyone know when display units will be available to try out in the Verizon stores? Will they not be there until the 4/29 release date? I'd really like to have the hands-on opportunity before I plunk down a couple of Benjamin's on this phone.
View 6 Replies
View Related
Feb 7, 2010
Ive noticed on the phones status page the battery life percent only goes down in tens. Eg 90%, 80%, 70%.. etc Is it possible to narrow it down to single units like 76%? Ive tried some apps on the market but they all see the battery at 70% but i'd like to know if this is the upper or lower half of 70%!
View 31 Replies
View Related
Feb 4, 2014
I need to import contacts and groups to 20 brand new phones, to begin with. (Stock, non-rooted Galaxy S4+, 4.2.2.). The phones will stay un-rooted.
-Avoid if possible using Gmail sync.
-Avoid if possible using Kies.
-Preferably use csv and/or vcf with groups (one group for each department).
-Preferably not being forced to connect every phone to a computer by usb cable. Fixable by download from web site on local wireless network.
What I've tried so far:Imported the original CSV:s, sorted them into groups, exported them as CSV to get the correct columns for android phones. So far so good.
Exported above mentioned CSV:s to VCF from a Google Contacts, sent it over to test phone by Pushbullet (for the test only, web site solution imminent), imported it in Contacts. Does not retain groups, shows as "Not assigned". It doesn't seem possible to create local groups? They can only be created with accounts such as gmail. (As I see it, this is my main problem now).
Tried Google Account sync: Problem not solved due to one single Google account, and one Google account on all phones are susceptible to contact deletion by fat fingers and people that are struck by bad luck while thinking. One Google account for each phone would do the trick, but probably not an accepted solution by our IT security "manager", even when using Google Auth.
Tried Kies Sync: Problem not solved due to USB connection, and still no local groups.
Tried Importing CSV file into Windows Contacts (which ****s up the columns, not all are matchable) and exporting as VCF. Problem not solved, no groups.
View 1 Replies
View Related
Jul 14, 2010
I can pair my X10 to my TomTom Go720 / TomTom Rider II and my Acer Aspire 5920G no worries, and can estabilish a connection that will last only 1 minute before being discconected and then forcing me to turn the X10 off and on again to establish another connection for 1 minute before the same thing happens, etc.
I have noticed that I can turn the Bluetooth connection off on the phone, but cannot start it again until the phone has been tunred off and on ... is this usual?
I have used the Sony Ericsson update software to confirm that my phone is fully updated and also I have the Google sync running for my email / calendar events.
All other aspects of the phone appear fine ... 3G connection working very well ... flash player issue (but for another day).
View 2 Replies
View Related
Jun 12, 2010
Was wondering where one can find an semi-accurate estimation of the Incredible total units sold. Anyone know?
View 39 Replies
View Related
Apr 16, 2010
I have a collection of strings and declared the strings individually as arrays using ArrayList<String> al=new ArrayList<String>(); and called the arrays in the program by using al=getIntent().getStringArrayListExtra("titles");
Now, instead of declaring each of the arrays i have created SongsArray.java like below...
public class SongsArray {
private String title;
private String movieName;
private String singerName;
private String imagePath;
private String mediaPath;
public String gettitle()
{
return title;
}
public void settitle(String title) {.................
View 1 Replies
View Related
Jun 24, 2010
I have a string that contains a xml structure and there are two pieces of data in separate tags that I am after.
xpath has been added since API level 8, and with me being stuck with API level 3 (old phone for you ;-)) I need a way to get the data.
Would using a regular expression commit a huge sin? ;-) The xml isn't that big...
View 1 Replies
View Related
Nov 17, 2010
I want to get the number of launcher:cellWidth in xml:
CODE:.........
I know that I can get it in a Custom view by:
CODE:....................
But how Can I get it in a Activity? not a Custom view.
View 1 Replies
View Related
Jul 26, 2010
One of the Preferences in my PreferenceActivity needs to get its values from a database. How do I add these values?
View 1 Replies
View Related
Sep 13, 2010
I am new to android development, My new requirement is find Latitude and longitude for current position where device is present. how I get this.
View 2 Replies
View Related
Apr 6, 2010
That's a lot of code... no time to read it over now.. but off the top of my head: look into either using a database, an Application class (that will run the whole time your app is alive), or adding extras to the Intent bundle before starting your subactivity. These are all methods to pass data around between activities.
View 4 Replies
View Related
Jun 11, 2010
Code... I want to get Session Key from here. How to get it.
View 2 Replies
View Related
Jul 5, 2010
I wanna set a textview as the values from SQLite when I click the ListView Here is my way...
View 1 Replies
View Related
Nov 17, 2010
I have searched and searched and I just can't get this code to work. I have a main.xml layout and a setting.xml. I have some values I would like the Settings.class to change in my main apps class.Three string to be exact. I have tried this simple test code in my main app class.
settings.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v) {
Intent intent = new Intent(v.getContext(), Settings.class);
startActivityForResult(intent, 0);}});
//Then a function
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent intent){
super.onActivityResult(requestCode, resultCode, intent);
Bundle extras = intent.getExtras();
String value = extras.getString("myKey");
if(value!=null){
Log.d("hmmm",value);}}}
In my settings.class I have the following
returnHome.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.putExtra("myKey", "YEAH");
setResult(RESULT_OK, intent);
finish();}});
Back in main app class it is not getting logged. Like I said I have three string in the main class that I want settings class to change and send back.
View 2 Replies
View Related