Code repository to learn by examples

by Nando Android » Fri, 04 Jun 2010 00:14:24 GMT


Sponsored Links
 All,

Is there any source code repository for Android apps so one can learn by
example?

Thanks.

--



Code repository to learn by examples

by TreKing » Fri, 04 Jun 2010 02:50:02 GMT


 




You mean aside from the samples in the documentation and the source code
itself?

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking 

--


Sponsored Links


Code repository to learn by examples

by Nando Android » Fri, 04 Jun 2010 03:42:29 GMT


 Correct. TreKing.






>



Code repository to learn by examples

by Maps.Huge.Info (Maps API Guru) » Fri, 04 Jun 2010 09:22:38 GMT


 Try here:

 http://code.google.com/hosting/search?q=label %3AAndroid

This is a great place to find quality examples of full apps.

-John Coryat

--



Code repository to learn by examples

by Nando Android » Tue, 08 Jun 2010 03:47:07 GMT


 Thanks John!

On Thu, Jun 3, 2010 at 7:22 PM, Maps.Huge.Info (Maps API Guru) <



>



Other Threads

1. Why does Android use Binder for IPC?

what is the advantage and special feature of Binder in android?
--~--~---------~--~----~------------~-------~--~----~

2. Strange GestureDetector side effect when used in a subclass of FrameLayout?

Hi,

I'm trying to use a GestureDetector in a subclass of FrameLayout,
which has a child ListView.
But it seems the GestureDetector has some side effect which causes
abnormal scrolling behaviors for the child ListView, e.g. sometime
when flinging down, the list actually scrolls upwards; when the list
is being flung (i.e. the scrolling animation is still playing) and you
press and hold on the list, the scroling stops (which is normal), but
as soon as you release, the list scrolls.

The code for the layout is shown below.  Apparently it actually does
nothing extra but calling GestureDetector.onTouchEvent().  If the line
"boolean handled = mGestureDetector.onTouchEvent(ev);" is commented
out, the child ListView will scroll as normal.  Is it because the call
to onTouchEvent() takes some time that confuses the child ListView?

Also, it seems this problem only occurs when the list item is complex,
e.g. consisting of multiple ImageViews, TextView etc.  Everything
works fine if it's just a list of TextView's.

public class MyLayout extends FrameLayout implements OnGestureListener
{
 ...
        @Override
        public boolean dispatchTouchEvent(MotionEvent ev) {
                boolean handled = mGestureDetector.onTouchEvent(ev);
                return super.dispatchTouchEvent(ev);
        }

        public void onShowPress(MotionEvent e) {
        }

        public boolean onSingleTapUp(MotionEvent e) {
                return false;
        }

        public void onLongPress(MotionEvent e) {
        }

        public boolean onDown(MotionEvent e) {
                return false;
        }

        public boolean onFling(MotionEvent e1, MotionEvent e2, float
velocityX,
                        float velocityY) {
                return false;
        }

        public boolean onScroll(MotionEvent e1, MotionEvent e2, float
distanceX,
                        float distanceY) {
                return false;
        }
}


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

3. About porting dalvik to Symbian

4. Color.colorToHSV bug

5. how to test bluetooth handset/handsfree without phone module

6. Strange GestureDetector side effect when used in a subclass of FrameLayout?

7. Unused java hardware acceleration on the G1 (was Android game developers desperately need optimised game engine example code ...)