Skip to main content

Android: Integrate tinypy into android

Integrate tinypy into Android

For this project you will integrate a stripped down version of Python into the Android distribution.

You can find tinypy here:

http://code.google.com/p/tinypy/

# Non-members may check out a read-only working copy anonymously over HTTP.
svn checkout http://tinypy.googlecode.com/svn/trunk/ tinypy-read-only
/tinypy$ python setup.py tinypy boot math pygame

In addition, to getting tinypy running in the emulator, you will write a small application that allows you to execute small python scripts using tinypy.

luwa

- The idea is making Android be able to run python source code.

- Create GUI for accepting an input (some URLs) to run python.

- Clusternode for Jaa => bass17
ssh steelhead, ssh bass7
/home2/pyoophoon/myandroid #root for the src of everything time make # make file and you also see the elapse time on making make -j is run faster????? test it 

- The project/open source can be drop into the distribution tree

- /tools in sdk which is subset of tools in src of myandroid

- Command for copy files that is made
du -sh * # see the size in the path (we should concentrate on the output path -> /myandroid/out/target/product/generic)
tar tvf aimages.tar
df .
make some folder on the local
cp aimages ~/jaatest
scp www:aimages.tar
cp *qemu ~/jaatest (it is located in /prebuild/android-arm/kernel/vmlinux-gemu)
tar xvf ./aimages.tar

- Command for running emulator
which emulator # make sure that file is located 
emulator -system /. # point the system to the folder we made 

- Command for control command on android emulator
telnet localhost 5554 # port that show on emulator vm start vm stop kill 
adb shell
#top # what run on the phone (ctrl C to exit) tinypy should be shown here 
#ping yahoo.com 
#exit

- go to /myandroid/external/ 
- cd ping # see the example of c file - /myandroid/out/target/product/generic/system/bin 
- file ping # show that this can execute on android


tar cvf /home/pyoophoon/cs636/test/aimages.tar ./out/target/product/generic/

cp -R ./prebuilt/android-arm/kernel/*qemu /home/pyoophoon/cs636/test/
cp -R ./out/target/product/generic/*.img /home/pyoophoon/cs636/test/



- try to use openssl : see how it works

- look in /myandroid/delvik/vm/interp

Using screen command
screen # startup
use detach to change to another screen
screen -r # for resume
----------------------------------------------------------------
Google chage the thing in android kernel for the purpose of power management.

build-system.html #it is very interesting document

Comments

Shaoting said…
Oh. I thought I found the solution here....

Popular posts from this blog

How to agree in English - too / neither /either / so

1. To agree with postive statement (Me too) “I love strawberry ice cream.” “Me too!” “I’ve been traveling a lot for work lately.” “Me too.” “I’m going to the beach tomorrow.” “Me too!” 2. To agree with negative statement (Me neither) “I can’t draw very well.” “Me neither.” “I haven’t seen the new movie yet.” “Me neither.” “I don’t go to the gym very often.” “Me neither.” 3. To respond in positive (So do I) “I always sleep late on the weekends.” “So do I.” “I’m from Moscow.” “So am I!” “I studied chemistry in college.” “So did I.” 4. To respond in negative (Neither do I, Nor do I, I don't either) “I don’t think that’s a good idea.” “Neither do I.”“Nor do I.” “I don't either.” “I’m not very outgoing.” “Neither am I.” “Nor am I.” “I'm not either.” “I didn’t like broccoli when I was a kid.” “Neither did I.” “Nor did I.” “I didn't either.”

Book of Answer Privacy Policy

Privacy Policy Privacy Policy Jaa Yoo built the Book of Answer app as a Free app. This SERVICE is provided by Jaa Yoo at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy...

Tealeaf: Set up Magento

To access admin page go to http://127.0.0.1/magento/index.php/admin/ (change localhost to 127.0.0.1) default password for admin is 123123 To change the password  UPDATE admin_user SET password=MD5('mypassword') WHERE username='admin'; change {{base_url}} to the exact web address source: http://www.magentocommerce.com/wiki/general/resetting-admin-password **************************************************************** Login and Add to cart Problem But due to standard restrictions browsers don’t save cookie for domains with no dots in domain name. You can try to access it with http://localhost.com /magento   reference:  http://www.magentocommerce.com/boards/viewthread/4337 Solution Using 127.0.0.1 instead of my machine name.   Note: Don't forget to change the default link in magento configuration page and Prototype_usf target p ag e Anyway, in IE, Fiddler cannot capture 127.0.0.1 host address.  So, using Firefox instead. Go to Tool -> Options -> Network tab -...