lenchik_vla, а если так code_31588.txt
Этот топик читают: Гость
Ответов: 1821
Рейтинг: 168
|
|||
карма: 5 |
| ||
файлы: 1 | code_31588.txt [1KB] [404] | ||
Голосовали: | lenchik_vla |
Ответов: 199
Рейтинг: 7
|
|||
sаmakacd спасибо! А все таки почему метод round не работает?
|
|||
карма: 0 |
|
Ответов: 1821
Рейтинг: 168
|
|||
lenchik_vla, а кто сказал что не работает 1.5 к 2 нормально округляет. Если ты о округлении с заданной точностью, то Android, я так понял, в классе Math такой возможности не даёт
|
|||
карма: 5 |
|
Ответов: 199
Рейтинг: 7
|
|||
sаmakacd, понял. У тебя примерчика не будет на компонент ProgressDialog. Делаю такcode_31589.txt
выходит при компиляции вот Подготовка к сборке проекта... Генерация кода целевого языка Компоновка проекта... Command line: Android.exe "Crogram FilesHiAsmElementsandroidcodeProject12.java" "Crogram FilesHiAsmElementsandroidcode" "UsersViNProjects" Unable to locate tools.jar. Expected to find it in Crogram FilesJavajre7lib ools.jar Buildfile: Crogram FilesHiAsmElementsandroidcode esultuild.xml -set-mode-check: -set-debug-files: -set-debug-mode: -debug-obfuscation-check: -setup: [echo] Creating output directories if needed... [mkdir] Created dir: Crogram FilesHiAsmElementsandroidcode esultin es [echo] Gathering info for HiAsmMain... [setup] Android SDK Tools Revision 19 [setup] Project Target: Android 4.0.3 [setup] API level: 15 [setup] [setup] ------------------ [setup] Resolving library dependencies: [setup] No library dependencies. [setup] [setup] ------------------ [setup] API<=15: Adding annotations.jar to the classpath. [setup] [setup] ------------------ [setup] WARNING: No minSdkVersion value set. Application will install on all Android versions. -build-setup: [mkdir] Created dir: Crogram FilesHiAsmElementsandroidcode esultinclasses -pre-build: -code-gen: [echo] ---------- [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [renderscript] No RenderScript files to compile. [echo] ---------- [echo] Handling Resources... [aapt] Generating resource IDs... [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] Generating BuildConfig class. -pre-compile: -compile: [javac] Compiling 3 source files to Crogram FilesHiAsmElementsandroidcode esultinclasses [javac] Crogram FilesHiAsmElementsandroidcode esultsrchiasmhiasmprojectHiasmMain.java:21: error: no suitable constructor found for ProgressDialog(<anonymous OnClickListener>,int) [javac] progressdlg1 = new ProgressDialog(this, ProgressDialog.THEME_TRADITIONAL); [javac] ^ [javac] constructor ProgressDialog.ProgressDialog(Context,int) is not applicable [javac] (actual argument <anonymous OnClickListener> cannot be converted to Context by method invocation conversion) [javac] constructor ProgressDialog.ProgressDialog(Context) is not applicable [javac] (actual and formal argument lists differ in length) [javac] 1 error BUILD FAILED Crogram FilesHiAsmcompilerandroid oolsantuild.xml:651: The following error occurred while executing this line: Crogram FilesHiAsmcompilerandroid oolsantuild.xml:672: Compile failed; see the compiler error output for details. Total time: 1 second Сборка завершена. |
|||
карма: 0 |
| ||
файлы: 1 | code_31589.txt [260B] [342] |
Ответов: 199
Рейтинг: 7
|
|||
Random тоже не хочет работать,code_31597.txt
Процесс компиляции Подготовка к сборке проекта... Генерация кода целевого языка Компоновка проекта... Command line: Android.exe "Crogram FilesHiAsmElementsandroidcodeProject13.java" "Crogram FilesHiAsmElementsandroidcode" "C:UsersViNDesktop" Unable to locate tools.jar. Expected to find it in Crogram FilesJavajre7lib ools.jar Buildfile: Crogram FilesHiAsmElementsandroidcode esultuild.xml -set-mode-check: -set-debug-files: -set-debug-mode: -debug-obfuscation-check: -setup: [echo] Creating output directories if needed... [mkdir] Created dir: Crogram FilesHiAsmElementsandroidcode esultin es [echo] Gathering info for HiAsmMain... [setup] Android SDK Tools Revision 19 [setup] Project Target: Android 4.0.3 [setup] API level: 15 [setup] [setup] ------------------ [setup] Resolving library dependencies: [setup] No library dependencies. [setup] [setup] ------------------ [setup] API<=15: Adding annotations.jar to the classpath. [setup] [setup] ------------------ [setup] WARNING: No minSdkVersion value set. Application will install on all Android versions. -build-setup: [mkdir] Created dir: Crogram FilesHiAsmElementsandroidcode esultinclasses -pre-build: -code-gen: [echo] ---------- [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [renderscript] No RenderScript files to compile. [echo] ---------- [echo] Handling Resources... [aapt] Generating resource IDs... [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] Generating BuildConfig class. -pre-compile: -compile: [javac] Compiling 8 source files to Crogram FilesHiAsmElementsandroidcode esultinclasses [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidHiasmMain.java:121: error: package R does not exist [javac] setContentView(R.layout.main_layout); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidHiasmMain.java:123: error: package R does not exist [javac] tv3 = (TextView) findViewById(R.id.tv3); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidHiasmMain.java:124: error: package R does not exist [javac] btn88 = (Button) findViewById(R.id.btn88); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidHiasmMain.java:131: error: package R does not exist [javac] btn162 = (Button) findViewById(R.id.btn162); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidHiasmMain.java:138: error: package R does not exist [javac] btn163 = (Button) findViewById(R.id.btn163); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidHiasmMain.java:146: error: package R does not exist [javac] ed379 = (EditText) findViewById(R.id.ed379); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidHiasmMain.java:220: error: package R does not exist [javac] minflater382.inflate(R.menu.menu382, menu); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidHiasmMain.java:226: error: package R does not exist [javac] case R.id.menu382item0: [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity383.java:27: error: package R does not exist [javac] setContentView(R.layout.activity383layout); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity383.java:30: error: package R does not exist [javac] ed390 = (EditText) findViewById(R.id.ed390); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity383.java:41: error: package R does not exist [javac] ed393 = (EditText) findViewById(R.id.ed393); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity383.java:52: error: package R does not exist [javac] ed395 = (EditText) findViewById(R.id.ed395); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity383.java:63: error: package R does not exist [javac] tv396 = (TextView) findViewById(R.id.tv396); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity383.java:64: error: package R does not exist [javac] tv400 = (TextView) findViewById(R.id.tv400); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity383.java:65: error: package R does not exist [javac] tv403 = (TextView) findViewById(R.id.tv403); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:51: error: package R does not exist [javac] setContentView(R.layout.activity5layout); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:54: error: package R does not exist [javac] ed12 = (EditText) findViewById(R.id.ed12); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:65: error: package R does not exist [javac] ed15 = (EditText) findViewById(R.id.ed15); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:76: error: package R does not exist [javac] ed17 = (EditText) findViewById(R.id.ed17); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:87: error: package R does not exist [javac] ed19 = (EditText) findViewById(R.id.ed19); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:98: error: package R does not exist [javac] ed21 = (EditText) findViewById(R.id.ed21); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:109: error: package R does not exist [javac] ed23 = (EditText) findViewById(R.id.ed23); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:120: error: package R does not exist [javac] ed25 = (EditText) findViewById(R.id.ed25); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:131: error: package R does not exist [javac] ed27 = (EditText) findViewById(R.id.ed27); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:142: error: package R does not exist [javac] ed29 = (EditText) findViewById(R.id.ed29); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:153: error: package R does not exist [javac] ed31 = (EditText) findViewById(R.id.ed31); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:164: error: package R does not exist [javac] ed33 = (EditText) findViewById(R.id.ed33); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:175: error: package R does not exist [javac] ed35 = (EditText) findViewById(R.id.ed35); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:186: error: package R does not exist [javac] ed37 = (EditText) findViewById(R.id.ed37); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:197: error: package R does not exist [javac] ed39 = (EditText) findViewById(R.id.ed39); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:208: error: package R does not exist [javac] ed41 = (EditText) findViewById(R.id.ed41); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:219: error: package R does not exist [javac] tv42 = (TextView) findViewById(R.id.tv42); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:220: error: package R does not exist [javac] tv46 = (TextView) findViewById(R.id.tv46); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:221: error: package R does not exist [javac] tv49 = (TextView) findViewById(R.id.tv49); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:222: error: package R does not exist [javac] tv52 = (TextView) findViewById(R.id.tv52); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:223: error: package R does not exist [javac] tv55 = (TextView) findViewById(R.id.tv55); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:224: error: package R does not exist [javac] tv58 = (TextView) findViewById(R.id.tv58); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:225: error: package R does not exist [javac] tv61 = (TextView) findViewById(R.id.tv61); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:226: error: package R does not exist [javac] tv64 = (TextView) findViewById(R.id.tv64); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:227: error: package R does not exist [javac] tv67 = (TextView) findViewById(R.id.tv67); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:228: error: package R does not exist [javac] tv70 = (TextView) findViewById(R.id.tv70); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:229: error: package R does not exist [javac] tv73 = (TextView) findViewById(R.id.tv73); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:230: error: package R does not exist [javac] tv76 = (TextView) findViewById(R.id.tv76); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:231: error: package R does not exist [javac] tv79 = (TextView) findViewById(R.id.tv79); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:232: error: package R does not exist [javac] tv82 = (TextView) findViewById(R.id.tv82); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity5.java:233: error: package R does not exist [javac] tv85 = (TextView) findViewById(R.id.tv85); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:47: error: package R does not exist [javac] setContentView(R.layout.activity89layout); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:50: error: package R does not exist [javac] ed95 = (EditText) findViewById(R.id.ed95); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:61: error: package R does not exist [javac] ed98 = (EditText) findViewById(R.id.ed98); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:72: error: package R does not exist [javac] ed100 = (EditText) findViewById(R.id.ed100); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:83: error: package R does not exist [javac] ed102 = (EditText) findViewById(R.id.ed102); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:94: error: package R does not exist [javac] ed104 = (EditText) findViewById(R.id.ed104); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:105: error: package R does not exist [javac] ed106 = (EditText) findViewById(R.id.ed106); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:116: error: package R does not exist [javac] ed108 = (EditText) findViewById(R.id.ed108); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:127: error: package R does not exist [javac] ed110 = (EditText) findViewById(R.id.ed110); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:138: error: package R does not exist [javac] ed112 = (EditText) findViewById(R.id.ed112); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:149: error: package R does not exist [javac] ed114 = (EditText) findViewById(R.id.ed114); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:160: error: package R does not exist [javac] ed116 = (EditText) findViewById(R.id.ed116); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:171: error: package R does not exist [javac] ed118 = (EditText) findViewById(R.id.ed118); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:182: error: package R does not exist [javac] ed120 = (EditText) findViewById(R.id.ed120); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:193: error: package R does not exist [javac] tv121 = (TextView) findViewById(R.id.tv121); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:194: error: package R does not exist [javac] tv124 = (TextView) findViewById(R.id.tv124); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:195: error: package R does not exist [javac] tv127 = (TextView) findViewById(R.id.tv127); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:196: error: package R does not exist [javac] tv130 = (TextView) findViewById(R.id.tv130); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:197: error: package R does not exist [javac] tv133 = (TextView) findViewById(R.id.tv133); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:198: error: package R does not exist [javac] tv136 = (TextView) findViewById(R.id.tv136); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:199: error: package R does not exist [javac] tv139 = (TextView) findViewById(R.id.tv139); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:200: error: package R does not exist [javac] tv142 = (TextView) findViewById(R.id.tv142); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:201: error: package R does not exist [javac] tv145 = (TextView) findViewById(R.id.tv145); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:202: error: package R does not exist [javac] tv148 = (TextView) findViewById(R.id.tv148); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:203: error: package R does not exist [javac] tv151 = (TextView) findViewById(R.id.tv151); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:204: error: package R does not exist [javac] tv154 = (TextView) findViewById(R.id.tv154); [javac] ^ [javac] Crogram FilesHiAsmElementsandroidcode esultsrc tk eportvinogradovleonidactivity89.java:205: error: package R does not exist [javac] tv157 = (TextView) findViewById(R.id.tv157); [javac] ^ [javac] 73 errors BUILD FAILED Crogram FilesHiAsmcompilerandroid oolsantuild.xml:651: The following error occurred while executing this line: Crogram FilesHiAsmcompilerandroid oolsantuild.xml:672: Compile failed; see the compiler error output for details. Total time: 2 seconds Сборка завершена. До этого делал проект и в свойствах activity менял название системного проекта "Package", после успешной компиляции сохранил работоспособный проект. Далее создал новый проект, который выложил в этот пост, и процесс ошибочной компиляции, далее перешел по пути Crogram FilesHiAsmElementsandroidcode esultsrc и обнаружил там две папки hiasm и tk - "РТК" это последний успешно созданный проект, далее я вырезал папку "РТК" и заново запустил процесс компиляции, который прошел успешно. Вопрос почему в новом созданном проекте компилятор все равно ссылается на старый проект? |
|||
карма: 0 |
| ||
файлы: 1 | code_31597.txt [321B] [214] |
Ответов: 4630
Рейтинг: 749
|
|||
Похоже, не чистится папка исходного кода. Android.exe обновлял?
|
|||
карма: 26 |
|
Ответов: 26
Рейтинг: 0
|
|||
lenchik_vla, Очень много неприятностей можно избежать если работать с такой установкой (имхо)C:HiAsm.......
|
|||
карма: 0 |
| ||
Голосовали: | hitman249 |
Гость
Ответов: 17029
Рейтинг: 0
|
|||
Редактировалось 9 раз(а), последний 2022-09-20 04:00:45 |
|||
карма: 0 |
|
Ответов: 163
Рейтинг: 33
|
|||
Кстати, Netspirit, не было желания добавить в Android.exe сохранение исходников после последней компиляции? Я себе добавил, помогает выявлять ошибки. Или есть какой другой способ просмотреть исходники?
|
|||
карма: 3 |
|
Ответов: 4630
Рейтинг: 749
|
|||
Выбрать из списка компиляторов "Copy"
|
|||
карма: 26 |
| ||
Голосовали: | GreM |
Ответов: 1821
Рейтинг: 168
|
|||
lenchik_vla писал(а): как скоро появится почтовый клиент?Скоро android_pack_email.png |
|||
карма: 5 |
| ||
файлы: 1 | android_pack_email.png [46.8KB] [891] | ||
Голосовали: | lenchik_vla, hitman249, Neo |
Ответов: 199
Рейтинг: 7
|
|||
sаmakacd, супер!
|
|||
карма: 0 |
|
Ответов: 23
Рейтинг: 3
|
|||
Фонарик не работает.
|
|||
карма: 0 |
|
Ответов: 1821
Рейтинг: 168
|
|||
LiVan, к сожалению, в примере кода писало, что стандартные методы включения/выключения подсветки камеры работают не везде. У меня, на устройствах Samsung Galaxy S2 и Sony Xpreia S работает нормально.
Какая модель устройства у Вас? |
|||
карма: 5 |
|
Ответов: 23
Рейтинг: 3
|
|||
sаmakacd, на samsung galaxy ace не работает. На других проверю и отпишусь.
|
|||
карма: 0 |
|