Download ANDROID Random heroes
http://androidgamesofworld.blogspot.com/ |
Features:
- More than 40 levels
- 24 symbols
- 17 types of weapon
- Various achievements
http://androidgamesofworld.blogspot.com/ |
More Info:
Intuitive game rules:
# Tilt phone to control moto direction
# Tap screen to accelerate
Tips to win high score:
# Keep accelerating moto so that the score will be boosted. The boost factor is shown on the right top of the screen.
# Watch out indicator light. Vehicles may turn left or right.
Enjoy feeling super speedy moto racing! Please give us your feedback, rate or comment if you like this game!
https://play.google.com/store/apps/details?id=com.droidhen.game.racingmoto&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5kcm9pZGhlbi5nYW1lLnJhY2luZ21vdG8iXQ..
*Points of caution
・Supporting Device: L-01D(optimus LTE),GALAXY S(SC-02B),Xperia acro(SO-02C),GALAXY SⅡ(SC-02C),htc EVO 3D(ISW12HT)
(To use this App, you need to update to Android OS 2.2 or later.)
■One Piece AR Carddass Formation (Ver1.0.1)
Scan the AR(Augmented Reality) marker printed on the back of the card, and characters pop up!
In addition, scan the unique Card ID on the back of the card to register the character into Digital Binder in app, and a player can use the character for battle!!
Use three registered characters to form the 3-men team, now you are ready for challenging a super-strong BOSS!
This is an exclusive application with which you can scan and play with trading cards from “One Piece AR Carddass Formation”, to be released by Bandai on June 22nd 2012.
To get the most out of this App, you need “One Piece AR Carddass Formation” cards.
*If you do not have any cards at hand, you can also use round objects like coins to battle with Zoro or to make use of the collection function by gathering items from treasure boxes.
*When using a round objects like coins, please select [Coin AR] from [AR Scan] on the main menu, which is displayed on the right hand side of the HOME screen.
Check out more detailed information on the “One Piece AR Carddass Formation” at Official Homepage!
http://AR.carddas.com/
More info:
https://play.google.com/store/apps/d...FyY2FyZF93dyJd
Download Instructions:
Download all parts and extract the apk
http://www.mediafire.com/?pykk1c272vcvbmq part1
http://www.mediafire.com/?z85iivw4iu74u5p part2
http://www.mediafire.com/?pmuup35q3d7stve part3
Notes:
This apk is as big as cow(406mb) ,please make sure your device have enough space to install the apk.
Installation may takes 10 minutes or more,so be patient and wait,do keep the screen awake to prevent the app not installed problem.supports app2sd after installed.
*First run may needs internet connection*
ARcard collections:
http://www.mediafire.com/?a8ovnobibloz9a1
Gameplay video on my M7:
<iframe class="restrain c15" frameborder="0" height="390" id="yui-gen0" src="http://www.youtube.com/embed/DoVB7x7T414?wmode=opaque" title="YouTube video player" width="640" name="yui-gen0">></iframe>
package com.example.androidactionbar;
import android.os.Bundle;
import android.app.ActionBar;
import android.app.Activity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button buttonToggleActionBar = (Button)findViewById(R.id.toggleactionbar);
buttonToggleActionBar.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View arg0) {
ActionBar myActionBar = getActionBar();
boolean myActionBarisShowing = myActionBar.isShowing();
if(myActionBarisShowing){
myActionBar.hide();
Toast.makeText(getApplicationContext(),
"Hide ActionBar",
Toast.LENGTH_LONG).show();
}else{
myActionBar.show();
Toast.makeText(getApplicationContext(),
"Show ActionBar",
Toast.LENGTH_LONG).show();
}
}});
Button buttonFinish = (Button)findViewById(R.id.finish);
buttonFinish.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v) {
finish();
}});
if (savedInstanceState != null) {
Boolean savedActionBarisShowing =
savedInstanceState.getBoolean("KEY_ACTIONBAR_ISSHOWING", true);
if(savedActionBarisShowing){
getActionBar().show();
}else{
getActionBar().hide();
}
}
}
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putBoolean("KEY_ACTIONBAR_ISSHOWING", getActionBar().isShowing());
}
}
<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=".MainActivity" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
<Button
android:id="@+id/toggleactionbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Toggle ActionBar" />
<Button
android:id="@+id/finish"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="finish()" />
</LinearLayout>
package com.example.androidthread;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.app.Activity;
public class MainActivity extends Activity {
Button buttonStart;
TextView textInfoA, textInfoB, textInfoC, textInfoD;
TextView textDuration1, textDuration2;
TextView textDuration3, textDuration4;
String infoMsgA;
String infoMsgB;
String infoMsgC;
String infoMsgD;
ShareClass shareObj = new ShareClass(10);
long startingTime;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
buttonStart = (Button) findViewById(R.id.buttonstart);
textInfoA = (TextView) findViewById(R.id.infoa);
textInfoB = (TextView) findViewById(R.id.infob);
textInfoC = (TextView) findViewById(R.id.infoc);
textInfoD = (TextView) findViewById(R.id.infod);
textDuration1 = (TextView) findViewById(R.id.duration1);
textDuration2 = (TextView) findViewById(R.id.duration2);
textDuration3 = (TextView) findViewById(R.id.duration3);
textDuration4 = (TextView) findViewById(R.id.duration4);
buttonStart.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
infoMsgA = "Thread A
";
infoMsgB = "Thread B
";
infoMsgC = "Thread C
";
infoMsgD = "Thread D
";
textInfoA.setText(infoMsgA);
textInfoB.setText(infoMsgB);
textInfoC.setText(infoMsgC);
textInfoD.setText(infoMsgD);
Thread thread1 = new Thread(new Runnable() {
boolean stop = false;
@Override
public void run() {
while (!stop) {
if (shareObj.getCounter1() > 0) {
//caution:
//shareObj.counter1 may change here
infoMsgA += "A 1: "
+ shareObj.delayDecCounter1(500) + "
";
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textInfoA.setText(infoMsgA);
}
});
} else {
stop = true;
final long endTime1 = System.currentTimeMillis();
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textDuration1.setText("Duration 1 (reference only): "
+ (endTime1 - startingTime));
}
});
}
}
}
});
Thread thread2 = new Thread(new Runnable() {
boolean stop = false;
@Override
public void run() {
while (!stop) {
if (shareObj.getCounter2() > 0) {
//caution:
//shareObj.counter2 may change here
infoMsgB += "B 2: "
+ shareObj.delayDecCounter2(500) + "
";
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textInfoB.setText(infoMsgB);
}
});
} else {
stop = true;
final long endTime2 = System.currentTimeMillis();
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textDuration2.setText("Duration 2 (reference only): "
+ (endTime2 - startingTime));
}
});
}
}
}
});
//
Thread thread3 = new Thread(new Runnable() {
boolean stop = false;
@Override
public void run() {
while (!stop) {
if (shareObj.getCounter1() > 0) {
//caution:
//shareObj.counter1 may change here
infoMsgC += "C 1: "
+ shareObj.delayDecCounter1(200) + "
";
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textInfoC.setText(infoMsgC);
}
});
} else {
stop = true;
final long endTime3 = System.currentTimeMillis();
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textDuration3.setText("Duration 3 (reference only): "
+ (endTime3 - startingTime));
}
});
}
}
}
});
Thread thread4 = new Thread(new Runnable() {
boolean stop = false;
@Override
public void run() {
while (!stop) {
if (shareObj.getCounter2() > 0) {
//caution:
//shareObj.counter2 may change here
infoMsgD += "D 2: "
+ shareObj.delayDecCounter2(1100) + "
";
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textInfoD.setText(infoMsgD);
}
});
} else {
stop = true;
final long endTime4 = System.currentTimeMillis();
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textDuration4.setText("Duration 4 (reference only): "
+ (endTime4 - startingTime));
}
});
}
}
}
});
//
startingTime = System.currentTimeMillis();
thread1.start();
thread2.start();
thread3.start();
thread4.start();
}
});
}
public class ShareClass {
int counter1;
int counter2;
Object lock1;
Object lock2;
ShareClass(int c) {
counter1 = c;
counter2 = c;
lock1 = new Object();
lock2 = new Object();
}
public int getCounter1() {
return counter1;
}
public int getCounter2() {
return counter2;
}
public int delayDecCounter1(int delay) {
//do something not access the share obj
try {
Thread.sleep(100);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
synchronized (this) {
int tmpCounter = counter1;
try {
Thread.sleep(delay);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
tmpCounter--;
counter1 = tmpCounter;
return counter1;
}
}
public int delayDecCounter2(int delay) {
//do something not access the share obj
try {
Thread.sleep(100);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
synchronized (this) {
int tmpCounter = counter2;
try {
Thread.sleep(delay);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
tmpCounter--;
counter2 = tmpCounter;
return counter2;
}
}
}
}
package com.example.androidthread;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.app.Activity;
public class MainActivity extends Activity {
Button buttonStart;
TextView textInfoA, textInfoB, textInfoC, textInfoD;
TextView textDuration1, textDuration2;
TextView textDuration3, textDuration4;
String infoMsgA;
String infoMsgB;
String infoMsgC;
String infoMsgD;
ShareClass shareObj = new ShareClass(10);
long startingTime;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
buttonStart = (Button) findViewById(R.id.buttonstart);
textInfoA = (TextView) findViewById(R.id.infoa);
textInfoB = (TextView) findViewById(R.id.infob);
textInfoC = (TextView) findViewById(R.id.infoc);
textInfoD = (TextView) findViewById(R.id.infod);
textDuration1 = (TextView) findViewById(R.id.duration1);
textDuration2 = (TextView) findViewById(R.id.duration2);
textDuration3 = (TextView) findViewById(R.id.duration3);
textDuration4 = (TextView) findViewById(R.id.duration4);
buttonStart.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
infoMsgA = "Thread A
";
infoMsgB = "Thread B
";
infoMsgC = "Thread C
";
infoMsgD = "Thread D
";
textInfoA.setText(infoMsgA);
textInfoB.setText(infoMsgB);
textInfoC.setText(infoMsgC);
textInfoD.setText(infoMsgD);
Thread thread1 = new Thread(new Runnable() {
boolean stop = false;
@Override
public void run() {
while (!stop) {
if (shareObj.getCounter1() > 0) {
//caution:
//shareObj.counter1 may change here
infoMsgA += "A 1: "
+ shareObj.delayDecCounter1(500) + "
";
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textInfoA.setText(infoMsgA);
}
});
} else {
stop = true;
final long endTime1 = System.currentTimeMillis();
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textDuration1.setText("Duration 1 (reference only): "
+ (endTime1 - startingTime));
}
});
}
}
}
});
Thread thread2 = new Thread(new Runnable() {
boolean stop = false;
@Override
public void run() {
while (!stop) {
if (shareObj.getCounter2() > 0) {
//caution:
//shareObj.counter2 may change here
infoMsgB += "B 2: "
+ shareObj.delayDecCounter2(500) + "
";
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textInfoB.setText(infoMsgB);
}
});
} else {
stop = true;
final long endTime2 = System.currentTimeMillis();
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textDuration2.setText("Duration 2 (reference only): "
+ (endTime2 - startingTime));
}
});
}
}
}
});
//
Thread thread3 = new Thread(new Runnable() {
boolean stop = false;
@Override
public void run() {
while (!stop) {
if (shareObj.getCounter1() > 0) {
//caution:
//shareObj.counter1 may change here
infoMsgC += "C 1: "
+ shareObj.delayDecCounter1(200) + "
";
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textInfoC.setText(infoMsgC);
}
});
} else {
stop = true;
final long endTime3 = System.currentTimeMillis();
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textDuration3.setText("Duration 3 (reference only): "
+ (endTime3 - startingTime));
}
});
}
}
}
});
Thread thread4 = new Thread(new Runnable() {
boolean stop = false;
@Override
public void run() {
while (!stop) {
if (shareObj.getCounter2() > 0) {
//caution:
//shareObj.counter2 may change here
infoMsgD += "D 2: "
+ shareObj.delayDecCounter2(1100) + "
";
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textInfoD.setText(infoMsgD);
}
});
} else {
stop = true;
final long endTime4 = System.currentTimeMillis();
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
textDuration4.setText("Duration 4 (reference only): "
+ (endTime4 - startingTime));
}
});
}
}
}
});
//
startingTime = System.currentTimeMillis();
thread1.start();
thread2.start();
thread3.start();
thread4.start();
}
});
}
public class ShareClass {
int counter1;
int counter2;
Object lock1;
Object lock2;
ShareClass(int c) {
counter1 = c;
counter2 = c;
lock1 = new Object();
lock2 = new Object();
}
public int getCounter1() {
return counter1;
}
public int getCounter2() {
return counter2;
}
public int delayDecCounter1(int delay) {
//do something not access the share obj
try {
Thread.sleep(100);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
synchronized (lock1) {
int tmpCounter = counter1;
try {
Thread.sleep(delay);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
tmpCounter--;
counter1 = tmpCounter;
return counter1;
}
}
public int delayDecCounter2(int delay) {
//do something not access the share obj
try {
Thread.sleep(100);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
synchronized (lock2) {
int tmpCounter = counter2;
try {
Thread.sleep(delay);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
tmpCounter--;
counter2 = tmpCounter;
return counter2;
}
}
}
}
<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=".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/buttonstart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="start()" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/infoa"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
<TextView
android:id="@+id/infob"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
<TextView
android:id="@+id/infoc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
<TextView
android:id="@+id/infod"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>
<TextView
android:id="@+id/duration1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/duration2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/duration3"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/duration4"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
@Override
protected void onDestroy() {
// TODO Auto-generated method stub
super.onDestroy();
if (mediaPlayer != null) {
mediaPlayer.release();
mediaPlayer = null;
}
}
@Override
protected void onPause() {
// TODO Auto-generated method stub
super.onPause();
if (mediaPlayer != null) {
mediaPlayer.release();
mediaPlayer = null;
}
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/textViewPhoneNo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter Phone Number : "
android:textAppearance="?android:attr/textAppearanceLarge" />
<EditText
android:id="@+id/editTextPhoneNo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:phoneNumber="true" >
</EditText>
<TextView
android:id="@+id/textViewSMS"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter SMS Message : "
android:textAppearance="?android:attr/textAppearanceLarge" />
<EditText
android:id="@+id/editTextSMS"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:lines="5"
android:gravity="top" />
<Button
android:id="@+id/buttonSend"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Send" />
</LinearLayout>
SmsManager
.package com.mkyong.android;
import android.app.Activity;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class SendSMSActivity extends Activity {
Button buttonSend;
EditText textPhoneNo;
EditText textSMS;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
buttonSend = (Button) findViewById(R.id.buttonSend);
textPhoneNo = (EditText) findViewById(R.id.editTextPhoneNo);
textSMS = (EditText) findViewById(R.id.editTextSMS);
buttonSend.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
String phoneNo = textPhoneNo.getText().toString();
String sms = textSMS.getText().toString();
try {
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(phoneNo, null, sms, null, null);
Toast.makeText(getApplicationContext(), "SMS Sent!",
Toast.LENGTH_LONG).show();
} catch (Exception e) {
Toast.makeText(getApplicationContext(),
"SMS faild, please try again later!",
Toast.LENGTH_LONG).show();
e.printStackTrace();
}
}
});
}
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mkyong.android"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" />
<uses-permission android:name="android.permission.SEND_SMS" />
<application
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".SendSMSActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>