[android-developers] how to Create cursor object with blob data?

2009-12-16 Thread Mapara,Harshit Nitinkumar
Hi, I have a need to create cursor object and want to put data inside cursor. MatrixCursor is there to help me this problem, but in MatrixCursor, if I put blob value in addRow(object[]) method, I can't get it back by using getBlob() method. So I thought to dig into source code, and I found out

[android-developers] How to display List in homescreen app widget ?

2009-10-13 Thread Mapara,Harshit Nitinkumar
Hi, I can't find how to display a list in the app widget. I have created one app-widget which fetches the database table information and I want to display all the icon:text into app-widget. Remoteviews doesn't have any list functionality. How can I do it, please help Thanks Harshit

[android-developers] Multiple tables in one ContentProvider

2009-10-06 Thread Mapara,Harshit Nitinkumar
Hi I want to operate on multiple tables. I searched a lot but everywhere I could find is single table with one content provider. How can I use multiple tables under one content provider? How can I get result from two/three tables ? Can I provide my own SQL select query from multiple tables in

[android-developers] How to use MediaStore to get content URI of audio file saved in sdcard ?

2009-09-15 Thread Mapara,Harshit Nitinkumar
Hi All, I searched this , but can't find any related info. Here is what I want to do: In /sdcard/downloads folder, there is a xyz.mp3 file. I want to save the content URI of xyz.mp3 file into my database. xyz.mp3 is huge, so it can't be saved in database, but I want to save it's URI in

[android-developers] ZipFile reading error

2009-08-27 Thread Mapara,Harshit Nitinkumar
Hi Guys, I am trying to read content of a zip file(that is on sd card). I want to read xml file from that zip file. Here is my code: public String getGameMetaData(String pathToFile) throws IOException { zipFile = new ZipFile(pathToFile); packageData = new

[android-developers] How do I use FileObservor ?

2009-08-16 Thread Mapara,Harshit Nitinkumar
Hi All, I want to observ file changes, and I found FileObservor class in android.os package, but I could not find any of it tutorial on the internet nor in android reference documents. I tried it but could not succeed. Can you please explain me using a simple example how do I use it? Any link

[android-developers] how to get notified(or Listen) for the changes in SD card

2009-08-13 Thread Mapara,Harshit Nitinkumar
Hi All, I am creating an app and the requirement is - I have to listen to the SD card for new data comes in. Whenever a new file is downloaded into SD card , I want to be notified. (or say , I want to listen for changes) I searched, but can't get any useful help. Please help me in this issue.

[android-developers] how to program on application(not activity) exit ?

2009-07-22 Thread Mapara,Harshit Nitinkumar
Hi all, I have requirement that needs to save data to a file. During multiple Activitiy screens, I add different data to a list and finally when user is not using the app (means if user exits app by pressing home button or call button), just before exiting that app, i want to save that data of

[android-developers] How to get a child views of particular TableRow in TableLayout ?

2009-07-15 Thread Mapara,Harshit Nitinkumar
Hi All, Here is my screen description: It is a TableLayout and it contains multiple Rows. I have set TableRow as clickable, as I want to go to next screen on click of a tableRow. Everything I am doing through Java programming (instead of XML layout, because number of TableRows changes each

[android-developers] How to get actual Table with borders in display layout ?

2009-06-23 Thread Mapara,Harshit Nitinkumar
Hi guys, I'm new in Android. I searched a lot to get a table with borders, but I am not getting result. I want a table with two colums, borders, white backgroud in table. first colums should be right aligned and second column should be left aligned. With TableLayout, rest of things can be