android

How to create Intent using a string to launch another activity?

The first activity in my app needs to load a small amount of data from a text file. Two strings and an integer. Once I load the data, I want to use one of the strings to create an intent, that will launch the next activity. The current activity will not be able to have a hard-coded reference like so: startActivity(new Intent(this, Ne...

getting googlemaps to accept a local KML file?

Hi all. I am trying to get googlemaps to accept a local KML file. final Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("geo:0,0?q=file://" + Environment.getExternalStorageDirectory() + "/locate.kml")); startActivity(myIntent); The file is on the SD card, and is a valid kml file. Googlemaps loads up, but sa...

Howto pass intent from Service to the activity

"I am writing an android 1.5 application which starts just after boot-up. This is a service and should take a picture without preview. This app will log the light density in some areas whatever. I was able to take a picture but the picture was black. After googling like crazy, i came across a bug thread about it. If you don't generate a...

How to use my own sqlite database?

I put my database field in "assets" folder. And use the code from this blog to copy the database to "/data/data/my_packname/databases/", (This copy code i run it in the onCreate() method when i run this app) then use select * from ... to get data. But it gives me the exception: no such table. Someone told me that if i am attempting to ...

Jet creator music help

Hello! I am trying to use the JET music player in Android to create music for my game. I am having trouble installing the eas synth plugin for Sonar 7 wich i will use to edit the midi tracks. I am using this guide to get everything installed so that i can edit my music: http://www.netmite.com/android/mydroid/1.6/external/sonivox/docs...

Can't generate apk because of trouble processing "java/awt/font/NumericShaper.class"

I can't compile my Android project for the Dalvik VM because of this error: trouble processing "java/awt/font/NumericShaper.class":Attempt to include a core VM class in something other than a core library. It is likely that you have attempted to include the core library from a desktop virtual machine into an application, which will mo...

How to secure passwords in Android Application

Many of my users have requested a password protection for various data elements in my database. Unfortunately, one of my existing features is backing up the database to a public location (SD Card) for data redundancy, so my database isn't secure. So my question is two-fold. How can I encrypt or secure a database on android? How can...

building android platform partially

Hi, I want to modify the Skia graphics library in Android slightly. Is it possible to only rebuild the modified library without downloading and building the whole platform? The platform is massive and this is too much a bother.. Downloading and building the small number of projects Skia depends on seems ok to me, but the build script ...

How do I access the Calendar/Events from Android SDK?

I am trying to write an app that relies on Calendar events. I was going to write it as a service, and just have it check the calendar from time to time, but I found out that the SDK does not offer direct access to the Calendar yet. So is there any other way to access Events? Maybe a broadcast when an event starts and stops? Something...

Android - is it possible to have 3G and Wifi connections at the same time?

I was wondering does anyone know if its possible to open a wifi and a 3g connection at the same time on Android? Is there any way to control access to both Wifi and 3g/GPRS data connections and use them at the same time? ...

Android: Displaying Images From SDcard

I have an app on the market that displays all photos from the user's SDcard in a gallery. Initially I had out of memory issues, but alleviated those by increasing the inSampleSize in the BitmapFactory options. However, I still have intermittent reports of images not displaying, in some cases none at all. There seems to be a larger propor...

Launch Activity From URL

I am trying to have my application launch when the user browses to a certain url. I have found a few examples and they all have the same things in the manifests but it's not working for me. I have put the intent-filter under an Activity as well as a Receiver. Here is my manifest snippet: <intent-filter> <action android:name="android....

Can I dynamically add a View to home screen widget?

I am writing a home screen widget. Is it possible to add a View, e.g. ImageView, to a home screen widget through RemoteViews? I want to generate the views for the home screen widget dynamically. Thanks. updateViews = new RemoteViews(context.getPackageName(), R.layout.widget_news); updateViews.setTextViewText(R....

Converting &amp; to & in android?

Hi All, I have a URL string in the following format. http://myserver.com/_layouts/feed.aspx?xsl=4&amp;amp;web=%2F&amp;amp;page=dda3fd10-c776-4d69-8c55-2f1c74b343e2&amp;amp;wp=476f174a-82df-4611-a3df-e13255d97533 I want to replace &amp; with & in the above URL. My result should be: http://myserver.com/_layouts/feed.aspx?xsl=4&amp;web...

Android: How to get a file's creation date?

This is my code: File TempFiles = new File(Tempfilepath); if (TempFiles.exists()) { String[] child = TempFiles.list(); for (int i = 0; i < child.length; i++) { Log.i("File: " + child[i] + " creation date ????"); // how to get file creation date..? } } ...

Record audio with Ringdroid (or similar program) from another app

I have an app where I need the user to record their voice, and then come back to my application. I would like to give the user the ability to adjust/edit and verify their audio before they get back to my app. My app would need to be able to specify where to store the recorded audio either   1) while launching the recorder (preferably)...

how to find what hook/method is being called in a framework

hi all, I was wondering how should I proceed to debug while working with frameworks. Like specifically how can i tell which method is being called when a particular event happens. thanks raja ...

Uploading Apps to the Android Market Invalid Icon Image Size

I'm trying to upload my first application, but when I select the apk file, I get the following message: The icon for your application is not valid. Please use a 48x48 PNG. The file was created in Fireworks, and is a 48x48 24 bit image named appicon.png. Anyone know of any reason why I would still get this message? thanks patrick ...

How to get money from users mobile phone using Java application?

How to get money from users phone using Java application? So I want to create simple casual game, I want to charge users if they want to pass some extra layers. I want to create an app first of all for android, it'll be opensource. Than to port in on nokia and other Java enabeld devices. Are there any tutorials\matereals on how to do suc...

Using HttpURLConnection on Android

I am trying to connect a web server I have running in my android App however for some reason it's failing. I can connect to the webpage normally and using my phone's browser, I can also use the below code to connect to google but for some reason my code will not connect to my web server. If I host the server on port 80 I get error code ...