Category Archives: Android

Android no title application .

Using this example will change the title of android application to don’t show us the title.
You need to set some features:
android_window_feature_001
This will be the result of the example:
android_no_title_001
This it’s the new and only changes of  MyClock.java.

Also , If you got some errors about build tools over your project , then you need to set up like this:
android_build_tools_err_001

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

Android transparent background.

This is result of my application.

android_transparent_app
This android application can be updated with your features when you need to see the background.
For example a simple clock or something else.
First you need to create one default android project.
This will make all your files to working like one simple android aplication.
Now the changes come with this file ( AndroidManifest.xml) :

The changes from MyClock.java:

Another file you need to change it – activity_my_clock.xml.

… the styles.xml file:

Most users got some errors with R.layout.
This error come when you not set the correct settings of Android Studio.
So try to add your Project Settings the correct dependencies:
android_errors_001
Errors can be annoying , but if you know everything that happens in Android Studio you managed to solve it.

Posted in All, Android, Programming, Windows 10, Windows 7, Windows 8. Tagged with , , , , , , , .

Droid@Screen – very fast android emulator .

You can download this utility from here.
Make sure you have Java setup on your machine and that the java executable is available in the PATH.
You also need to enable USB debugging on your device.
Let’s test it with this command:

Droid_Screen

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

Android geo google maps .

You need to take a look under this Google Maps Intents .
Start your project under Androi Studio or AIDE.
The source code will need to know come into this two files :
The AndroidManifest.XML file:
<?xml version=”1.0″ encoding=”utf-8″?>
<manifest xmlns:android=”http://schemas.android.com/apk/res/android”
package=”com.mycompany.myapp” >

<application
android:allowBackup=”true”
android:icon=”@drawable/ic_launcher”
android:label=”@string/app_name”
android:theme=”@style/AppTheme” >
<activity
android:name=”.MainActivity”
android:label=”@string/app_name” >
<intent-filter>
<action android:name=”android.intent.action.MAIN” />

<category android:name=”android.intent.category.LAUNCHER” />
</intent-filter>
</activity>
</application>

</manifest>
The MainActivity.JAVA file:
package com.mycompany.myapp;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;

public class MainActivity extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Intent i = new Intent(android.content.Intent.ACTION_VIEW);
i.setData(Uri.parse(“geo:54.5200,15.2500?z=1”));
startActivity(i);
}
}
The result it’s this screenshoot.
geo-google-maps-001

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

Android send mail with android mail setup.

I used AIDE development tool under my phone.
The main reason was : this IDE come with a simple default project.
The Android Studio can you give yourself a headache…
The AIDE will make all your files under your project.
I named my project MyAppMailSend with MainActivity.
So the java class will be MainActivity – public class MainActivity extends Activity.
Also I used Intent named ig .
Under XML files I need to put intent-filter and all @string , @drawable and @style.
The AndroidManifest.XML file :

<?xml version=”1.0″ encoding=”utf-8″?>
<manifest xmlns:android=”http://schemas.android.com/apk/res/android”
package=”com.mycompany.myapp” >

<application
android:allowBackup=”true”
android:icon=”@drawable/ic_launcher”
android:label=”@string/app_name”
android:theme=”@style/AppTheme” >
<activity
android:name=”.MainActivity”
android:label=”@string/app_name” >
<intent-filter>
<action android:name=”android.intent.action.MAIN” />

<category android:name=”android.intent.category.LAUNCHER” />
</intent-filter>
</activity>
</application>

</manifest>

Under this path MyAppMailSend\app\src\main\java\com\mycompany\myapp you wil have this file MainActivity.JAVA:

The \MyAppMailSend\app\src\main\res\layout\main.XML file:

<LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android”
android:layout_width=”match_parent”
android:layout_height=”match_parent”
android:gravity=”center”>

<TextView
android:text=”@string/hello_world”
android:layout_width=”wrap_content”
android:layout_height=”wrap_content” />

</LinearLayout>

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