Re: [android-developers] provider, thread and async

2012-08-06 Thread yvolk
Hi, it's a Twitter and identi.ca client, read more here: 
https://github.com/andstatus/andstatus/wiki 

On Monday, August 6, 2012 10:16:28 AM UTC+4, Josphat Muchiri wrote:
>
> hae i like your code and could you pliz explain to me what the project is 
> all about
>
> On Sun, Aug 5, 2012 at 11:11 PM, yvolk wrote:
>
>> Hi, you may look into the code of the AndStatus application ( 
>> https://github.com/andstatus/andstatus/wiki ). It does background work 
>> in the service (MyService). In particular it downloads data into a database.
>> Activities send messages to the MyService and get responses back using 
>> broadcasts, see MyServiceConnector.
>> ...
>
>

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] provider, thread and async

2012-08-05 Thread yvolk
Hi, you may look into the code of the AndStatus application ( 
https://github.com/andstatus/andstatus/wiki ). It does background work in the 
service (MyService). In particular it downloads data into a database. 
Activities send messages to the MyService and get responses back using 
broadcasts, see MyServiceConnector.

BTW, global variables will not work in this scenario, because there are TWO 
copies of the code instanciated in two processes. See MyPreferences class.

The code has a lot of debug logging ...

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Say Hello to the Menu?

2012-07-26 Thread yvolk
Josh, your words confirm that the answer to the common question "Do I have 
MORE options/actions HERE ?" is not a single step :-)
I agree that ideal implementation would be to have that "Action overflow" 
button:
 always in one place + always clickable + always distinguishable if there 
are any hidden actions.

Currently in Android 3-4.1 we don't have all of the above, this is why 
hardware "Menu" button that works exactly like "always clickable Action 
overflow button" is a good addition for an Android device.
Do you agree?

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Say Hello to the Menu?

2012-07-25 Thread yvolk
Thanks Josh, I agree. But "Action overflow" has its problem also:
When there are any hidden actions, you do see the button. It's OK.
But when you don't see these "three vertical dots" anywhere, you're nervous 
because you don't have any proof that you didn't miss these "three dots"?! In 
this case having hardware "Action overflow" button (new name for the same old 
hardware "Menu" button) is a noticeable advantage, because you may always 
explicitly "check for hidden options"! I really see the need in such check when 
I'm searching and cannot find additional options in a application. 

Conclusion: Hardware "Action overflow" button (new name for the same old 
hardware "Menu" button) is a good backup for the onscreen "Action overflow" 
button and it may be seen as a nice option for Android v.3+ devices. 

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Say Hello to the Menu?

2012-07-25 Thread yvolk


On Wednesday, July 25, 2012 2:59:49 PM UTC+4, Mark Murphy (a Commons Guy) 
wrote:
>
> On Wed, Jul 25, 2012 at 2:05 AM, yvolk wrote: 
> > In the "Sync" screen of the "Accounts and Sync" 
>
> There is no "Accounts and Sync" on Jelly Bean in Settings, so I do not 
> know what you are referring to. 
>
Mark, I'm comparing two versions of Android: v.4.0.4 does have this 
submenu. In v.4.1. instead of selecting "Accounts and Sync" you have to 
select the name of the "Groups of accounts" e.g. "Email". Further select 
exact account - and you're on the "Sync screen".
I've tried this in the emulator trying to disable hardware buttons:
Yes, as you describe for the Chrome browser, here hardware "Menu" button is 
being replaced with soft "Action overflow" button, but they act exactly the 
same way: open the same list of options , initially hidden from a User .
So technically it's really a new way to open "List of actions" but in fact 
it is implemented as a pure replacement of hardware button with soft button 
having other name ("Action overflow") to open the same "Options menu" 
(without "grid choices") :-(

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Say Hello to the Menu?

2012-07-24 Thread yvolk
As you may remember, several months ago Google developers published the 
article "Say Goodbye to the Menu 
Button"
 
preaching us to replace Android "Options menu" with "Action bar" always 
visible to the User, and to forget about hardware Menu Button.
So far so good, I lived with this in my mind until recently I noticed that 
brand new Jelly Bean interface made move in an opposite direction:
In the "Sync" screen of the "Accounts and Sync" an option to "Remove 
Account" was moved from visible position of a "button" (not an Action Bar 
though) to the invisible position in the good old Options menu (see "per 
account settings in Jelly 
Beans
").
Today I've noticed that latest version of the Chrome browser on my Android 
4.0.4 device does actively use both Action Bar and Options Menu but for 
DIFFERENT purposes.
Actually Action Bar is generally not shown (to free up screen estate) and 
appears only after text selection on a page, presenting to the User 
available "actions" with selected text. Cool but it's NOT "Good Bye to the 
Menu Button".

Did the Android Developers' attitude to the Options Menu AND Menu Button 
really changed since January?

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Application to start with

2012-07-24 Thread yvolk
Hi TJ,
I would suggest you start from 
playing-tweaking-extending-taking-part-in-development of real and not very 
simple Open Source application which uses many of the Android features.
I personally started (three years ago...) from the Twitter Client 
application which I'm maintaining now, see  
https://github.com/andstatus/andstatus/wiki 
It is quite well documented, has links to the related apps/documentation 
and it uses:
- widget,
- asynchronous operations,
- data provider,
- account management (the Google's way. Like e.g. in the stock Email app)
- messaging between UI and background service, including retry queue and 
message persistence,
- themes and styles for Activities,
- OAuth which is used in many today's online services,
- quite sophisticated SQLite database structure/management,
- internationalization,
...

On the other hand, the application is not so large as e.g. above mentioned 
Email application: it really can be comprehended step-by-step.

Welcome!

On Thursday, July 19, 2012 2:19:50 PM UTC+4, tj wrote:
>
> I am new to android development. I have worked before on java and .NET but 
> am a bit confused with android programming. Can you plz suggest some ideas 
> as to on what basic application should I start working on. I made basic 
> TicTacToe game so I know the basic programming stuff. Thanks..

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en