[android-developers] Notify when media file is inserted in MediaStore

2011-04-28 Thread manigault
Hi all. How can i be notified when new media file is inserted into media store. For example when is downloaded from the net. I found some posts on this topic but they are not very helpful. http://stackoverflow.com/questions/230643/android-api-for-detecting-new-media-from-inbuilt-camera-mic http://

[android-developers]StringIndexOutOfBoundsException when calling ava.net.URL.openStream

2011-04-04 Thread manigault
Hi all, I faced really nasty problem these days. I am executing the following code String destination = "";// this string is initialized before coming here URL url = null; InputStream inputStream = null; try { url = new URL(destination); inputStream = url.openStr

[android-developers]IllegalArgumentException with ContentResolver

2011-03-25 Thread manigault
Hi all, In my application i'm having the following code private static final String[] ANDROID_COLUMNS = { AudioColumns.ARTIST_ID, AudioColumns.TRACK, AudioColumns.ARTIST, AudioColumns.ALBUM_ID, AudioColumns.ALBUM,

[android-developers] lock sqlite file

2010-11-30 Thread manigault
Hi all, I have the following problem i have to transfer my db file over internet. How can i lock the file to ensure that nobody will write in the sqlite db file while i am transferring it. I need to get READ LOCK on the file to prevent blocking on read operations. Thanks -- You received this mess

[android-developers] using sqlite in native code

2010-11-22 Thread manigault
Hi all i have a library written in C which implements some complicated algorithm over two databases and as a result produce new one. I am trying to import it in android using android-ndk. What is the correct wat to use sqlite in you native libraries, i was able to build the sqlite manually using th

[android-developers] sectionindexer is not updated when adapter's data is changed

2010-11-04 Thread manigault
Hi all , I have ListView with adapter class which extends ArrayAdapter and implements SectionIndexer. The problem is section indexer is not updated when adapter data is changed. Even if i add new elements the section remain the same. I tried some options setFaseScrollEnabled(false); setFaseScrollEn

[android-developers] listview with different xml for rows

2010-09-13 Thread manigault
Hi all i want to implement listview with uses different xml layouts for rows depending on underlying item. A non optimal solution will be int getView method just to inflate every time a new view depending on the item from the adapter. Is there a better way to do this ? -- You received this messag

[android-developers]sharing with facebook is not working

2010-09-08 Thread manigault
Hi all, I am using the following code to launch chooser for sharing Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, message); sendIntent.putExtra(Intent.EXTRA_SUBJECT, "MyApp"); sendIntent.setType("text/plain"); try { activity.startActivity(Intent.crea

[android-developers] stop listview kinetic scrolling

2010-09-01 Thread manigault
How can i stop listview kinetic scrolling ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr..

[android-developers] searching for songs using amazon mp3

2010-08-31 Thread manigault
Hi all, in my application i am trying to use amazon mp3 application to search for songs in amazon. I got this code from the default music player. Intent i = new Intent(); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); i.setAction(MediaStore.INTENT_ACTION_MEDIA_SEARCH); i.putExtra(SearchManager.QUERY, m

[android-developers] searching for songs using amazon mp3

2010-08-30 Thread manigault
Hi all, in my application i am trying to use amazon mp3 application to search for songs in amazon. I got this code from the default music player. Intent i = new Intent(); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); i.setAction(MediaStore.INTENT_ACTION_MEDIA_SEARCH); i.putExtra(SearchManager.QUERY, m

[android-developers] dithering gradient on different devices

2010-07-23 Thread manigault
Hi all, In my activity i have simple grey gradient http://schemas.android.com/apk/res/android"; android:shape="rectangle"> and i use as background of some view. The problem is that the gradient looks pretty banding. After searching i found some solutions and posts about this problem but

[android-developers] change image onConfigurationChanged

2010-07-12 Thread manigault
Hi all, I have an activity which handles configuration changes by itself e.g it's not destroyed and recreated every time. But now i have to change one image with another when configuration is changed. The easies way is just to remove android:configChanges attribute from manifest and to let android

[android-developers] widget on lockscreen

2010-06-29 Thread manigault
Hi all i am developing music player and i want to put some controls when screen is locked. Is there a way to put widget when screen is lock ? The documentation says that "For example, the home screen has one way of viewing widgets, but the lock screen could also contain widgets," but i couldn't fin

[android-developers] broken pipe over ssl

2010-05-13 Thread manigault
hi i've posted the question on stack overflow but no answer - any ideas ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] custom fast scroll thumb

2010-05-05 Thread manigault
How can i set custom thumb for fast scroll. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr..

[android-developers] updating listview items

2010-03-29 Thread manigault
Hi all, In the application im working on now i came up with the following problem. I have list view which is displaying items with images in most cases it will be different image for different items ( thumbnails about 60x60 pixels ). So the problem is how can i handle image processing for the view.

[android-developers] recording volume indicator

2010-03-18 Thread manigault
Hi i have an application that records audio and i want to add an indicator which shows the volume of the recorded audio ( in real time ). Any ideas how to do is. Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] options menu items

2010-02-04 Thread manigault
Hi all, I want to customize option menu items. I can change icon when selecting using a selector but how can i change the text color during selection. If it was TextView i could use again selector for textColor property but for menu items there is only resource for textValue not for textColor. So m

[android-developers] sqlite multithreading

2010-01-28 Thread manigault
Hi all, i need to use the SqliteDataBase from from multiple threads. According the the sqlite documentation sqlite is threadsafe if it's compiled with SQLITE_THREADSAFE = 1 and in android this can be done by calling SQLiteDatabase.setLockingEnabled(true) ( the default value is also true so it works

[android-developers] Cover art for audio file

2009-12-23 Thread manigault
Hi all, How can i extract the embedded cover art in ID3 tag of an audio file. There is MediaStore.Audio.AudioColumns.ALBUM_ART but it seems it doesn't work i got "no such column". -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

[android-developers] can cursor block

2009-12-14 Thread manigault
Hi all, I have the following issue. I get a cursor in some background thread and pass it to the gui thread. In the gui thread i use the cursor to create cursorAdapter and fill some ListView. So far if the database access blocked there will be no problem because it's made in other thread. So the cur

[android-developers] Implementing custom ListAdapter

2009-11-12 Thread manigault
Hi all, With the application i am working on i came with the following problem. I have a listview that should display data from a database table. But in background the data table could have two states: State one - the database table is filling dynamically and the listview also should dynamically

[android-developers] Dynamically grow listview

2009-11-02 Thread manigault
Hi, I am trying to make ListView which should display data from db. But the db is filled slowly so want the entries in the ListView to grow dynamically according to the elements in db. For example on a desktop music player when you import a folder to the music library the list with songs is filling

[android-developers] mount sd card

2009-09-15 Thread manigault
I am trying to write a desktop client to synchronize data with my android app. When i mount the sd card how can i find is this is android sd card and how to check if given application is installed of the phone ( by de desktop client). --~--~-~--~~~---~--~~ You recei

[android-developers] MeidaPlayer IlleglStateException thrown

2009-09-12 Thread manigault
Hi, I have the following issue i have an application that uses android.media.MediaPlayer and got this exception: 09-12 16:21:05.921: ERROR/AndroidRuntime(9890): Uncaught handler: thread main exiting due to uncaught exception 09-12 16:21:06.101: ERROR/AndroidRuntime(9890): java.lang.IllegalStateEx

[android-developers] Re: listview search

2009-09-03 Thread manigault
; > the tuto: > > >http://android-france.fr/2009/04/15/developpez-une-application-pour-a... > > > On 2 sep, 10:24, manigault wrote: > > > I have a listview with cursor adapter and i want to be able to search > > > in the list view. I implemented my own search :

[android-developers] listview search

2009-09-02 Thread manigault
I have a listview with cursor adapter and i want to be able to search in the list view. I implemented my own search : i implement TextWatcher interface and when the text is changed i make a new query to the db to obtain a new cursor and than refresh the listview content it works but it is too slow

[android-developers] Re: ListView touch problem

2009-08-24 Thread manigault
Maybe this will help you http://stackoverflow.com/questions/500264/android-multiple-actions-on-a-list-view-focus-issue On Jul 30, 5:26 pm, legerb wrote: > Each list item in myListViewis a linkified TextView, and a regular > TextView. > The problem is that once there is a touchable item in theLis