Offline GDG Developer Kit available

GDG Dev Kit Pilot (https://sites.google.com/site/gdgdevkitpilotreadme/) is a pack of 4 DVDs (also available in a limited number of single USB thumb drives) containing useful content for developers who work with Google technologies and APIs.

The developer kit is meant for software developers or students of software development in regions of the world where steady access to the internet is expensive , unreliable or non-existent.


Each pack contains the following :
This content is current as at August 2014

Read details: https://sites.google.com/site/gdgdevkitpilotreadme/

Download link.


Up close with the e-ink second display of the YotaPhone 2

The YotaPhone 2 is an Android phone with a twist -- it has a second display stuck to its back that uses e-ink technology to always display information without draining the battery. Check out our video review of this two-faced phone.

http://cnet.co/1zRgvi3


DTMF Piano using ToneGenerator

Example to generate DTMF tones using ToneGenerator.


MainActivity.java
package com.example.androiddtmfpiano;

import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.GridView;
import android.media.AudioManager;
import android.media.ToneGenerator;
import android.os.Bundle;

public class MainActivity extends ActionBarActivity {

GridView gridView;

static final String[] numbers = new String[] {
"1", "2", "3",
"4", "5", "6",
"7", "8", "9",
"*", "0", "#"};

static final int[] toneTypes = new int[]{
ToneGenerator.TONE_DTMF_1,
ToneGenerator.TONE_DTMF_2,
ToneGenerator.TONE_DTMF_3,
ToneGenerator.TONE_DTMF_4,
ToneGenerator.TONE_DTMF_5,
ToneGenerator.TONE_DTMF_6,
ToneGenerator.TONE_DTMF_7,
ToneGenerator.TONE_DTMF_8,
ToneGenerator.TONE_DTMF_9,
ToneGenerator.TONE_DTMF_S, //*
ToneGenerator.TONE_DTMF_0,
ToneGenerator.TONE_DTMF_P //#
};

static int streamType = AudioManager.STREAM_MUSIC;
static int volume = 50;
static int durationMs = 100;
static final ToneGenerator toneGenerator =
new ToneGenerator(streamType, volume);

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

gridView = (GridView) findViewById(R.id.gridView);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(
this, android.R.layout.simple_list_item_1, numbers);

gridView.setAdapter(adapter);

gridView.setOnItemClickListener(new OnItemClickListener() {

@Override
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
toneGenerator.startTone(toneTypes[position], durationMs);
}});
}

}

activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.androiddtmfpiano.MainActivity" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:autoLink="web"
android:text="http://android-er.blogspot.com/"
android:textStyle="bold" />

<GridView
android:id="@+id/gridView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:columnWidth="50dp"
android:gravity="center"
android:numColumns="3"
android:stretchMode="columnWidth" >
</GridView>

</LinearLayout>

Next example:
- Visible DTMF Piano: Visualizer + ToneGenerator

GridView example

Android example of using GridView


activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.androiddtmfpiano.MainActivity" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:autoLink="web"
android:text="http://android-er.blogspot.com/"
android:textStyle="bold" />

<GridView
android:id="@+id/gridView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:columnWidth="50dp"
android:gravity="center"
android:numColumns="3"
android:stretchMode="columnWidth" >
</GridView>

</LinearLayout>

MainActivity.java
package com.example.androiddtmfpiano;

import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.GridView;
import android.widget.TextView;
import android.widget.Toast;
import android.os.Bundle;


public class MainActivity extends ActionBarActivity {

GridView gridView;

static final String[] numbers = new String[] {
"1", "2", "3",
"4", "5", "6",
"7", "8", "9",
"*", "0", "#"};

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

gridView = (GridView) findViewById(R.id.gridView);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(
this, android.R.layout.simple_list_item_1, numbers);

gridView.setAdapter(adapter);

gridView.setOnItemClickListener(new OnItemClickListener() {

@Override
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
Toast.makeText(getApplicationContext(),
((TextView)view).getText(),
Toast.LENGTH_SHORT).show();
}});
}

}


Mixed Jellybean ROM Developed By Snigdho

ROM Name- Mixed Jellybean ROM
Device- Walton Primo E2
Chipset- MT6572

You can also port it to other MT6572 Devices.... I have worked around 5days for this ROM... Hope u will like this...

Features
-AROMA Installer
-De-Odexed
-Pre-Rooted
-Dolby Digital Plus (Red Edition)
-New Settings, Lockscreen Handle, Dialer, Notification Panel, etc.
-360 Launcher (As default launcher)
-More Free RAM
-Super Smooth UI
-Awesome Gaming Performance
-GAPPS Removed (To reduce ROM size & RAM Usage)
-Dark Cyanide Music Player (Developed by unknown, modded By me)
-Dark Cyanide Boot Logo
-MiUi File Manager
-And a lots more

Bugs
- I didn't find any ;)

Credits
-Allah SWT
-Kuasha Pranto
-Xtreme Ornob
-Jatin
-amrullz
-Akib
-Ishmam Jim
-And Snigdho Hasan (Me)
Special Thanks
-Kuasha Pranto
-Shehzad Mahi
-Xtreme Ornob
-Akib
-Emrul Chowdhury

Flashing Procedure By CTR
-Boot In To Recovery
-Wipe Menu> Wipe Preflash> Yes
-Install Zip For SD> Select The Zip> Yes
-And Reboot

Download Link

If you port this ROM give credits to the real developer (Snigdho Hasan) -_-

android.media.ToneGenerator simple example

android.media.ToneGenerator provides methods to play DTMF tones (ITU-T Recommendation Q.23), call supervisory tones (3GPP TS 22.001, CEPT) and proprietary tones (3GPP TS 31.111). Depending on call state and routing options, tones are mixed to the downlink audio or output to the speaker phone or headset. This API is not for generating tones over the uplink audio path.


MainActivity.java
package com.example.androidtonegenerator;

import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.ToggleButton;
import android.media.AudioManager;
import android.media.ToneGenerator;
import android.os.Bundle;


public class MainActivity extends ActionBarActivity {

Button btnGenTone0;
ToggleButton tgbtnGenTone1;

ToneGenerator toneGenerator1;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
btnGenTone0 = (Button)findViewById(R.id.gentone0);
tgbtnGenTone1 = (ToggleButton)findViewById(R.id.gentone1);

btnGenTone0.setOnClickListener(new OnClickListener(){

@Override
public void onClick(View v) {
int streamType = AudioManager.STREAM_MUSIC;
int volume = 50;
ToneGenerator toneGenerator = new ToneGenerator(streamType, volume);
int toneType = ToneGenerator.TONE_DTMF_0;
int durationMs = 500;
toneGenerator.startTone(toneType, durationMs);
}});

toneGenerator1 = new ToneGenerator(AudioManager.STREAM_MUSIC, 50);

tgbtnGenTone1.setOnCheckedChangeListener(new OnCheckedChangeListener(){

@Override
public void onCheckedChanged(CompoundButton buttonView,
boolean isChecked) {
if(isChecked){
toneGenerator1.startTone(ToneGenerator.TONE_DTMF_1);
}else{
toneGenerator1.stopTone();
}
}});
}

}

activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:orientation="vertical"
tools:context="com.example.androidtonegenerator.MainActivity" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:autoLink="web"
android:text="http://android-er.blogspot.com/"
android:textStyle="bold" />

<Button
android:id="@+id/gentone0"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Generate Tone: TONE_DTMF_0" />

<ToggleButton
android:id="@+id/gentone1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textOn="Stop Tone: TONE_DTMF_1"
android:textOff="Start Tone: TONE_DTMF_1" />
</LinearLayout>

Next:
- DTMF Piano using ToneGenerator
- Sound samples generated by android.media.ToneGenerator

FREE Visual Studio Community 2013, code for Windows, Android, and iOS.

Visual Studio Community 2013 is a new edition that enables you to unleash the full power of Visual Studio to develop cross-platform solutions. Create apps in one unified IDE. Get Visual Studio extensions that incorporate new languages, features, and development tools into this IDE. (These extensions are available from the Visual Studio Gallery.) Find out more details about Visual Studio Community 2013 here.



Introducing Visual Studio Community 2013