[android-developers] Re: How to detect bluetooth headset is connect in SDK 9?

2012-03-23 Thread Emanuele Ricci
That action is fired when you UNPLUG the headset or the bt device as explained in the description On Friday, October 28, 2011 3:14:46 PM UTC+2, lbendlin wrote: > > > http://developer.android.com/​reference/android/media/​AudioManager.html#ACTION_​AUDIO_BECOMING_NOISY

[android-developers] Re: AsyncTask in Android 4.0

2012-05-16 Thread Emanuele Ricci
Hi Michael do you have some good alternative to the current AsyncTask implementation? Anyway the real big big big problem is for the 3rd party library or SDK that my project is currently used. I'm using some ads SDK and I'm pretty sure that they are using also AsyncTask in the "normal" way so I

[android-developers] SQLite complex query and handling results

2011-06-09 Thread Emanuele Ricci
. What can I do? I need an expert advice! Which is the best way to handle this situation? Have you ever faced this problem? Thank you very much. Emanuele Ricci. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Emanuele Ricci
an see we have repetitions. On Fri, Jun 10, 2011 at 2:15 AM, Zsolt Vasvari wrote: > > Use a WHERE clause so you only get 2 rows returned. > On Jun 10, 6:17 am, Emanuele Ricci wrote: > > Good evening ( for me ), I'm Emanuele a young android developer. > > I wan

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Emanuele Ricci
titles. That way you'll only have a single row per post. > Another alternative is to simply not use CursorAdapter but write your own > work-alike instead, possibly starting from the CursorAdapter source code. > > Pepijn > > > On 10/06/2011 09:24, Emanuele Ricci wrote: &

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Emanuele Ricci
Ok I solved it: SELECT posts.post_id, posts.post_title, GROUP_CONCAT(categories.category_name) AS categories_name, GROUP_CONCAT(categories.category_id) AS categories_id, GROUP_CONCAT(tags.tag_id) AS tags_id, GROUP_CONCAT(tags.tag_name) AS tags_name FROM posts LEFT OUTER JOIN posts_categories ON po

R: Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Emanuele Ricci
SELECT posts.post_id, posts.post_title, GROUP_CONCAT(categories.category_name) AS categories_name, GROUP_CONCAT(categories.category_id) AS categories_id, GROUP_CONCAT(tags.tag_id) AS tags_id, GROUP_CONCAT(tags.tag_name) AS tags_name FROM posts INNER JOIN posts_categories ON posts_categories.po

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Emanuele Ricci
Why Google in IOSched is not using it? On Fri, Jun 10, 2011 at 11:27 AM, Nikolay Elenkov wrote: > On Fri, Jun 10, 2011 at 5:24 PM, Emanuele Ricci wrote: > > Ok I solved it: > > > > SELECT posts.post_id, posts.post_title, > > GROUP_CONCAT(categories.catego

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Emanuele Ricci
I was talking about ORM in general. IOSched is not a so little application so maybe creating an ORM tool to integrate in Android was not a so bad idea :) On Fri, Jun 10, 2011 at 11:47 AM, Nikolay Elenkov wrote: > On Fri, Jun 10, 2011 at 6:30 PM, Emanuele Ricci wrote: > > Why Google i

[android-developers] How to join Android Media query search suggest

2012-01-02 Thread Emanuele Ricci
I will explain a little more my scenario. I'm extending the default music player with other features and informations. So I've a sqlite db where I store those informations in addiction of the MediaStore. I want to extend the default search suggestions (for audio) with suggestions from my da