How to open android adb from command prompt?

后端 未结 3 610
生来不讨喜
生来不讨喜 2021-01-13 03:47

I am new bee in ANDROID , so for that I am unable to view, delete, insert data into database(SQLite), from command Prompt. I have installed my ANDROID in \"F:\\PROJECTS\\AND

相关标签:
3条回答
  • 2021-01-13 04:20

    in desktop, right click on MyComputer>properties>advanced>Environment Variables>path edit it append this F:\Projects\Android\android-sdk_r10-windows\android-sdk-windows\platform-tools now, open command prompt & ur adb is ready to work from any path

    0 讨论(0)
  • 2021-01-13 04:21

    You can't access your db from promt. Your database is located at /data/data/your.package/databases/your_db so it's in your application's private directory e.g no other applications have access to it. So one solution is to have rooted phone. And the other is to copy the file from your's applications directory to the sdcard and then handle it as normal. So from your application you have to do something like this in your application

    copyFile("/data/data/your.package/databases/your_db", "/sdcard/your_db");
    
    0 讨论(0)
  • 2021-01-13 04:39

    In the command prompt Go to this path or set as classpath F:\PROJECTS\ANDROID\android-sdk_r10-windows\android-sdk-windows\tools

    Then type

    adb shell
    

    u will see:

    #
    

    Type

    # sqlite3 /data/data/com.yourpackage/databases/yourdbname
    

    You will enter your database

    0 讨论(0)
提交回复
热议问题