I haven't checked it yet, but it's a nice initiative. I expect others
can share their tools/libraries as well : )

Thanks

On Apr 2, 4:24 pm, "Carl H." <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have been reusing a lot of code across several sample applications
> while developing android. I am trying to refactor most of my code so I
> could package it into a general jar. I would like to share what I have
> so far; in order for others to add their own code snippet into the
> extra library. It would then be possible to add another layer on top
> of android and have reusable components.
>
> Installation:
>
> Just add the following jar to your eclipse build 
> path:http://androforge.net/gf/download/frsrelease/103/47/androforge.jar
>
> You might need the geoname packages for some functionalities (lat/long
> to real address):http://www.geonames.org/source-code/
>
> Current components:
>
> 1. Simple Camera:
> in your manifest:
> <activity android:name="net.androforge.media.SimpleCamera" />
>
> To call the camera:
> Intent camera = new Intent(this, SimpleCamera.class);
> startSubActivity(camera, CAMERA_REQUEST);
>
> To take a picture, click on the middle button. To get the image in
> your calling activity:
> protected void onActivityResult(...){..  Bitmap pic = (Bitmap)
> extras.getParcelable("bitmap");...}
>
> 2. Location Selector Dialog - select from a list of location provider
> and get a location (non 0):
>
> In your manifest you ll need all the permission for location
> providers.
>
> In your activity which requires a location:
>
> Message message = Message.obtain(mHandler);
> LocationDialog ld = new LocationDialog(SpotEdit.this, null,
> message,cancel);
> ld.show();
> ...
>     private Handler mHandler = new Handler()    {
>         public void handleMessage(Message msg)    {
>             Location loc = (Location)
> msg.getData().get("location");...}}
>
> This is NOT reliable code. However I wanted to share my code so maybe
> others would join the project and add their own code snippet,
> following the structure set within the source. There are some bugs
> most probably (I noticed a null pointer with the LocationDialog that I
> need to fix).
>
> I also intend to setup a wiki (not working at the moment) for
> instructions similar to the above.
>
> PS: please allow my very low budget VPS some time to load...
>
> Thanks,
> Carl
>
> http://androforge.net
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to