uzmasters.ru Kirish
uzmasters.ru Forumga a'zo bo'lish
INTERNET VA DASTURLASH | Dasturlash tillari |
Mavzu: Adobe flash faylidan .apk yaratish.
Mavzu fayllari (0)
1. MasterOS (M) (479) [off] |TXT| 24|21 Sep 2018, 14:00
Hammaga yana bir bor salom.Biz siz bilan bu mavzuda Adobe flash .swf faylidan Android ilovalarni yaratishni o'rganamiz.Ma'lumotlarni batafsil yozib boraman.
2. Arey(1433) [off] |TXT| 24|21 Sep 2018, 14:05
Dasturga link?
3. wmKungaboqar (633) [3s] |TXT| 23|21 Sep 2018, 14:10
Javadaham yaratsa bolordi androidniki funksiyalari kopmi unga nisbatan
4. Besthakker(1350) [off] |TXT| 23|21 Sep 2018, 14:12
To'liq malumot yuqku
5. fokuschi (605) [off] |TXT| 22|21 Sep 2018, 14:13
Kungaboqar (21 Sep 2018, 14:10):
Javadaham yaratsa bolordi androidniki funksiyalari kopmi unga nisbatan
Kungaboqar, Qаndаy yаsаshni bilаsizmi?
6. MasterOS (M) (479) [off] |TXT| 22|21 Sep 2018, 14:18
Demak boshlaymiz.
Avvalo Adobe flash bu-.swf fayl bo'lib u yordamida internet uchun o'yin va dasturlar yaratiladi.Bu faylni ochish uchun maxsus Flash playerlar bo'lishi kerak bo'ladi.
Sizning kompingizda Android Studio,swf formatda o'yin, 72x72,96x96 o'lchamda iconka(rasm).png va Test uchun Android 2.2+ kerak bo'ladi.
Agar sizda PC yo'q bo'lsa unda AIDE bo'lishi kerak.
1) Android Studio >File>New>Android Project
1.1) AIDE>Create new project>Example>com.mycompany.example>
2) Icon.png ni drawable papkasiga joylashtiramiz.Keyin res>layout>main.xml faylini yaratamiz va uni ichiga:

<?xml version="1.0"encoding="utf-8"?>



<WebView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
yozamiz va saqlaymiz.
3) src>com.mycompany.example>exampleapp.javani ochamiz va shu kodni yozamiz:
package com.somedomain.MyGame;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.webkit.WebView;
public class MyGameActivity extendsActivity { WebView mWebView;
@Override public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);setContentView(R.layout.main);
mWebView = (WebView) findViewById(R.id.webview);
mWebView.getSettings().setjаvаsсriрtEnabled(true);
mWebView.getSettings().setPluginsEnabled(true);
mWebView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
mWebView.setBackgroundColor(Color.parseColor("#000000"));
mWebView.loadUrl("file:///android_asset/game.swf");
}
}
4) AndroidManifest.xml ga:

<?xml version="1.0"encoding="utf-8"?>


<manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.somedomain.MyGame"android:versionCode="1"android:versionName="1.0"><uses-sdk android:minSdkVersion="8"/><applicationandroid:icon="@drawable/ic_launcher"android:label="@string/app_name"><activityandroid:screenOrientation="landscape"android:label="@string/app_name"android:name=".MyGameActivity"android:theme="@android:style/Theme.NoTitleBar.Fullscreen"><intent-filter ><action android:name="android.intent.action.MAIN"/><category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
kodni yozamiz.
5) Compilyatsiya qilamiz
5.1) AIDE da Run orqali kompilyatsiya qilinadi.
6) Tayyor bo'lgan Game.apk ni telga o'rnatamiz.Tayyor.
Swf ni Apk ga aylantirishni ikkinchi turini keyingi safar yozaman.
7. wmKungaboqar (633) [3s] |TXT| 22|21 Sep 2018, 14:18
fokuschi (21 Sep 2018, 14:13):
Kungaboqar, Qаndаy yаsаshni bilаsizmi?
fokuschi, Ha flesh dasturida
Raxmat aytdi (1): fokuschi,
8. MasterOS (M) (479) [off] |TXT| 22|21 Sep 2018, 14:29
fokuschi, Android Studio yoki AIDE kerak bo'ladi.
8516dan so'ng qo'shdi...
Mans scrinshot
2018.09.21-14.26.22.jpeg

Yuklangan: 101 marta (108.99KB)
2018.09.21-14.27.15.jpeg

Yuklangan: 88 marta (75.51KB)
2018.09.21-14.27.48.jpeg

Yuklangan: 98 marta (78.79KB)
2018.09.21-14.32.59.jpeg

Yuklangan: 73 marta (49.94KB)
2018.09.21-14.33.31.jpeg

Yuklangan: 69 marta (15.93KB)
swfapk.zip
Yuklangan: 1 marta (83.55KB)
Raxmat aytdi (1): fokuschi,
9. Tayotabek(1242) [off] |TXT| 18|23 Sep 2018, 02:02
Yozilgan ködlarni ìzohlashni iloji bormi yani bu köd palon vazifani bajaradi bunisi palon. )))
Ijobiy (1): Arey,
10. MasterOS (M) (479) [off] |TXT| 13|23 Sep 2018, 13:05
Tayotabek, Bor lekin.Android dasturlashni bilmasangiz.Yozgandan foyda nima.Bunda xuddi Finland tilini bilmaydigan odamga finlandcha xat yozganday gap bo'ladi.
Ijobiy (1): Tayotabek,
11. Kinguzz(1116) [off] |TXT| 12|24 Sep 2018, 07:04
Finland tilini bilmasakda xat yozib hech bolmasa bitta ikkita sozni yodlab qolsak maylimi
Ma'lumotlar
Mavzu id raqami: 2868
Mavzuga oid xabarlar soni: 11 ta
So'ngi faollik vaqti: 24 Sep 2018, 07:04
uzmasters.ru Onlayn 59 (15/44)
uzmasters.ru Forumga a'zo bo'lish
uzmasters.ru Forumdan qidirish
uzmasters.ru Bosh sahifa
uzmasters.ru