Rampage Punch v1 1 1 1 Android Game Apk Free Downlaod

Rampage Punch v1.1
Requirements: Android 2.3.3 and up
Overview: Think you can throw punches like Quinton “Rampage” Jackson? Find out for real with Rampage Punch – the all-new app that judges your punches and gives you real feedback from Rampage himself.

 

Whip out your phone and grab some gloves – MEDL Mobile and Quinton “Rampage” Jackson are thrilled to bring you Rampage Punch!

PUNCH WITH PRIDE

Rampage Punch uses the latest ass-kicking technology to gauge your punches and see how hard you can hit, while helping you strike harder and faster with audio feedback from Quinton “Rampage” Jackson.

ACTION-BASED ACTION

Launch the app and pick the material you want to shatter: glass, wood, or metal. Grip your iPhone, steady your fists, listen for the bell, and then fire away!

KNOCKOUT NUMBERS

Rampage Punch records your reaction time and your punch force to give you an overall punch percentage rating. You’ll know instantly if you can strike like a champ – or couldn’t punch your way out of a field full of daises.

Don’t roll with the punches – throw them with Rampage Punch!

We are proud to call Rampage Punch a Shiny MEDL Object. You can see all of them at http://www.medlmobile.com. And if you have an idea for an app that you’d like to see on Google Play

More Info:


Code:

Ehttps://play.google.com/store/apps/details?id=com.medlmobile.enterprise.rampagepunch1

Download: Released by chathu_ac
http://1hostclick.com/de9grpxsbezk/R..._v1.1.apk.html
http://rapidgator.net/file/16565665/..._v1.1.apk.html
Read More..

Pocket God™ apk android lounge blogspot com

Pocket God™ apk
Pocket God™ apk

Current Version : 1.4.1
Requires Android : 2.0 and up
Category : Arcade And Action
Size : 18M





Recommended Links

  • ebay.com
  • half.com
  • store.apple.com

Description

You’re the island god!
What kind of god would you be? Benevolent or vengeful? Play Pocket God™ and discover the answer within yourself. Pocket God is an episodic microgame for you to explore, show your friends and have fun with. It contains multiple locations with many hilarious scenarios, exciting mini-games and hidden secrets for you to uncover.

For information on supported devices, please visit http://bit.ly/L3VFWT.



Videos


Search Result

Pocket God.apk. by matixsz 20,027 KB | 2011-04-05 | File | Report Abuse. Pocket God - get at 4shared. Pocket God is hosted at free file sharing service 4shared.,Tags: Download Pocket God 1.3.1, God, Pocket, Pocket God, Pocket God 1.3.1 apk, Pocket God apk, Pocket God v1.3.1 game for android. Archives. July 2013; June 2013;,Pocket God.apk. by bebop84 20,027 KB | 2011-10-30 | File | Report Abuse. Pocket God - get at 4shared. Pocket God is hosted at free file sharing service 4shared.,Download free Android game Pocket God apk. Find tons of the best games for any Android tablet and phone: Pocket God and many others at Mob.org. Huge collection of ,Download pocket god apk for free, Free get pocket god apk from rapidshare,Pocket God Apk Mediafire Download Pocket God 1.4.0 Requirements: Android OS 2.0 + Overview: Youre the island god! What kind of god would you be?,Download Android Apk Pocket God Fast and for Free. Experience the best Torrents right here. More Android Apk Pocket God available on the site,Pocket God Apk provides you a chance to play role of a supreme being who rules over an island & manipulates everything. The object of the Pocket God Apk game is to ,apk android apps pocket god pocket god 1.3.1 apk pocket god 1.39 apk pocket god apk 4shared pocket god apk v1 get Android Free ,Current Version: 1.4.1 Requires Android: 2.0 and up Category: Arcade & Action V1.4.1 update: Overview: Youre the island god! What kind of god would you be?

Read More..

Equilibrium v2 01 Apk

Equilibrium v2.01 Apk


Requirements: Android 2.2+
Overview: Fantasy style tower defense like RTS strategy featuring stunning 3D graphics!

A fragile world faces the eternal conflict between two distinct nations: Order and Chaos. Every day is a struggle between the battle for survival and desire to conquer. Peace is not an option.
You are entrusted with the authority to run a small village. Everyone eagerly awaits your commands to build houses for resources, erect towers for defense, and recruit warriors to annihilate your enemy. The subtle balance and timing of your actions is crucial for success. The fate of the world lies in your hands.
The game was originally inspired by tower defense games and shares some similarities with RTS games. Yet in practice youll see that the game mechanics and challenges presented are quite unique.
Download Equilibrium today and prove your strategic abilities on the battlefield!

Requirements:
- Android 2.2 ‘Froyo’ or newer
- 1GHz CPU
- 800x480 touch screen resolution or higher

Whats in this version:
-Warriors can fight each other on the battlefield!
-You can command your army to attack or retreat anytime;
-Diversity of resources was reduced;
-Purchase of items was simplified;
-Functionality of some buildings was changed;

Download Instructions:
http://ul.to/4p6pfqhw
http://www.mirrorcreator.com/files/TE2R345E/
Read More..

The possibilities for a ball to leave a field

There is a field as a matrix with m rows and n colls. Each cell of the matrix is another subfield with an altitude given by the value from the cell. There is a ball and knowing that the ball can only move in North,South,East,West and from a higher altitude to a lower one, the application will display all the possibilities of the ball to leave the field.
----------------------------------------------------------------------------------------------------

import java.io.*;
public class pb_bila{
private static int[][] sol=new int[100][3];
private static int[][] t=new int[10][10];
private static int m,n,i,j,lin,col;
private static void tipar(int k){
System.out.println("Solutie ");
for(i=1;i<=k-1;i++)
System.out.println(sol[i][1]+" "+sol[i][2]);
}
private static void back(int k,int lin,int col){
if(lin==0 || lin==m+1 || col==0 || col==n+1)
tipar(k);
else{
sol[k][0]=0;
sol[k][1]=lin;
sol[k][2]=col;
while(sol[k][0]<4){
sol[k][0]++;
switch(sol[k][0]){
case 1: if(t[lin-1][col]
back(k+1,lin-1,col);break;
case 2: if(t[lin][col+1]
back(k+1,lin,col+1);break;
case 3: if(t[lin+1][col]
back(k+1,lin+1,col); break;
case 4: if(t[lin][col-1]
back(k+1,lin,col-1); break;
}}}}
public static void main(String[] args){
try{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
System.out.print("m=");
m=Integer.parseInt(input.readLine());
System.out.print("n=");
n=Integer.parseInt(input.readLine());
for(i=1;i<=m;i++)
for(j=1;j<=n;j++){
System.out.print("t["+i+"],["+j+"]=");
t[i][j]=Integer.parseInt(input.readLine());
}
System.out.print("lin=");
lin=Integer.parseInt(input.readLine());
System.out.print("col=");
col=Integer.parseInt(input.readLine());
back(1,lin,col);
}catch(Exception e){e.printStackTrace();}
}
}
----------------------------------------------------------------------------------------------------
Read More..

Social Tapatalk Forum App 2 0 1 Android

Tapatalk Forum App 2.0.1 (Android)

Tapatalk Forum App 2.0.1 (Android)
Requirements: Android OS 2.0 +

Tapatalk Forum App 2.0.1 (Android) Overview: The only and the best fully functional forum app in the Market, endorsed by over 35,000 of forums worldwide. 4.5/5 stars reviewed by ten thousands of power fellows. Why not give it a try?

Online Communities at Your Fingertips
If you have ever tried to visit a forum using an Internet browser on your Android device you know what a nightmare it can be. The multitude of layouts you will encounter can have you scrolling, pinching, zooming, and swiping until your fingers are numb. Enter the Tapatalk Forum App.
Tapatalk houses over 35,000 of the most popular public forums right inside the app. From online games to technology, animals to extreme couponing, there is a forum out there to suit your interests. Browse the 13 categories or search for a particular forum in Tapatalks easy-to-use interface. You can find anything and everything with this app.

Once you have found the forums you want to read it is easy to add them to your favorites for quicker access. Then you simply log in to the app and read your private messages or reply to current topics. You can also easily start a thread about something that piques your interest. You can also mark the topics you care about on your forums.
Tapatalk contains all the features and capabilities found in your favorite browser but in a simple, straight-forward delivery. Easily see who is online, view board statistics, and even user profiles all without waiting for your phones browser to connect to the Internet. Give it a try today.

Whats in Tapatalk Forum App 2.0.1 (Android):
  • Introducing Tapatalk 2
  • Account Sync
  • Tapatalk 2 sync all your forum accounts among all mobile devices with Tapatalk installed. Works on iPad, iPhone, Android phone, tablets and BlackBerry.
  • Forum Recommendation
  • The best forums are not necessary the biggest. Discover new and emerging forums with our Recommendation Engine in Tapatalk 2.
  • Better Interface
  • A new look & feel w/ revamped interface allows you to focus on your conversation & latest discussions. Works great on Android ICS.

Tapatalk Forum App 2.0.1 (Android) screenshot:
Tapatalk Forum App 2.0.1 (Android)
Tapatalk Forum App 2.0.1 (Android)

Code:
https://play.google.com/store/apps/details?id=com.quoord.tapatalkpro.activity 

Download Tapatalk Forum App 2.0.1 (Android)

Code:
http://rapidgator.net/file/3946352/Tapatalk.Forum.App.2.0.1.Android.zip.html 
http://bitshare.com/files/c2pn3jlu/Tapatalk.Forum.App.2.0.1.Android.zip.html 
http://jumbofiles.com/1v2070qevyga 
Read More..

Search USB device for specified Vendor ID and Product ID

In previous posts of Android USB Host Mode example, we list all attached USB devices. In this example, we are going to search USB device for specified Vendor ID and Product ID, targetVendorID and targetProductID.

Search USB device for specified Vendor ID and Product ID
Search USB device for specified Vendor ID and Product ID
Mainly modified checkDeviceInfo() in last post "Read iManufacturer and iProduct of USB Device from raw Device Descriptors".

package com.example.androidusbhost;

import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;

import android.hardware.usb.UsbConstants;
import android.hardware.usb.UsbDevice;
import android.hardware.usb.UsbDeviceConnection;
import android.hardware.usb.UsbEndpoint;
import android.hardware.usb.UsbInterface;
import android.hardware.usb.UsbManager;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;

public class MainActivity extends Activity {

Button btnCheck;
TextView textInfo;
TextView textInfoInterface;
TextView textEndPoint;

TextView textDeviceName;

Spinner spInterface;
ArrayList<String> listInterface;
ArrayList<UsbInterface> listUsbInterface;
ArrayAdapter<String> adapterInterface;

Spinner spEndPoint;
ArrayList<String> listEndPoint;
ArrayList<UsbEndpoint> listUsbEndpoint;
ArrayAdapter<String> adapterEndpoint;

Button btnReadRawDescriptors;

private static final int targetVendorID= 9025;
private static final int targetProductID = 32828;
UsbDevice deviceFound = null;

private static final String ACTION_USB_PERMISSION =
"com.android.example.USB_PERMISSION";
PendingIntent mPermissionIntent;

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

textDeviceName = (TextView)findViewById(R.id.textdevicename);
spInterface = (Spinner)findViewById(R.id.spinnerinterface);
spEndPoint = (Spinner)findViewById(R.id.spinnerendpoint);
textInfo = (TextView) findViewById(R.id.info);
textInfoInterface = (TextView)findViewById(R.id.infointerface);
textEndPoint = (TextView)findViewById(R.id.infoendpoint);

btnCheck = (Button) findViewById(R.id.check);
btnCheck.setText("Check for device:
" +
"VendorID=" + targetVendorID + "
" +
"ProductID=" + targetProductID);
btnCheck.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View arg0) {
checkDeviceInfo();
}
});

btnReadRawDescriptors = (Button)findViewById(R.id.readRawDescriptors);
btnReadRawDescriptors.setEnabled(false);
btnReadRawDescriptors.setOnClickListener(btnReadRawDescriptorsOnClickListener);

//register the broadcast receiver
mPermissionIntent = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);
IntentFilter filter = new IntentFilter(ACTION_USB_PERMISSION);
registerReceiver(mUsbReceiver, filter);
}

OnClickListener btnReadRawDescriptorsOnClickListener =
new OnClickListener(){

@Override
public void onClick(View arg0) {
UsbDevice deviceToRead = deviceFound;
UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);

Boolean permitToRead = manager.hasPermission(deviceToRead);

if(permitToRead){
doReadRawDescriptors(deviceToRead);
}else{
manager.requestPermission(deviceToRead, mPermissionIntent);
Toast.makeText(MainActivity.this,
"Permission: " + permitToRead,
Toast.LENGTH_LONG).show();
}
}

};

private final BroadcastReceiver mUsbReceiver =
new BroadcastReceiver() {

@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (ACTION_USB_PERMISSION.equals(action)) {
synchronized (this) {
UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);

if (intent.getBooleanExtra(UsbManager.EXTRA_PERMISSION_GRANTED, false)) {
if(device != null){
doReadRawDescriptors(device);
}
}
else {
Toast.makeText(MainActivity.this,
"permission denied for device " + device,
Toast.LENGTH_LONG).show();
}
}
}
}

};

private void doReadRawDescriptors(UsbDevice device){
final int STD_USB_REQUEST_GET_DESCRIPTOR = 0x06;
final int LIBUSB_DT_STRING = 0x03;

boolean forceClaim = true;

byte[] buffer = new byte[255];
int indexManufacturer = 14;
int indexProduct = 15;
String stringManufacturer = "";
String stringProduct = "";

UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
UsbDeviceConnection connection = manager.openDevice(device);
if(connection != null){
UsbInterface intf = device.getInterface(0);
connection.claimInterface(intf, forceClaim);

byte[] rawDescriptors = connection.getRawDescriptors();

int lengthManufacturer = connection.controlTransfer(
UsbConstants.USB_DIR_IN|UsbConstants.USB_TYPE_STANDARD,
STD_USB_REQUEST_GET_DESCRIPTOR,
(LIBUSB_DT_STRING << 8) | rawDescriptors[indexManufacturer],
0,
buffer,
0xFF,
0);
try {
stringManufacturer = new String(buffer, 2, lengthManufacturer-2, "UTF-16LE");
} catch (UnsupportedEncodingException e) {
Toast.makeText(MainActivity.this, e.toString(), Toast.LENGTH_LONG).show();
}

int lengthProduct = connection.controlTransfer(
UsbConstants.USB_DIR_IN|UsbConstants.USB_TYPE_STANDARD,
STD_USB_REQUEST_GET_DESCRIPTOR,
(LIBUSB_DT_STRING << 8) | rawDescriptors[indexProduct],
0,
buffer,
0xFF,
0);
try {
stringProduct = new String(buffer, 2, lengthProduct-2, "UTF-16LE");
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Toast.makeText(MainActivity.this,
"Manufacturer: " + stringManufacturer + "
" +
"Product: " + stringProduct,
Toast.LENGTH_LONG).show();

connection.releaseInterface(intf);
connection.close();
}else{
Toast.makeText(MainActivity.this,
"open failed",
Toast.LENGTH_LONG).show();
}
}

private void checkDeviceInfo() {

deviceFound = null;

UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
HashMap<String, UsbDevice> deviceList = manager.getDeviceList();
Iterator<UsbDevice> deviceIterator = deviceList.values().iterator();

btnReadRawDescriptors.setEnabled(false);
while (deviceIterator.hasNext()) {
UsbDevice device = deviceIterator.next();

if(device.getVendorId()==targetVendorID){
if(device.getProductId()==targetProductID){
btnReadRawDescriptors.setEnabled(true);
deviceFound = device;
}
}
}

textInfo.setText("");
textInfoInterface.setText("");
textEndPoint.setText("");

if(deviceFound==null){
Toast.makeText(MainActivity.this,
"device not found",
Toast.LENGTH_LONG).show();
}else{
String i = deviceFound.toString() + "
" +
"DeviceID: " + deviceFound.getDeviceId() + "
" +
"DeviceName: " + deviceFound.getDeviceName() + "
" +
"DeviceClass: " + deviceFound.getDeviceClass() + " - "
+ translateDeviceClass(deviceFound.getDeviceClass()) + "
" +
"DeviceSubClass: " + deviceFound.getDeviceSubclass() + "
" +
"VendorID: " + deviceFound.getVendorId() + "
" +
"ProductID: " + deviceFound.getProductId() + "
" +
"InterfaceCount: " + deviceFound.getInterfaceCount();
textInfo.setText(i);

checkUsbDevicve(deviceFound);
}

}

OnItemSelectedListener deviceOnItemSelectedListener =
new OnItemSelectedListener(){

@Override
public void onItemSelected(AdapterView<?> parent,
View view, int position, long id) {
UsbDevice device = deviceFound;

String i = device.toString() + "
" +
"DeviceID: " + device.getDeviceId() + "
" +
"DeviceName: " + device.getDeviceName() + "
" +
"DeviceClass: " + device.getDeviceClass() + " - "
+ translateDeviceClass(device.getDeviceClass()) + "
" +
"DeviceSubClass: " + device.getDeviceSubclass() + "
" +
"VendorID: " + device.getVendorId() + "
" +
"ProductID: " + device.getProductId() + "
" +
"InterfaceCount: " + device.getInterfaceCount();
textInfo.setText(i);

checkUsbDevicve(device);
}

@Override
public void onNothingSelected(AdapterView<?> parent) {}

};

private void checkUsbDevicve(UsbDevice d) {
listInterface = new ArrayList<String>();
listUsbInterface = new ArrayList<UsbInterface>();

for(int i=0; i<d.getInterfaceCount(); i++){
UsbInterface usbif = d.getInterface(i);
listInterface.add(usbif.toString());
listUsbInterface.add(usbif);
}

adapterInterface = new ArrayAdapter<String>(this,
android.R.layout.simple_spinner_item, listInterface);
adapterInterface.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spInterface.setAdapter(adapterInterface);
spInterface.setOnItemSelectedListener(interfaceOnItemSelectedListener);
}

OnItemSelectedListener interfaceOnItemSelectedListener =
new OnItemSelectedListener(){

@Override
public void onItemSelected(AdapterView<?> parent,
View view, int position, long id) {

UsbInterface selectedUsbIf = listUsbInterface.get(position);

String sUsbIf = "
" + selectedUsbIf.toString() + "
"
+ "Id: " + selectedUsbIf.getId() + "
"
+ "InterfaceClass: " + selectedUsbIf.getInterfaceClass() + "
"
+ "InterfaceProtocol: " + selectedUsbIf.getInterfaceProtocol() + "
"
+ "InterfaceSubclass: " + selectedUsbIf.getInterfaceSubclass() + "
"
+ "EndpointCount: " + selectedUsbIf.getEndpointCount();

textInfoInterface.setText(sUsbIf);
checkUsbInterface(selectedUsbIf);
}

@Override
public void onNothingSelected(AdapterView<?> parent) {}

};

private void checkUsbInterface(UsbInterface uif) {
listEndPoint = new ArrayList<String>();
listUsbEndpoint = new ArrayList<UsbEndpoint>();

for(int i=0; i<uif.getEndpointCount(); i++){
UsbEndpoint usbEndpoint = uif.getEndpoint(i);
listEndPoint.add(usbEndpoint.toString());
listUsbEndpoint.add(usbEndpoint);
}

adapterEndpoint = new ArrayAdapter<String>(this,
android.R.layout.simple_spinner_item, listEndPoint);
adapterEndpoint.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spEndPoint.setAdapter(adapterEndpoint);
spEndPoint.setOnItemSelectedListener(endpointOnItemSelectedListener);
}

OnItemSelectedListener endpointOnItemSelectedListener =
new OnItemSelectedListener(){

@Override
public void onItemSelected(AdapterView<?> parent,
View view, int position, long id) {

UsbEndpoint selectedEndpoint = listUsbEndpoint.get(position);

String sEndpoint = "
" + selectedEndpoint.toString() + "
"
+ translateEndpointType(selectedEndpoint.getType());

textEndPoint.setText(sEndpoint);
}

@Override
public void onNothingSelected(AdapterView<?> parent) {}

};

private String translateEndpointType(int type){
switch(type){
case UsbConstants.USB_ENDPOINT_XFER_CONTROL:
return "USB_ENDPOINT_XFER_CONTROL (endpoint zero)";
case UsbConstants.USB_ENDPOINT_XFER_ISOC:
return "USB_ENDPOINT_XFER_ISOC (isochronous endpoint)";
case UsbConstants.USB_ENDPOINT_XFER_BULK :
return "USB_ENDPOINT_XFER_BULK (bulk endpoint)";
case UsbConstants.USB_ENDPOINT_XFER_INT:
return "USB_ENDPOINT_XFER_INT (interrupt endpoint)";
default:
return "unknown";
}
}

private String translateDeviceClass(int deviceClass){
switch(deviceClass){
case UsbConstants.USB_CLASS_APP_SPEC:
return "Application specific USB class";
case UsbConstants.USB_CLASS_AUDIO:
return "USB class for audio devices";
case UsbConstants.USB_CLASS_CDC_DATA:
return "USB class for CDC devices (communications device class)";
case UsbConstants.USB_CLASS_COMM:
return "USB class for communication devices";
case UsbConstants.USB_CLASS_CONTENT_SEC:
return "USB class for content security devices";
case UsbConstants.USB_CLASS_CSCID:
return "USB class for content smart card devices";
case UsbConstants.USB_CLASS_HID:
return "USB class for human interface devices (for example, mice and keyboards)";
case UsbConstants.USB_CLASS_HUB:
return "USB class for USB hubs";
case UsbConstants.USB_CLASS_MASS_STORAGE:
return "USB class for mass storage devices";
case UsbConstants.USB_CLASS_MISC:
return "USB class for wireless miscellaneous devices";
case UsbConstants.USB_CLASS_PER_INTERFACE:
return "USB class indicating that the class is determined on a per-interface basis";
case UsbConstants.USB_CLASS_PHYSICA:
return "USB class for physical devices";
case UsbConstants.USB_CLASS_PRINTER:
return "USB class for printers";
case UsbConstants.USB_CLASS_STILL_IMAGE:
return "USB class for still image devices (digital cameras)";
case UsbConstants.USB_CLASS_VENDOR_SPEC:
return "Vendor specific USB class";
case UsbConstants.USB_CLASS_VIDEO:
return "USB class for video devices";
case UsbConstants.USB_CLASS_WIRELESS_CONTROLLER:
return "USB class for wireless controller devices";
default: return "Unknown USB class!";

}
}

}

<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/check"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Check USB devices" />

<TextView
android:id="@+id/textdevicename"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textStyle="bold|italic" />

<Button
android:id="@+id/readRawDescriptors"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Read Raw Descriptors" />

<Spinner
android:id="@+id/spinnerinterface"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

<Spinner
android:id="@+id/spinnerendpoint"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent" >

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >

<TextView
android:id="@+id/info"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

<TextView
android:id="@+id/infointerface"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textStyle="italic" />

<TextView
android:id="@+id/infoendpoint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textStyle="bold" />

</LinearLayout>
</ScrollView>

</LinearLayout>


download filesDownload the files.



Step-by-step: Android USB Host Mode programming

Read More..

Apply animation on TextView

Apply animation on TextView


To create animation, create xml file to define animation in /res/anim/ folder, /res/anim/myanimation.xml.
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator">
<scale
android:fromXScale="1.0"
android:toXScale="0.8"
android:fromYScale="1.0"
android:toYScale="1.2"
android:pivotX="50%"
android:pivotY="50%"
android:duration="100"
android:repeatCount="4"
android:repeatMode="reverse" />
</set>


In Java code, create Animation of the anim resource file with AnimationUtils.loadAnimation() method, and start the animation with startAnimation() method of the target view.
package com.example.androidtextview;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;
import android.app.Activity;

public class MainActivity extends Activity {

Animation myAnimation;
TextView myText;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
myText = (TextView)findViewById(R.id.mytext);

myAnimation = AnimationUtils.loadAnimation(this, R.anim.myanimation);

myText.setOnClickListener(new OnClickListener(){

@Override
public void onClick(View arg0) {
myText.startAnimation(myAnimation);
}});
}

}


<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="Hello"
android:textStyle="bold|italic"
android:layout_gravity="center_horizontal" />

<TextView
android:id="@+id/mytext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="http://android-er.blogspot.com/"
android:textStyle="bold"
android:textSize="30sp"
android:textColor="#0000ff" />

</LinearLayout>



Read More..