Never take life seriously. Nobody gets out alive anyway.

android-Installing & Run application on sdcard


WARNING: Proceed at your own risk, this may damage your phone and/or make it unstable. This is for advanced users only and should only be attempted by those who understand the risks of the following changes

Original post: http://www.androidin.net/thread-1099-1-1.html
AS usual, this is for those WITH ROOT ONLY

Preparation:
1. Installed JF RC30 V1.2 (only if you are using JF RC30 1.2 , this is not compatible with RC8)
2. Make a NANDROID backup (you may get everything back to normal if the phone screw up)
3. A MICRO-SD card with 2 partitions divided : (1) a fat-32 partition, (2) a ext2, you need a linux/mac to format the sdcard with ext2 partition
* the fat 32 will be mounted as sdcard and the ext2 will be mounted as /sd for application data, make your own decision for the size*
4. insert the sdcard with 2 partition on the phone
5. set the phone to aeroplane mode for safe

Procedure:
1. adb pull /system/etc/mountd.conf /*somewhere you may want to back it up*
2. rm -f /system/etc/mountd.conf
3. using the modified mountd.conf, adb push /*the path of modified mount.conf */mount.conf /system/etc/mountd.conf
4. adb pull /system/init.rc /*somewhere you may want to back it up*
5. rm -f /system/init.rc
6. using the modified init.rc, adb push /*the path of modified init.rc*/init.rc /system/init.rc
7. reboot
8. busybox cp -a /data/app /sd/
9. rm -r /data/app
10. ln -s /sd/app /data/app
11. reboot

Now, the phone will install and run everyone on /sd, still mounting /sdcard as usual. It is possible that to mount or unmount /sdcard by usb without everything screwed up. Beware that your sdcard will be used as part of system, removing the sdcard may freeze the phone. If the phone get freeze because of removing the sdcard, plug the sdcard again and soft reset.
It is also possible that copy the application data to another card. If you want to change the sdcard, switch the phone off, mounting the sdcard to computer directory, copy the /sd partition to another sdcard with ext2 partition

Back to normal:
1. rm -f /system/etc/mountd.conf
2. adb push /*the backup of mountd.conf* /system/etc/mountd.conf
3. rm -f /system/init.rc
4. adb push /*the backup of init.rc* /system/init.rc
5. busybox cp -a /sd/ /data/app
6. rm -r /sd/

Change of mountd.conf:
changing /dev/block/mmcblk0 to /dev/block/mmcblk0p1
change of init.rc:
adding
insmod /system/modules/2.6.25-01843-gfea26b0/kernel/fs/ext2/ext2.ko
mknod /dev/mmcblk0p2 b 179 2 1000
mount ext2 /dev/mmcblk0p2 /sd noatime nodiratime


android mega pack

Android apk mega collection | 2.2 GB

Download Available

Click Here to Download Android apk mega collection

Download (Hotfile)

http://hotfile.com/dl/28922811/62fcd1c/Android.apps.part01.rar.htmlhttp://hotfile.com/dl/28922817/8cead32/Android.apps.part02.rar.htmlhttp://hotfile.com/dl/28922814/f8880d8/Android.apps.part03.rar.htmlhttp://hotfile.com/dl/28922816/44addaf/Android.apps.part04.rar.htmlhttp://hotfile.com/dl/28922818/813dccb/Android.apps.part05.rar.html

http://hotfile.com/dl/28922820/2d95baf/Android.apps.part06.rar.html

http://hotfile.com/dl/28922812/90074d4/Android.apps.part07.rar.html

http://hotfile.com/dl/28922815/04fd48b/Android.apps.part08.rar.html

http://hotfile.com/dl/28922813/baee6d2/Android.apps.part09.rar.html

http://hotfile.com/dl/28922819/3fa092d/Android.apps.part10.rar.html

http://hotfile.com/dl/28923148/cb3306d/Android.apps.part11.rar.html

http://hotfile.com/dl/28923171/90dc0d9/Android.apps.part12.rar.html

http://hotfile.com/dl/28923174/1079163/Android.apps.part13.rar.html

http://hotfile.com/dl/28923176/9e90109/Android.apps.part14.rar.html

http://hotfile.com/dl/28923177/c1c43e4/Android.apps.part15.rar.html

http://hotfile.com/dl/28923196/a9c1987/Android.apps.part16.rar.html

Mirror:
Download (Uploading)

http://uploading.com/files/6426d4eb/Android.apps.part01.rar/

http://uploading.com/files/a1c4df84/Android.apps.part02.rar/

http://uploading.com/files/15f3a84b/Android.apps.part03.rar/

http://uploading.com/files/m271b255/Android.apps.part04.rar/

http://uploading.com/files/82b946fb/Android.apps.part05.rar/

http://uploading.com/files/b8a22f97/Android.apps.part06.rar/

http://uploading.com/files/6eb5dce6/Android.apps.part07.rar/

http://uploading.com/files/m6c55619/Android.apps.part08.rar/

http://uploading.com/files/137997a1/Android.apps.part09.rar/

http://uploading.com/files/d62e2f9c/Android.apps.part10.rar/

http://uploading.com/files/b3a317bc/Android.apps.part11.rar/

http://uploading.com/files/93fcf5e7/Android.apps.part12.rar/

http://uploading.com/files/22m78mc9/Android.apps.part13.rar/

http://uploading.com/files/e5d9cfm9/Android.apps.part14.rar/

http://uploading.com/files/eb46e662/Android.apps.part15.rar/

http://uploading.com/files/b2881mea/Android.apps.part16.rar/

Live Camera Previews in Android

This code replaces an earlier version which is still available

The Android SDK provided by Google doesn’t provide any camera emulation beyond a stand-in animation (see below). Since Google haven’t yet provided a working implementation (or even a date by which one will be available), I’m publishing the source code for a set of temporary classes that I wrote to overcome this limitation. It’s the first code I wrote on the Android platform, and it was written in haste, though it has functioned very well for me.

The code is public domain. I make no warranty as to its fitness for any particular purpose.

The code consists of:

  • CameraSource
    A light interface that protects client code from the choice of camera.
  • GenuineCamera
    CameraSource implementation that uses the device’s camera.
  • HttpCamera
    CameraSource implementation that GETs images over an HTTP connection.
  • SocketCamera
    CameraSource implementation that obtains images directly over a TCP/IP connection.
  • BitmapCamera
    CameraSource implementation that uses a supplied bitmap.
  • WebcamBroadcaster
    A small Java application that uses JMF to broadcast captured stills over the network.

Results

When drawing the output of the genuine camera to screen, you will see something that looks like this:

Device’s Camera preview output.

When drawing the output of a remote camera that is obtaining frames from a running webcam broadcaster you would see this (if you were stood over my desk).


Still obtained from a webcam broadcaster.

To save myself more time, I chose to produce a small settings configuration activity too (the code for which is not included).

A simple configuration activity for the camera settings.

Usage

Using a camera source is very simple:

CameraSource cs = new SocketCamera("192.168.0.100", 9889, 320, 240, true); if (!cs.open()) { /* deal with failure to obtain camera */ } while(/*some condition*/) { cs.capture(canvas) //capture the frame onto the canvas } cs.close();

The HttpCamera implementation should be able to obtain stills from any HTTP serving webcam or webcam software. At present I am using WebCam2000 which I run under Windows XP.

Fabian Necci kindly emailed me to let me know that he has successfully used this code on a MacBook using EvoCam to publish JPEG frames to an internal web server. Other software should be available on other systems.

Torben Vesterager has used the code with his MacBook Pro laptop which has Apple’s own iSight built-in. He reports that the camera only supports YUVFormats and so had to change the code in the WebcamBroadcaster to use YUVFormatinstead of RGBFormat.

Jeffrey Sharkey has used Gentoo Linux with a Logitech QuickCam express using the WebcamBroadcaster and the Linux-native JMF library. He followed this by usingDV4Linux to get JMF to recognize his firewire MiniDV camera. This gave him much clearer pictures in Android; he wrapped his JMF calls using the dv4lstart utility:

dv4lstart jmfinit dv4lstart java WebcamBroadcaster

If you successfully use this code on a platform other than those listed above, or have used other webcam software, please let me know so that I can include it in this documentation for the benefit of others.

The SocketCamera implementation relies on a WebcamBroadcaster to be serving webcam stills from the address & port specified in its constructor.

To run a WebcamBroadcaster you will need JMF installed and you may need to supply the library location to the JVM when you run the application (this depends on how you install it). For example, on my machine (currently Windows XP) I use:

java "-Djava.library.path=C:\Program Files\JMF2.1.1e\lib" WebcamBroadcaster

You can pass the following combination of parameters to the application, all of which are strictly positive integers (all dimensions in pixels):

  • WebcamBroadcaster port
  • WebcamBroadcaster width height
  • WebcamBroadcaster width height port

Alternatively, you may provide no parameters, in which case the defaults are width: 320, height: 240 and port: 9889.

Notes

  • I am not able to provide support/advice relating to JMF. Sorry, but the library is old and the documentation stale. I am using it here because its the quickest option, not necessarily the best. You can reimplement the WebcamBroadcaster application using any language/library you choose, so long as it emulates the extremely simple behaviour of the WebcamBroadcaster class.For an easy life I recommend using the HttpCameraimplementation.
  • The SocketCamera implementation can be expected to outperform the HttpCamera implementation significantly.
  • Obviously performance is poor, every frame needs to be compressed, sent over a network and then decompressed. This is not a useful long term implementation. Nevertheless, performance isn’t so bad that the code is unusable. On my machine, capturing a frame using SocketCamera takes about 100-150ms, HttpCamera is typically two to three times slower.
  • Android currently features a very significant bug that disregards the connect timeout setting for URL connections. Until that bug is fixed, the HttpCamera implementation will hang the first time it fails to connect to the webcam server. I believe this bug was resolved in the m5 emulator releases, but have not confirmed it.
  • When capturing a sequence of stills, JMF has a habit of ‘freezing’ on a single frame. If this happens, just stop and start theWebcamBroadcaster application. You do not need to restart your Android application.
  • I don’t recommend using “localhost” when specifying an address to which the camera should connect. The Android device will probably treat this as the loopback on the emulated device itself. Instead use the IP address of the machine which is hosting the webcam (or WebcamBroadcaster).
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s