Category Archives: Android

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 , , , , .

Create splash screen application

This is a simple example about creating splash on android.

One problem with splash can increase the size of your application.

You can read more about splash screen here.

Let’s try the example.

I use NetBeans 2.7.1 to make one default application.

Also I created one image splash screen by copy one icon application to new folder drawable.

You can see the steps:

The folders and files created by NetBeans can be see with tree linux command.

If you using M3 version the you need to use id=”@+id.

Also you can got this error: Warning: found plain ‘id’ attribute; did you mean the new ‘android:id’ name? .

This is the source code I changed in main.xml file.

And the source code I changed in MainActivity.java file.

The application working well , I use my device to run it.

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