Is there any convention on the Code Style to use? I mean, which tab
width to use, tabs or spaces, indentation style, line width, etc.? Is
there any Eclipse configuration that the code complies to? This would
make it much easier to merge code changed by different developers
because trivial changes would not grow diffs more than needed. Plus, I
can hit Ctrl-Shift-F whenever I feel the code needs a bit more
style ;-)
Matthias
As that article says "The rules below are not guidelines or
recommendations, but strict rules. You may not disregard the rules we
list below except as approved on a need-to-use basis.
Not all existing code follows these rules, but all new code is
expected to."
...I'll try to follow it.
--
Yuri
> I don't think we should reinvent a wheel for AndTweet, there is
> Android-wide "Code Style Guide" already:
> http://source.android.com/submit-patches/code-style-guide
Looks terrific. What is your take on creating an Eclipse formatting
XML file and checking it in so everybody can use the same file to
automatically format the code?
The only problem will be that after deciding on a global coding
style, all code will have to be formatted and committed otherwise we
might run into severe problems with merging.
> As that article says "The rules below are not guidelines or
> recommendations, but strict rules. You may not disregard the rules we
> list below except as approved on a need-to-use basis.
> Not all existing code follows these rules, but all new code is
> expected to."
I think that refers to the Android OS source code, since that is the
code base they have control over. They can hardly dictate the coding
style of anybody developing their own apps for Android, can they?
Anyway, attached you will find my current patch. I've tried it for
some time now (a few hours) with many interactions with AndTweet and
other apps and haven't seen a crash or even an NPE on the LogCat.
Plus, the time on Partial Wake Lock as displayed in the Spare Parts
app is 0 (or close to) for AndTweet, even though updates are pulled
from Twitter if the device is in sleep/stand-by.
Please tell me what you think about it.
Sincerely
Matthias
I was lazy to create formatting profile for Android myself, so I've
asked the question at stackoverflow.com:
http://tinyurl.com/yhm8avz
...Let's wait for a while :-)
Just modded the question up ;-) I'm really curious if anybody has an
XML file ready.
Greetings
Matthias
Update on Your today's new version of AndTweetService (see r137 in
SVN):
- I think that we should try to move Alarm initialization code from
TimelineActivity.onCreate to AndTweetService.startAutomaticUpdates ...
On Mar 19, 9:23 pm, Matthias Jordan <matthias.jor...@googlemail.com>
wrote:
>
> Anyway, attached you will find my current patch. I've tried it for
> some time now (a few hours) with many interactions with AndTweet and
> other apps and haven't seen a crash or even an NPE on the LogCat.
> Plus, the time on Partial Wake Lock as displayed in the Spare Parts
> app is 0 (or close to) for AndTweet, even though updates are pulled
> from Twitter if the device is in sleep/stand-by.
>
> Please tell me what you think about it.
>
> Sincerely
>
> Matthias
>
> AndTweet.patch.zip
> 7KViewDownload