OFF TOPIC How to read feedback

by Justin Allen Jaynes » Fri, 06 Mar 2009 06:03:41 GMT


Sponsored Links
 This is a DEVELPER forum.  Please keep to DEVELOPMENT topic.  A quote 
from the official description of the forum:

"This is the not the right place to discuss user issues (use 
android-discuss for that)."

For a full description of the PROPER use of this form, and of the 
android-discuss form, go to

 http://developer.android.com/community 






--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Communicating from Android Service to an Activity



Correct. In this case, the WeatherPlus activity is already running.


Sure you can, though the sendBroadcast() model is probably not the right
one to use.

Have the activity bind to the service using the local binding pattern
and have it register a callback/listener object with the service once bound.

When the "devise status changed", the service looks to see if it has a
listener from an activity.

-- If yes, it calls a method on that listener to tell the activity to
display the dialog or whatever.

-- If no, the service starts the activity with an extra indicating "hey,
please go ahead and pop up that dialog, please"

Bear in mind that popping up an activity from a service is a very bad
practice except in unusual circumstances (alarm clock, incoming phone
call). If the user is in the middle of doing something else, and you
interrupt them forcibly, and they do not think your interruption is
warranted, they will get...cranky. :-)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.0 Available!

-- 

2. Always retrieve incomplete result from database

Hi all,

currently develop an application and when I catch data from database,
the record always incomplete.
I am curios whether this is because I use distinct, but when removed
distinct, the incomplete result also come too.
For the example I query to get all dates using rawQuery:

public Cursor getAllDates(String selectedMonth, String selectedYear){

                String WHERE_MONTH_YEAR = "t_month = '"+selectedMonth+"' and
t_year='" + selectedYear+"'";
                return mDb.rawQuery("select t_date from finance where
t_month='"+selectedMonth+"' and t_year = '"+selectedYear+"'", null);

}

the call method for the example: getAllDates("June", "2010");

when the query execute using command line with query:" select t_date
from finance where t_month='June' and t_year='2010';

the result should be:
7
8

but in the emulator I get only 8.

Anybody ever got issue like this? This is because of what? Somebody
please help me, thanks a lot.


-- 

3. Sqlite cursor closable problem

4. Activity Not coming to foreground

5. desktop remote on phone

6. Cara Matikan data Service di Spica

7. Implement Camera Support for Android Emulator using Web Cam