OpenGL 2D editor ?
I want to draw different 2D objects in OpenGL for example a path/Road ,is there any program i could draw them using a GUI then transfer them to points so i could use them in my program ? ...
I want to draw different 2D objects in OpenGL for example a path/Road ,is there any program i could draw them using a GUI then transfer them to points so i could use them in my program ? ...
Hi, should we use android services for network connection? if yes please provide me a sample. ...
Hi there! In some apps I see an EditText widget combined with a Button on the right side (e.g. the search field in the twitter app). How can I create a widget like that? Regards, Marco ...
I would like to detect when the phone is in motion, but not all kind of motion. For example picking up or waving the phone should not trigger. I would like ideally to run a code when the phone/person is in > "walking" state. What options I have? ...
At the moment I am using this code to inquire google maps for directions from an address to another one, then I simply draw it on a mapview from its GeometryCollection. But yet this isn't enough I need also to extract the total expected duration from the kml. can someone give a little sample code to help me? thanks StringBuilder urlStr...
Hi, I'm pretty new to android, and just finished setup my environment and reading some tutorials. Then I got sdk samples from the web. Okay, what I wanna ask you is that is there a way to start a sample as a project in the Eclipse? I mean like clicking a project file in c# or a solution file. Here is my folder which I unzipped the code,...
I have a list of coordinates in the database identified as POI. For a city could be >100 records. I would like to get notified when the phone gets in 150 meters range of one of the location. The location coordinates too has an error/radius, usually 10 to 100meters. Since I don't find it good to add each location(could be hundreds) for a...
I have two activities: a MainListActivity, and a DetailViewActivity. DetailViewActivity is set with android:launchMode="singleTop". When clicking an item in the "main list" activity, it launches the "detail view" activity via: startActivityForResult(detailIntent, REQUEST_CODE_DETAIL); If I then call setResult(RESULT_OK, resultData)...
I have a paid app out in the market currently. Now I want to provide a free app for the users to try out first. I also want to be able to ensure that the data created by the users of the free app would be visible once they upgrade to the paid app. Having gone through the Android docs, it seems like using sharedUserId in Manifest would w...
I tried int totalDeleted = cr.delete(ContactsContract.Contacts.CONTENT_URI, where, new String[]{contactId}); but it does not work. Can I directly delete a contact without deleting the raw contacts tied to the contact? or Do I need to delete all the raw contacts first? thanks before hand ...
Hallo, i have a txt file which contains many chinese characters, and the txt file is in the directory res/raw/test.txt. I want to read the file but somehow i can't make the chinese characters display correctly. Here is my code: try { InputStream inputstream = getResources().openRawResource(R.raw.test); BufferedReader bReader = new B...
I have the url of an image. What i need to do is launch the default image viewer for images using an intent. I tried launching it by using: Uri uri = Uri.parse("http://www.google.com/intl/en_ALL/images/srpr/logo1w.png"); Intent it = new Intent(Intent.ACTION_VIEW); it.setDataAndType(uri, "image/*") startActivity(it); But it doesn't ...
Hi, I have an app killing feature in one of my apps but up to API 7 i always worked with restartPackage(String PackageName); but since API 8 its deprecated so I tried killBackgroundProcesses(String PackageName); but that didn't work either. Both are methods are in the ActivityManager class I hope someone can help me. ...
Hello, I am interested in opening the Google Navigator app from inside an application I am writing. I want to be able to spawn it at a given time and pass specific data into it. Can anyone think of a good way for me to do this? What permissions do I need, etc? Thank you very much. ...
What's the default ScaleType of ImageView?If I put an image which is 400 pixels x 400 pixels on a normal screen (320x480) without specifying ScaleType, how will the image be scaled? Thanks. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pa...
When I have the contact id, how do I send an SMS/email (aka text) to it? I've seen code like this, but none are using the contact it. Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_TEXT, text); act.startActivityForResult(Intent.createChooser(intent, ""), 0); ...
I'm having trouble positioning the layout elements. The AutoComplete in my TableLayout and the button after it are expanding the TableRow larger than the width of the screen. Anyone have an idea why? Below is my XML code as well as a picture of the problem. Thanks in advance!! <?xml version="1.0" encoding="utf-8"?> ...
Hi I cannot list files through adb. What am I doing wrong? Running on Ubuntu. ~$ adb version Android Debug Bridge version 1.0.26 ~$ adb devices List of devices attached emulator-5554 device ~$ adb -s emulator-5554 shell # ls ls: not found -Kim ...
Hello, I am trying to start Google Maps activity like this: Intent start = new Intent(Intent.ACTION_VIEW, Uri.parse("geo:"+58.0+","+58.0)); startActivity(start); But I am getting activity not found exception. Do I have to declare Google Maps Activity? Any help is appreciated thanks. ...
Contacts have a field called LAST_TIME_CONTACTED, it is updated with the time after you make a call. But as I noticed when I send an SMS by the inbuilt Messaging app, it does not update. Could this be a bug? ...