How install android sdk plugin from local machine? - android

I am a developer of Cuba, I can not download the package for Samsung Tablets, I have it on my local machine, but I can not install it, I believe the addon.xml seeks the root of D, as I can create this file? have no idea what format to have?

Sounds like you have addon.xml somewhere saved on your local machine? If so, open it and look for <sdk:url>. Make sure that points to a zip file on your local machine.
Then, run android from your command line. In Tools menu, choose Manage Add-on Sites.... Click on New... and point to your addon.xml file using the file:/// protocol.
After that the Samsung Tablet should show up as an option in your Android SDK Manager for you to install.

Related

Where the Android apps data stored in Mac which are created using Titanium

I am using Titanium framework for creating Android apps in Mac OSX. I am searching for the location of android apps which are created using Titanium.
We can see our iPad or iPhone apps based on the iOS version . Its location is its iOS version folder. But I am unable to find android apps location.
I have googled for it but no help.
Thanks.
if you run on Mac, open the AVD manager. Clicked the arrow and then "Show on Disk"(...)
Usually they are saved in your user profile. ~/.android/avd is a typical location. It is also possible that they are located within the SDK's directory. This could happen if you set ANDROID_SDK_HOME as environment variable.
To access the file system of android emulator you have two possibilities:
Use the SDK Device Monitor. It provides a graphical interface to the file system of the emulator. If you have android SDK in your PATH environment you can access it via Terminal -> monitor.
Alternatively you can access the file system via command line shell: Terminal -> adb -e shell. You already have root access.

Eclipse 64-bit - Android Virtual Device Manager Failed to create SD card

I am running Windows 7 64-bit and Eclipse also 64-bit with the latest ADT plugin installed and the Android ADK. All installed as instructed on the Android SDK site.
When I try to create a new AVD I get the following messages.
[Date *Time* - SDK Manager] Failed to create the SD card.
[Date *Time* - SDK Manager] Failed to create sdcard in the AVD folder.
I have tried different SD card sizes thinking It may be something to do with storage space allocation but that doesn't seem to be the case as my hard-drive has a lot of space left. Considering I have admin rights on my account it shouldn't be that it can't create a folder either. I really have no idea what is going wrong here and all I have been able to find on this are post on Ubuntu, which haven't been much help.
I found similar issue on my windows. Seems like this happen for 64 bit machines only. To solve this, make sure you have full access permission to all files under the Tools folder in Android SDK directory.
For linux/ubuntu, execute the following
chmod -R 777 ../tools
For windows, goto Android SDK directory..
Right click Tools folder > Properties > Go to tab "Security" > Select "Users" > Edit > Select "full control", save and close it.
It should work after doing this
Go to the following directory in your computer:
C:\Users\.android\avd
Inside this directory you will find all files and directories with the definition and content of your avd machines-
Now do the basic troubleshooting steps:
-check if the avd directory exists and if it contains a file with the name "sdcard.img".
-if the file exists, try to rename it (to check if its locked) and then go to eclipse and ask to create a new sd card.
-if it fails, try to create manualy a file with that name to check premissions.
good luck
Close the emulator which is in open, and re-try. This worked for me.

inspecting android sqlite and IntelliJ

I'm starting out with a small app using programmatically created sqlite db.
Is there a way to inspect that db when the app is running on emulator?
You can download the database file from the device to your PC and then use any SQLite browser / tool to inspect the database.
Either via the adb commandline tool from the Android SDK tools
adb pull /data/data/your.app.package.here/databases/yourdatabasefile.db
or via the device browser (File Explorer) in Eclipse in the DDMS perpective (maybe that exists in IntelliJ too, Idk)
or the new Android SDK tools provide a neat standalone version of that DDMS perspective & the file explorer via the new Device Monitor tool (android-sdk/tools/monitor.bat)
This is now possible with IntelliJ IDEA 14:
https://www.jetbrains.com/idea/help/accessing-android-sqlite-databases-from-intellij-idea.html
A partner found a more dynamic solution, using an ADB plug-in you can simply choose the database and refresh the inspector any time you want
first, you need to download the plug in jar
https://github.com/tklerx/android-sqlite-browser-for-eclipse
(go to releases and choose the latest)
then place the jar into [YourAndroidSdkDirectory]/tools/lib/monitor-x86_64/plugins/
Restart ADB
Done! now run an emulator, create your database and browse in the ADB to find it on data/data/ ...
Select it and click new the Database buton up right
(you may not see the button before selecting the database file)
Source:https://groups.google.com/forum/#!msg/adt-dev/Jqw9VslC_Vw/YOXWQa1ozmAJ

installing android offline is hard[obsolete]

i am a student in africa and in our land, there actually exist slow and expensive internet connections, which is why we tremble in fear whenever we hear the word "online repository" method of installing software. Damn, that usually means you have to look elsewhere.
The problem.(i cant install android without connecting eclipse to the internet)
It is possible to manually download individual components as .zip files but there is no way of installing them into android eg i have managed to download
platform-tools_r03-windowsandroid-sdk_r10-windowsetcbut no matter what i do, i can't get android to recognise them as components. It seems tens of thousands of other developers have a similar problem (see below)
This qn has 10k views(meaning 10k people had a similar problem)
another lost developer
webpage sudgesting solution that failed to work on windows seven ultimate
If someone has actually ever installed android without connecting eclipse to the internet, please let us know the magic you used. Thanks in advance :)
EDIT:
if someone out there is still interested check out http://qdevarena.blogspot.com/2010/05/download-android-sdk-standalone-for.html
and make sure your folder structure is as shown in http://developer.android.com/sdk/installing.html
For SDK and platform tools you can just extract the zip content, Eclipse has nothing to do here.
For Eclipse ADT plugin:
Download the zip file from http://dl.google.com/android/ADT-10.0.1.zip
Help -> Install New Software -> Add
Select Archive and then provide the location of the zip file
These steps are clearly explained in Eclipse ADT documentation.
Only in Windows
Install (if not installed) Oracle JDK jdk-7-windows-i586.exe
install Eclipse SDK
Add to the PATH environment variable the path to the JDK (for example c:\Program Files\Java\jdk1.7.0\bin)
Edit the file hosts (c:\WINDOWS\system32\drivers\etc\hosts), add the entry "127.0.0.1 dl-ssl.google.com"
It's important! Port 80 must be free at the time of installation Android SDK
Run the Abyss Web Server X1 (abyssws.exe). Works best if you download a fresh copy
Run the Android SDK "SDK Manager.exe" installer
In the "Android SDK Mannager" in the menu "Tools" >> "Options" put the check ("force https:// ... sources to be fetched using http:// ...")
Android SDK Manager will fetch packages in your computer. Choose the packages for API you want to program against, select and install packages
After installation the file hosts (c:\WINDOWS\system32\drivers\etc\hosts) entry "127.0.0.1 dl-ssl.google.com" you entered in step 3
Good Luck!! and remember to update to lastest APIs and revision
You can download Eclipse ADT and install
IN Eclipse: Click Help tab and Install New Software tab
Click add button
In Add Repository Window, add in Name Field Eclipse ADT and Location field click archive to browse in local machine where you downloaded ADT
Press Ok and tick all, Eclipse will install the less
The answer by dtmilano is not valid for the current version of android SDK. (androdi 4.2.2)
The android website says that after the unzipping of the ADT:
Your Eclipse IDE is now set up to develop Android apps, but you need to add the latest SDK platform tools and an Android platform to your environment. To get these packages for your SDK, continue to Adding Platforms and Packages.
http://developer.android.com/sdk/installing/installing-adt.html
Instead, try
http://qdevarena.blogspot.in/2010/05/download-android-sdk-standalone-for.html
as mentioned by
Installing android SDK in eclipse offline
I'M a Ghanaian..I did it about a week ago on ubuntu it might work on windows
your question indicates that you have eclipse installed..so i will just move on to setting it up to run android apps ...
step 1: go to developer.android.com to download the sdk for windows(i recomend you download the one with the installer).
step 2: launch ur favourite browser and open this site.
you will see an xml page using ctr+f (any shortcut for finding a text on your browser) type andoroid 2.2 or any android version you like latest is kitkat 4.4...you will find ur prefered android version in zip file for ur OS i.e windows...just copy the text and append it to this address.
this will download the the platform for you in .zip format....just navigate to where you extracted ur sdk and go to platform folder and then create a new folder with any name and then extract the platfor you downloaded earlier i.e android version into the new folder you created...just launch the sdk.exe and it will auto detect your platform for you...
just go and creae your Android virtual device and start running your apps..

How to access local files of the filesystem in the Android emulator?

I want to know whether there is a method to access local files (say text files, web pages) of the filesystem in Android emulator.
I'm using Ubuntu 10.04 for Android development.
You can use the adb command which comes in the tools dir of the SDK:
adb shell
It will give you a command line prompt where you can browse and access the filesystem. Or you can extract the files you want:
adb pull /sdcard/the_file_you_want.txt
Also, if you use eclipse with the ADT, there's a view to browse the file system (Window->Show View->Other... and choose Android->File Explorer)
In Android Studio 3.0 and later do this:
View > Tool Windows > Device File Explorer
In addition to the accepted answer, if you are using Android Studio you can
invoke Android Device Monitor,
select the device in the Devices tab on the left,
select File Explorer tab on the right,
navigate to the file you want, and
click the Pull a file from the device button to save it to your local file system
Taken from Working with an emulator or device's file system
In Android Studio 3.5.3, the Device File Explorer can be found in View -> Tool Windows.
It can also be opened using the vertical tabs on the right-hand side of the main window.
Update!
You can access the Android filesystem via Android Device Monitor. In Android Studio go to Tools >> Android >> Android Device Monitor.
Note that you can run your app in the simulator while using the Android Device Monitor. But you cannot debug you app while using the Android Device Monitor.

Categories

Resources