Android Tutorial Hello world - Installing Android Emulator

Crolt

Member
Licensed User
Longtime User
Hi,
I'm quite new in this framework.
I have a similar problem.
I used Android 2.3.3 with 1GB SD Card for the Virtual Device.
Simply copying several MP3 files (around 30MB) on the folder "ProjectName/Files", even without using those in the code, I had, after a very long time in compiling (and a "Process is running longer than expected" message), the following error:

Installing file to device. Error
failed to copy 'ProjectName_DEBUG.apk' to '/data/local/tmp/ProjectName_DEBUG.apk': No space left on device

Thank you for the great help from this forum.
Carlo


 

Crolt

Member
Licensed User
Longtime User
Thank you Erel,
I've tried in different ways, new projects, new devices. But when I try to add the other files it doesn't work. Today I'll do some other tests...
Sorry, how can I install it on external storage in the simulator?

Have you checked Project - Can install to external storage?

You can try to delete this AVD and create a new one.
 

Crolt

Member
Licensed User
Longtime User
At the beginning I used to copy manually the files into the "files" folder. Then I've tried using the "Add Files" button within the IDE, but it seems that it doesn't change anything...

With the external storage option checked it seems it changes a little bit!
I've tried adding file one by one, and when it reaches a certain amount it could start to delay the compilation phase, then:
Process timed out.
You can change the timeout value under Tools - IDE Options.
Restarting ADB Server may solve this problem.
Tools - Restart ADB Server. Device serial: emulator-5554

Deleting back files, it gives you again the message that it takes too much, but after that it works!

With the simulator I don't know how to copy to external storage manually. Which is the related folder?. With Adb Tool do you mean via command line?



It will be installed to the external storage by default if you check this option.

Another option is to remove the large files from the project and manually copy them to the external storage (with adb tool).
 
Last edited:

derez

Expert
Licensed User
Longtime User
In the command line write:
>adb push {filename with the complete PC path, use this \} sdcard/{directory/filename}

if you write just directory name in both parts - all the files will be copied.
pressing F3 rewrites the command so you can now change only the relevant part for another command.

To copy from the external storage to the PC use adb pull, with the ext. storage path first and then the PC path.
 
Last edited:

Crolt

Member
Licensed User
Longtime User
Thank you very much to you all...



 

s0m4y3h

New Member
hello please help me

hello
Sorry I asked the wrong question
When creating the project I get this error please help me.

Compiling code. 0.06
Generating R file. 1.47
Compiling generated Java code. Error
javac 1.7.0_05
javac: target release 1.5 conflicts with default source release 1.7
 

GaNdAlF89

Active Member
Licensed User
Longtime User

Basic4android requires Java 6. It will not work with Java 7!!
To resolve this problem, you can install Java 6, and then you must configure Basic4android to use Java 6.
 

Robert

New Member
Licensed User
Longtime User
The emulator doesn't start...

Hallo,

I'm new to B4A and maybe this is a easy settings ... but something doesn't work...
I follow this tutorial and cannot finish because I cannot start the emulator. Press start button and it will open a small window with a progress bar then it will close. No error, nothing, just the emulator doesn't start.
I have windows8 32bit.
Android SDK is installed in C:\Android\android-sdk\tools

What can I do?
Connect remotely to device it's working. I compile and run on device just fine using remote connections trough B4A Bridge but using the emulator no way (

Thank you for any help/suggestions.
Robert
 

Robert

New Member
Licensed User
Longtime User
I create more AVD but no one starts the emulator... also if I use a real device for development every time I compile I need to install the app correct? or replace the current install...
Also if emulator it's not starting how can I test for more platforms?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
If you are using B4A-Bridge then you need to confirm the installation. If your device supports USB debugging then you can use it instead and it allows you to install applications without the need to confirm the installation.

There seems to be a problem with Android SDK on your computer. As it doesn't give any error, it is difficult to say what is the error.

Note that you can use the UI cloud to test your layout on different devices:
Supporting multiple screens - tips and best practices
 

Robert

New Member
Licensed User
Longtime User
Hallo Erel,

Noted and thank you!
I will reinstall Android SDK and let you know. My device support USB debugging and I will try that.

Thank you,
Robert
 

deadmarshal

New Member
compile error

i get this error what should i do ?
adb and sdk are correctly installed
:sign0085:
notice me by email too
 

Attachments

  • problem.PNG
    9.7 KB · Views: 320

John316

New Member
Hi friends! I'm a newbie to android and infact to the programming field. I want to become an android app developer.

I just know that one has know some part of Java and xml. Could any one suggest where to start.

Kindly post any links to books, blogs, websites, video tutorials etc that I can access freely online to learn the basics and advanced concepts.

Any help would be much appreciated.

Thanks in advance!

Cheers.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…