Tag Archives: Android

Create android project under Fedora distro using the shell.

Using the android command to create default project it’s easy to do.

First let’s see the args of this command:

n – set the project a name.

p – set the directory for the project.

k – set root for the Java package.

a – set the name for a main Activity class.

Go to tools folder to use android command.

Use this command to create your project:

Now we have a folder named test001 with the android default project.

You can use android to update the SDK.

Go to folder project and use ant to build and sign the project.

I got this error because I used old Fedora distro. If you use the last Fedora then will not see this error.

See all your avd devices and start the emulator:

You can see I have one avd named and1. You can see many default avd…

Also you can test , install and build just using the ant command, see more here.

Posted in All, Android, Commands, Programming. Tagged with , , .

Android Studio – tools and features – part 001

The new Android Studio come with many tools and features.

Today I will show something new about this great IDE.

First the simple way to add your Android Studio to your linux distro.

You can open Android Studio, click on Tools > Create Desktop Entry.

android_studio_entry_desktop_001

The Android Studio will notify you about the result.

android_studio_entry_desktop_002

This should let you to start the launcher from your desktop menu.

On my Fedora is on Applications -> Programming menu.

Another feature is translation of your application.

This allow you to make resurces can be used.

Let’s try to do that.

Pick a language , will see it’s many can be used with your application.

android_studio_translate_001

You will get a new window for translation.

android_studio_translate_002

Posted in All, Android, Programming. Tagged with , , .

First look about Android Studio 1.0.5 running with Fedora distro.

Google just announced Android Studio, an integrated development environment for building apps.

This IDE is based on IntelliJ IDEA and works as a WYSIWYG for creating android applications.

You can get this IDE from here.

It’s working under OS platforms: Windows, Linux and Mac OS X.

I used under Fedora and this is my short tutorial about this IDE.

The Android Studio has two folders : bin and sdk.

Content of the bin folder has this files and folders:

Content of the SDK folder has this files and folders:

To run the IDE just need to start from bin folder the studio.sh .

You will see the splash of the Android Studio:

android_studio_splash

After that will see the IDE.

I don’t tell you all of the features of this IDE.

This will take time and this is just one short tutorial.

Most of this it’s like in the old Eclipse IDE.

I will try to show you something new and also to show how to update the IDE.

First if will see something like this :

android_studio_001

If it not update then you need to update the Android Studio.

android_studio_002

Go to Menu -> Help -> Check for Update…

android_studio_003

After that will need to press button : Update and Restart.

android_studio_004

You will see this:

android_studio_005

This will update your IDE.

First you need to update your android using this tool: SDK MAnager.

android_studio_006

Select your android sdk to build your application.

android_studio_007

To start your first project just go to menu File -> New Project …

android_studio_008

You will see the next window and will need to fill with your project settings.

android_studio_009

I will show you how to make it but into another tutorial.

See you later…

Posted in All, Android, Programming. Tagged with , , .

Using grep and many commands under Android OS .

The BusyBox combines tiny versions of many common UNIX utilities into a single executable.

You can find this command under android os.

Using busybox is simple. The first argument is taken by busybox and it’s applet executable.

For example if you want run dmesg with grep command then use this:

All applets include:

You can read more about this here.

Posted in All, Android, Bash, Commands, Linux. Tagged with , , , , .

Make screenshot with android and linux .

You need SDK from android website on your linux distro.

Power on your device tablet and you need to connect on your PC.

Enable debug mode on your tablet.

Go to shell linux and on platform-tools folder yoou use this command:

Star your application from tablet and under linux shell use the next command:

If you got some errors like : error: device offline

Just go and set tablet online or from settings set to stay online.

NOTE: if you use some terminal emulator android app then the command screenshot not working.
Use first $ adb shell and then try screenshot
.

Posted in All, Android, Commands, Linux. Tagged with , , , , .