Information

Google Android

Android Devices and Development

Members: 30
Latest Activity: Mar 28

Discussion Forum

Help me to install google playe

Dear all,I am trying to install Google Play to my phone.It doesn't work when I installed.My phone is Huawei T8620 and android version is 4.0.3. How am I do for that? Gmailapplication is also can't…Continue

Started by Nyein Chan Zay Dec 21, 2012.

Free Nexus One or Motorola Milestone for Myanmar related App for Android 2 Replies

Get Nexus One or Motorola Milestone for free of charge if you can develop a Myanmar-related application for Android platform. It's a sort of competition for Myanmar developers to get interested in…Continue

Tags: milestone, nexusone, android

Started by Sean Lin. Last reply by Sean Lin Apr 27, 2010.

Comment Wall

Comment

You need to be a member of Google Android to add comments!

Comment by M.N on August 30, 2013 at 4:07pm

font မတူလို႕ ျဖစ္နို္င္ပါတယ္။ ဒီဆိုက္ကေန Download Zawgyi Font http://www.myathayaphu.com/download.aspx download လုပ္ထား တာပါ။

credit ကို ဒီမူရင္းဆိုက္ ၂ ခု ကိုေပးပါတယ္။ အဲဒီမွာ လုပ္စရာ က်န္ေနတာေလးတစ္ခုရွိေသးတယ္။ စမ္းေတာ႔မၾကည္႔ရေသးဘူး။ :D

Failures
Now, if we restart the emulator, everything will return to default. No more “su” and Android Market. Why? The reason is because whatever we done to the /system, it will not save to the ROM image.

The /system is actually from the system.img, installed with android-2.2 in my case. This file is mounted in emulator as yaffs2 file system format. In order to customise this ROM image, I have tried several ways.

Using unyaffs, it can only extract the image, but I cannot continue. I can simply pull the /system using adb command without it.

Using yaffs2utils, unyaffs2 produced nothing. And the image built by mkyaffs2 does not allow the emulator to boot.

Using mkyaffsimage, also not work as above.

Some resources mentioned that, we can get the mkyaffs2image utility when building the Android source. But the problem is, to get the source, it requires a lot of disk space and need a long time to download.

So, what is the best way to modify the system.img? I even tried the low level way using dd to extract the /dev/block/mtdblock0, but failed.

Solution
Finally, I tried to solve it with userdata-qemu.img. This is the /data folder that will always modified when we install apps in the emulator. Restarting the emulator does not reset /data. Therefore, we can simply create the ROM image from /data. We can done it simply clean all the /data.

(If you want to read more, go to the following sites.)

http://forum.xda-developers.com/showthread.php?p=27858332

http://androidv5.wordpress.com/2012/06/24/root-your-emulator/

Comment by khinelay on August 30, 2013 at 12:57pm

@ M.N, ေက်းဇူးတင္ပါတယ္။ ျမန္မာ font ေပၚသြားပါျပီ။ တစ္ခုေမးခ်င္တာက M.N screen shot မွာေပၚတဲ့ ျမန္မာ font က "ေက်းဇူးတင္ပါတယ္" ဆုိအဲဒီအတိုင္းေပၚျပီး ကြ်န္မဆီမွာ အဲလို အမွန္မေပၚတာ ဘာလို႔ပါလဲ။ emulator မွာအဲလုိပံုစံေပၚေနတာပါ။

Comment by M.N on August 30, 2013 at 11:03am

ဒါကေတာ႔ final result ပါ။

Comment by M.N on August 30, 2013 at 11:02am

၁။ Android Virtual Device တစ္ခု ကို ေအာက္ကပံုစံအတိုင္း create လုပ္ပါ။ Android 2.2 နဲ႔ ARM processor ကို သံုးထားပါတယ္။

၂။ Android superuser.apk နဲ႕ su ကို ဒီမွာ download လုပ္ျပီး zip ျဖည္ပါ။ ARM devices (2.0 – 4.1) ေအာက္က  Superuser-3.1.3-arm-signed.zip ကို download လုပ္ ပါတယ္။

http://androidsu.com/superuser/

၃။ zip folder ၂ ခုပါ ပါတယ္။ META-INF နဲ႔ system folder ပါ။  system folder ထဲက app ထဲက Superuser.apk နဲ႕ system ထဲက bin ထဲက su files ၂ ခုလံုး copy လုပ္ျပီး \adt-bundle-windows-x86_64-20130522\sdk\platform-tools ထဲမွာ paste လုပ္ပါ။ Zawgyi-One.ttf ကို လဲ DroidSansFallback.ttf လုိ႕ နာမည္ေျပာင္းျပီး \adt-bundle-windows-x86_64-20130522\sdk\platform-tools ထဲမွာပဲ paste လုပ္ပါ။(\adt-bundle-windows-x86_64-20130522\sdk\platform-tools ဆုိတဲ႔ folder က android developer tools bundle folder ထဲမွာပါ။ ရွာမေတြ႕ရင္ Windows Search ကေနလဲ ရွာလို႔ရပါတယ္။)

၄။ Eclipse ကို start လုပ္ျပီး command prompt ကေန bundle folder ထဲက sdk\tools folder ကို CD လုပ္ျပီး step 1 မွာ လုပ္ထားတဲ႔ "MyAndroid" ဆိုတဲ႕ emulator ကုိ command prompt ကေနျပီး run ပါ။ 512 က extra disk space ေပးတာပါ။ အဲလိုမလုပ္ရင္ system folder ထဲကို push file လုပ္တဲ႔အခါမွာ “failed to copy ‘su’ to ‘/system/xbin/su’: Out of memory” message ျပပါတယ္။ (push and pull က linux အေခၚေပါ႔။ windows မွာ push က paste နဲ႕ ဆင္ျပီး pull က copy နဲ႕ဆင္ပါတယ္။ အလြယ္ေျပာေတာ႔ push က သြင္းတာ။ pull က ထုတ္တာ။)

C:\Users\MN\Documents\Android\adt-bundle-windows-x86_64-20130522\sdk\tools>emu
lator -avd MyAndroid -partition-size 512 -no-snapshot-load

၅။ emulator က အစအဆံုး run ျပီး ready ျဖစ္မွ ေအာက္က commands ေတြ ဆက္ run ပါ။ tools ကေန platform-tools ကို change directory လုပ္ပါ။
C:\Users\MN\Documents\Android\adt-bundle-windows-x86_64-20130522\sdk\tools>cd..

C:\Users\MN\Documents\Android\adt-bundle-windows-x86_64-20130522\sdk>cd platform-tools


C:\Users\MN\Documents\Android\adt-bundle-windows-x86_64-20130522\sdk\platform-tools>adb remount
remount succeeded


C:\Users\MN\Documents\Android\adt-bundle-windows-x86_64-20130522\sdk\platform-
tools>adb push su /system/xbin/su
81 KB/s (380532 bytes in 4.581s)

C:\Users\MN\Documents\Android\adt-bundle-windows-x86_64-20130522\sdk\platform-
tools>adb shell chmod 06755 /system

C:\Users\MN\Documents\Android\adt-bundle-windows-x86_64-20130522\sdk\platform-
tools>adb shell chmod 06755 /system/xbin/su

C:\Users\MN\Documents\Android\adt-bundle-windows-x86_64-20130522\sdk\platform-
tools>adb install Superuser.apk
75 KB/s (1468798 bytes in 19.077s)
        pkg: /data/local/tmp/Superuser.apk
Success

C:\Users\MN\Documents\Android\adt-bundle-windows-x86_64-20130522\sdk\platform-tools>adb push DroidSansFallback.ttf /system/fonts
301 KB/s (340172 bytes in 1.101s)

Comment by khinelay on August 29, 2013 at 10:39am

@M.N, Thank you for your reply. ေက်းဇူးတင္ပါတယ္။ ဖုန္းကေတာ့ root ရိုက္ျပီးသားဆုိေတာ့ အဲဒီမွာ လွမ္း run လုိက္ရင္ေတာ့ရပါတယ္။ emulator မွာေပၚဖုိ႔ su folder ကိုရွာမေတြ႔ေသးဘူးျဖစ္ေနတာ။ ADT bundle နဲ႔သံုးတာပါ။ ဆက္ေလ့လာၾကည့္လုိက္ပါဦးမယ္။ ေက်းဇူးတင္ပါတယ္။

Comment by M.N on August 24, 2013 at 11:58am

Android application ဘယ္လုိစေရးမလဲ။

ထံုးစံအတိုင္း Hello World ကပဲစေရးပါလို႔ အၾကံေပးခ်င္ပါတယ္။ IDE(Integrated Development Environment) အတြက္ Eclipse ကို download မလုပ္ရေသးဘူးဆိုရင္ Adnroid developer website ကေန download လုပ္ရပါမယ္။ အခုဆုိရင္ all-in-one packet zip file အေနနဲ႔ download လုပ္လို႔ရပါျပီ။

Android developer tools link -> http://developer.android.com/sdk/index.html

Java JDK latest version ကို download လုပ္ျပီး install လုပ္ပါ။(အေပၚက eclipse နဲ႔ android developer tools ေတြက install လုပ္စရာမလိုပါ။) အခုေနာက္ဆံုး jdk version for windows 32bit အတြက္ jdk-7u25-windows-i586.exe ကို download လုပ္ပါ။

ျပီးရင္ SDK Manager ကို run ျပီး emulator အတြက္ လုိအပ္တဲ႔ latest software ေတြ download လုပ္ပါ။ (SDK Manager က android developer tools zip file ထဲမွာပါ ပါတယ္။ eclipse ကို run ျပီးမွ tool bar ကေနတဆင္႔ SDK Manager ကို run ရင္လဲရပါတယ္။ အတူတူပါပဲ။) SDK Manager ကေန download လုပ္တဲ႔ packets အေရအတြက္ မ်ားရင္မ်ားသေလာက္ အခ်ိန္အေတာ္ၾကာတတ္ပါတယ္။ (it’s time to go for tea break! J)

အဲဒါေတြျပီးရင္ eclipse ကုိ run ျပီး first application ကို စေရးနိုင္ပါျပီ။ Happy Coding!

Google မွာ Android tutorials ေတြ အမ်ားၾကီးပါ။

Android developer ေတြအတြက္ Official website -> http://developer.android.com/training/basics/firstapp/index.html

Android References (Library ေတြ Class ေတြ အေၾကာင္း class တစ္ခုခ်င္းစီမွာပါ၀င္တဲ႔ ေခၚသံုးနိုင္တဲ႔ methodsေတြ အေၾကာင္း detail reference ပါ။ )

http://developer.android.com/reference/packages.html

Android OS Source Code( သူတို႔ ဘယ္လို Android ကို ေရးထားသလဲ သိခ်င္ရင္ ဒီမွာ ေလ႔လာလို႔ရပါတယ္။)

http://grepcode.com/project/repository.grepcode.com/java/ext/com.go...

နားလည္လြယ္တဲ႔ basic/Intermediate tutorials ->

www.mkyong.com/tutorials/android-tutorial/

For Localization(GPS), Networking(HTTP/JSON), Multithreading(AsyncTask), 2D drawing

http://www.coreservlets.com/android-tutorial/

Stackoverflow (Android ေမးခြန္းေတြရဲ႕ အေျဖေတြ ဒီမွာ ေတာ္ေတာ္ရွာေတြ႔နိုင္ပါတယ္။ )

http://stackoverflow.com/questions/tagged/android

Youtube

Derek Banas
http://www.youtube.com/watch?v=boj0f_O3i88&feature=share&li...
Thenewboston
http://www.youtube.com/watch?v=exFmZ8AkYfQ&feature=share&li...

ebooks

The Busy Coder's Guide to Android Development

 http://commonsware.com/Android/

Professional Android 4 Application Development(by Reto Meier)

http://www.4shared.com/office/nxOZirE7/professional_android_4_appli...

Teach Yourself Java in 24 Hours

http://www.4shared.com/office/mEHTDQor/Teach_Yourself_Java_in_24_Ho...

(p.s. basic အပိုင္းနားလည္ျပီဆိုရင္ Layout for multi screen အေၾကာင္းေလ႔လာျဖစ္ေအာင္ေလ႔လာပါ။ ဘာျဖစ္လို႔လဲဆိုေတာ႔ android device ေတြက screen sizes နဲ႔ resolution ေတြ မတူၾကပါဘူး။ Phone မွာပဲ size အမ်ိဳးမ်ိဳးရွိပါတယ္။ tablet လဲ အဲလိုပဲ။ http://developer.android.com/guide/practices/screens_support.html )

 

 

 

Comment by M.N on August 24, 2013 at 10:15am

သိသေလာက္ေျဖၾကည္႔မယ္ေလ။ Android က Emulator ျဖစ္ျဖစ္ real device ျဖစ္ျဖစ္ root လုပ္ျပီးမွ font install လုပ္လို႔ရတယ္။ ကုိယ္ install လုပ္မဲ႔ font ကိ္ု .ttf အေနနဲ႔ download လုပ္ျပီး DroidSansFallback.ttf လို႔ အမည္ေျပာင္းျပီး root လုပ္ထားတဲ႔ android ရဲ႕ root\system\fonts folder ထဲကို copy/paste လုပ္ရံုပါပဲ။

root လုပ္နည္းကေတာ႔ google မွာရွာၾကည္႔လိုက္ပါ။

References: http://stackoverflow.com/questions/5095234/how-to-get-root-access-o...

http://www.codeproject.com/Questions/260867/Rooting-android-emulator

Here is the list of commands you have to run while the emulator is running, I test this solution for an avd on Android 2.2 :

adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system 

adb push su /system/xbin/su 

adb shell chmod 06755 /system 

adb shell chmod 06755 /system/xbin/su

It assumes that the su binary is located in the working directory. You can find su and superuser here : http://forum.xda-developers.com/showthread.php?t=682828. You need to run these commands each time you launch the emulator. You can write a script that launch the emulator and root it.

Comment by khinelay on August 23, 2013 at 3:25pm

Emulator မွာ ျမန္မာ font ေပၚေအာင္က်ေတာ့ ဘယ္လုိလုပ္ပါလဲ။

Comment by MELODYMAUNG on November 21, 2012 at 2:30pm

Where to start for developing android app?

Comment by xiao yuan on July 19, 2012 at 5:44pm

Hi I am new android developer Let's share the knowledge.

 

Members (30)

 
 
 

© 2014   Created by Ko Chit.

Badges  |  Report an Issue  |  Terms of Service