android-emulator

How can I erase the old data from logcat?

谁说我不能喝 提交于 2019-12-18 10:24:59
问题 When I execute the command adb logcat while running the android emulator, all of the old logs blow past and so I figure they are stored in a file somewhere. Is there a command I can run to clear the logs and start fresh? If not, is there some other way to do this? 回答1: Have you tried this? adb logcat -c https://developer.android.com/studio/command-line/logcat.html 回答2: adb logcat -c didn't do it for me adb logcat -b all -c worked 回答3: Dup of How to empty (clear) the logcat buffer in Android

The application has stopped unexpectedly: How to Debug?

南笙酒味 提交于 2019-12-18 10:24:10
问题 Please note, unlike many other questions having the subject title "application has stopped unexpectedly", I am not asking for troubleshooting a particular problem. Rather, I am asking for an outline of the best strategy for an Android/Eclipse/Java rookie to tackle this formidable task of digesting huge amounts of information in order to develop (and debug!) a simple Android application. In my case, I took the sample skeleton app from the SDK, modified it slightly and what did I get the moment

How can i do factory reset using adb in android?

◇◆丶佛笑我妖孽 提交于 2019-12-18 10:13:54
问题 How can i do the factory reset in android using ADB command? I had used adb reboot recovery command to get reset. But third party applications couldn't be cleared somehow.Is it correct way to achieve using ADB? Actually, I want to do factory reset android devices through java code.What can be solution here? 回答1: You can send intent MASTER_CLEAR in adb: adb shell am broadcast -a android.intent.action.MASTER_CLEAR or as root adb shell "su -c 'am broadcast -a android.intent.action.MASTER_CLEAR'"

Unable to run project on android emulator but works with Iphone

帅比萌擦擦* 提交于 2019-12-18 09:38:04
问题 I have been having an issue running my project on the android emulator, I have had several problems and currently, I am facing this: I have had several problems before getting to thhis one where I have to change classpath 'com.android.tools.build:gradle:3.3.0' and distributionUrl=https://services.gradle.org/distributions/gradle-4.10.1-all.zip but this new error still persists. If there is any additional information required to solve this please do ask. Thanks What went wrong: A problem

Android Studio 3.0 emulator does not start [closed]

有些话、适合烂在心里 提交于 2019-12-18 09:03:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Android Studio emulator can't start in Kali Linux. The error I get is: 25/12/17 3:01 AM Gradle sync started 3:01 AM Project setup started 3:01 AM Gradle sync finished in 1s 333ms (from cached state) 3:02 AM * daemon not running; starting now at tcp:5037 3:02 AM Emulator: libGL error: unable to load driver: i965

error while loading new compiled Linux kernel image into the android emulator(1.5)

女生的网名这么多〃 提交于 2019-12-18 09:01:31
问题 I have successfully compiled Linux kernel for android: root@ubuntu:~/common# ARCH=arm CROSS_COMPILE=~/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make CHK include/linux/version.h make[1]: `include/asm-arm/mach-types.h' is up to date. CHK include/linux/utsrelease.h . . . SYMLINK include/asm -> include/asm-arm CALL scripts/checksyscalls.sh <stdin>:1097:2: warning: #warning syscall fadvise64 not implemented <stdin>:1265:2: warning: #warning syscall migrate_pages not

How to Store files on Emulator?

旧街凉风 提交于 2019-12-18 08:09:11
问题 Is there any possibility for storing files in Android Emulator by default and without using any commands? 回答1: use adb shell method. Give this command adb push filename.extension /your destination Hope this helpful to you. 回答2: you can see PUSH & PULL buttom in red cirle of below image.. using PULL you can pull file from device and using PUSH you can push file onto the device 回答3: adb push filename.extension /your storing location/ First root your adb from Command Prompt. And, give this

Having trouble to get the files from android emulator (Titanium)

随声附和 提交于 2019-12-18 07:25:15
问题 guys! I have trouble to get files from my android emulator! ① Here is my emulator info: Genymotion for personal use - Samsung Galaxy Note 3 - 4.4.4 - API 19 - 1080x1920 ② And here is the file's tree of the emulator: I had stored two mp3 files for test in the Internal storage directory, and the path is /storage/emulated/0/Download . As you can see, the two mp3 files are in the Download directory. My trouble is that I can never get the two files right path. ③ Here is my code: if(Ti.Filesystem

DroidGap cannot be resolved into a type

谁说胖子不能爱 提交于 2019-12-18 06:35:13
问题 hi i am getting an error that DroidGap cannot be resolved as a type my code is package com.hello.ponegap; import android.app.Activity; import android.os.Bundle; import com.hello.*; public class HelloponegapActivity extends DroidGap { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.loadUrl("file:///android_asset/www/index.html"); super.onCreate(savedInstanceState); } } thanks in advance also i am not getting build path when i

Android 5.0 (API Level 21) AVD not launching Intel Atom x86_64

二次信任 提交于 2019-12-18 05:26:09
问题 Does anybody else have this problem with the recently released SDK (V23.0.5 / Windows 7)? Interestingly I can start Google APIs 21 on Intel Atom x86_64, so I do not see a general issue. Normal Android 5.0 does not work. Emulator comes up, but keeps showing a blank screen. 回答1: Updating HAXM to the latest version (Version 1.1.0 preview release 2 at the moment of speaking) should solve all problems related to the Intel Atom images. 回答2: if your sdks are up to date just check your cpus patch for