Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Wednesday, February 4, 2015

CELKON TABLET CT 1 Android Tablet Firmware download


CELKON TABLET CT-1 Android Tablet Firmware software


Tablet Specifications:

Screen Size :                7 Inch 
CPU  :                              Cortex A 8 ,1.2GHz 
Display :                        800 x 480px 
RAM :                              512 MB
Memory :                       4 GB
External Memory :    Tf card slot support 16GB
Operation System :   Android 4.0 
Camera :                        0.3 megapixels; Back: 2.0 megapixels
HDMI :                            Available 
Bluetooth :                    Available
Wifi :                               Available
Battery :                         3-4 Hours.

DOWNLOAD TABLET PC FIRMWARE

Android beginner tutorial Part 62 Notification

Today well learn how to use a system service to create Notifications.

A Notification is a note that appears in the top of the screen, has an icon, a title and a descrition text.

Go to the activity_main.xml layout and create 2 buttons - one to start a notification and one to update it.

<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"
tools:context=".MainActivity" >

<Button android:id="@+id/notifyButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Start notification"
/>

<Button android:id="@+id/updateButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Update notification"
/>

</LinearLayout>

Go to MainActivity class and declare 4 variables - an identificator for the notification, a NotificationManager instance, a NotificationCompay.Builder instance and an Intent instance.

private static final int NOTIFY_ID = 101;
private NotificationManager notificationManager;
private NotificationCompat.Builder nbuilder;
private Intent resultIntent;

In the onCreate() function, set notificationManager to refer to a system service that manages notifications. Do that using the getSystemService() method as shown below:

notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

Now set the nbuilder to a new NotificationCompat.Builder() object. This will let us build our notification later:

nbuilder = new NotificationCompat.Builder(MainActivity.this);

Now set the Intent instance to an Intent that would be used when the user taps the Notification. I will direct it to a SecondActivity class:

resultIntent = new Intent(MainActivity.this, SecondActivity.class);

Now add a click listener to the notifyButton button. In the onClick() function, set the icon, title and text of our notification using nbuilders setSmallIcon(), setContentTitle() and setContentText() methods.

After that, we declare a TaskStackBuilder instance. Basically it is a Stack that we artificially create in order to get a PendingIntent instance, which is then passed to the builder via its setContentIntent() method.

Then we use the notify() method of the notificationManager object to show the notification.

final Button notifybtn = (Button)findViewById(R.id.notifyButton);
notifybtn.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
nbuilder.setSmallIcon(R.drawable.snowflake);
nbuilder.setContentTitle("Notification!");
nbuilder.setContentText("Hello world!");

TaskStackBuilder stackBuilder = TaskStackBuilder.create(MainActivity.this);
stackBuilder.addParentStack(SecondActivity.class);
stackBuilder.addNextIntent(resultIntent);
PendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);

nbuilder.setContentIntent(resultPendingIntent);
notificationManager.notify(NOTIFY_ID, nbuilder.build());
}
});

To update the notification, do whatever you need with the builder and then call the notify() function again. It is important to keep the same ID in order to update an existing notification:

final Button updatebtn = (Button)findViewById(R.id.updateButton);
updatebtn.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
nbuilder.setContentText("Updated message at " + new Date().toString());
notificationManager.notify(NOTIFY_ID, nbuilder.build());
}
});

Full code:

package com.kircode.codeforfood_test;

import java.util.Date;

import android.app.Activity;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.TaskStackBuilder;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity{

private static final int NOTIFY_ID = 101;
private NotificationManager notificationManager;
private NotificationCompat.Builder nbuilder;
private Intent resultIntent;

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

notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nbuilder = new NotificationCompat.Builder(MainActivity.this);
resultIntent = new Intent(MainActivity.this, SecondActivity.class);

final Button notifybtn = (Button)findViewById(R.id.notifyButton);
notifybtn.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
nbuilder.setSmallIcon(R.drawable.snowflake);
nbuilder.setContentTitle("Notification!");
nbuilder.setContentText("Hello world!");

TaskStackBuilder stackBuilder = TaskStackBuilder.create(MainActivity.this);
stackBuilder.addParentStack(SecondActivity.class);
stackBuilder.addNextIntent(resultIntent);
PendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);

nbuilder.setContentIntent(resultPendingIntent);
notificationManager.notify(NOTIFY_ID, nbuilder.build());
}
});

final Button updatebtn = (Button)findViewById(R.id.updateButton);
updatebtn.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
nbuilder.setContentText("Updated message at " + new Date().toString());
notificationManager.notify(NOTIFY_ID, nbuilder.build());
}
});
}

}

Now lets go to the second activity. Open its layout file activity_second.xml, add a button that kills the notification:

<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"
tools:context=".MainActivity" >

<TextView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="32sp"
android:text="Second Activity"
/>

<Button android:id="@+id/killButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Kill notification"
/>

</LinearLayout>

In the SecondActivity.java class add a click listener that removes the notification using the cancel() method of the notification manager:

package com.kircode.codeforfood_test;

import android.app.Activity;
import android.app.NotificationManager;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class SecondActivity extends Activity{

private static final int NOTIFY_ID = 101;

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

final Button killbtn = (Button)findViewById(R.id.killButton);
killbtn.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.cancel(NOTIFY_ID);
}
});
}

}

It is also possible to cancel all the notifications youve called using cancelAll().

You can also use setAutoCancel() method of the NotificationCompat.Builder object to make the notification kill itself when its selected.

Thanks for reading!

Tuesday, February 3, 2015

Android beginner tutorial Part 13 Scrolling content

In this tutorial we will learn how to implement scrolling.

The TextView class uses its own scrolling system and it doesnt need any additional scrolling functionality, but adding visible scroll bars to TextView objects improve the visual look of the application and usability.

There are two container classes that are used to add scroll bars. These are ScrollView and HorizontalScrollView. Note that the ScrollView class only provides a vertical scroll bar. To use both, include the HorizontalScrollView container inside the ScrollView container.

It should be noted that both of these classes are subclasses of the FrameLayout class. This means that these objects can only contain 1 child. Usually this child is a LinearLayout with items stacked horizontally or vertically.

Lets create a simple example that displays a TextView with a large piece of text and make it scrollable.

First, open the strings.xml file and add a "textLorem" object which contains a huge portion of Lorem ipsum text.

<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="app_name">Code For Food Test</string>
<string name="textLorem">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin sit amet metus eu lacus faucibus facilisis in ac odio. Maecenas magna ipsum, hendrerit vel pulvinar eget, posuere et arcu. Phasellus semper mollis vestibulum. Mauris nec felis lorem, at porta tellus. Vestibulum vel leo mi, id consequat sem. In hac habitasse platea dictumst. Praesent suscipit auctor tellus quis condimentum. Morbi id sem id justo vestibulum consectetur. Aliquam leo nisl, tempus quis feugiat at, varius a sem. Proin nulla augue, scelerisque eu rutrum sit amet, aliquam eu leo. Nullam justo mauris, tristique quis condimentum in, sagittis a massa.</string>
<string name="menu_settings">Settings</string>

</resources>

Now go to activity_main.xml and use this code:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:context=".MainActivity" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/textLorem"
android:textSize="24sp"/>

</ScrollView>

Test this on an emulator or a device and you will see that the text is vertically scrollable.

You can add multiple elements this way:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:context=".MainActivity" >

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

<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="A button"
/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/textLorem"
android:textSize="24sp"/>

<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Another button"
/>

</LinearLayout>

</ScrollView>

That is all there is to it!

Thanks for reading.

Monday, February 2, 2015

Android beginner tutorial Part 20 ImageButton widget

Today well learn about the ImageButton widget.

The ImageButton component is similar to a regular Button, with the only exception that instead of text, it displays an image. If you havent already read one of my earlier tutorials about ImageView class, do so, because in this tutorial we will be working with drawable resources.

Lets start writing our example application right away - go to activity_main.xml layout file and create a simple layout with an ImageButton inside of it. Use its android:src attribute to set the image source:

<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"
tools:context=".MainActivity" >

<ImageButton android:id="@+id/myButton"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:src="@drawable/snowflake"
/>

</LinearLayout>

I should note that in this tutorial Im using 2 images - snowflake.png and snowflake2.png, which is basically a recolored version of the original snowflake.

Go to MainActivity.java class now and create an Activity class that does the following things:

1. Declare 2 variables - "button" ImageButton and "toggle" boolean.
2. Set "toggle" to true in the onCreate() function.
3. Set "button" to our existing ImageButton in the layout xml.
4. Add a click listener to the button, which sets the image source of the button based on the "toggle" boolean value, also change the value of the "toggle" boolean to opposite.

Use the setImageResource() method to set image source dynamically.

Heres the code:

package com.kircode.codeforfood_test;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.ImageButton;

public class MainActivity extends Activity{

public ImageButton button;
private boolean toggle;

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

toggle = true;

button = (ImageButton)findViewById(R.id.myButton);
button.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
if(toggle){
button.setImageResource(R.drawable.snowflake2);
}else{
button.setImageResource(R.drawable.snowflake);
}
toggle = !toggle;
}
});
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}

}

If you run your application now on a device or an emulator, youll see that you can press the button to toggle the image. Heres what my application looks like (2 screenshots of what the button looks like before and after clicking it):



Thanks for reading!

Sunday, February 1, 2015

Unlcok Pattern lock or Gmail account on Android devices without access of Internet

Unlcok Pattern lock or Gmail account without access of Internet. Using Android Devlopment Bridge 
(ADB )Command .

To use this solution Android Tablet or Android Smart Phone USB debugging Mode must be enable . Other wise Hard Reset is an option.This solution works with Android Tablets and Android Smart Phones
  • Download Android SDK and install. Andriod directory will be created in C:Programe File 
  • Connect device with Computer
  • Install USB Drivers for Android Device 
  • From windows start button click on Run , write cmd and enter it will open DOS.
  • Change Compand path to Android SDK Manager (cd C:Program FilesAndroidandroid-sdkplatform-tools)Capital and small chracters count. 
  • Type Command in CMD : adb device (Connected Tablets or Smart Phone will be display in CMD directory if not then try to reconnect your android device again. 
  • adb shell 
  • cd /data/data/com.android.providers.settings/databases
  •  sqlite3 settings.db
  •  update system set value=0 where name=lock_pattern_autolock;
  • update secure set value=0 where name=lock_pattern_autolock; (for some devices update “system” is enough but I had to update “secure” too)
  • update system set value=0 where name=lockscreen.lockedoutpermanently;
  •  update secure set value=0 where name=lockscreen.lockedoutpermanently;
  • .quit
  • exit
  • adb reboot 
Your android device should be unlocked if not , then add this line in CMD as well (adb shell rm /data/system/gesture.key)
This Pattern unlock done with the help of android database . I mostly keep enable my USB debugging mode but if you concern to the security of your Android Tablets or Android smart phones then you must keep it off. 

Wednesday, January 28, 2015

FIFA World Cup 2014 Brazil Download Android App WORLD CUP 2014

FIFA World Cup 2014 Brazil 

Top Android Apps for Worldcup 2014

Get every minute  Updates for Soccer matches, News, Football schedule,Match Results,Match scores.


FIFA World Cup 2014 Brazil
FIFA world cup 2014 Brazil opening ceremony is going to be start in some hours. Everyone is crazy about football world cup 2014 and supporting their teams. Google Play store is completely celebrating the  joy of fifa world cup 2014 with alot of Android apps related to world cup 2014 Brazil.  Find every minute updates , schedules,team positing , squad Detail ,Team Ranking,Top scores,top players,Most goals,Players history and many more with Android Apps. 
Fifa World Cup 2014 is popular Android app with all the information , updates on football world cup 2014 which held in brazil. The amazing app is free along with many features to stay connect with Fifa world cup if you are not front of your Tv .Its a sport Apps. 

ScreenShot for World Cup 2014 Android App.



FIFA World Cup 2014 Brazil
Fifa world cup Match Detail


FIFA World Cup 2014 Brazil
World cup 2014 Top Score update


FIFA World Cup 2014 Brazil
World Cup 2014 Brazil Squad Detail


FIFA World Cup 2014 Brazil
World Cup 2014 Brazil Team Standings


FIFA World Cup 2014 Brazil
World Cup 2014 Brazil Group Matches
FIFA World Cup 2014 Brazil
World Cup 2014 Brazil match odd


FIFA World Cup 2014 Brazil
World Cup 2014 Brazil upcoming stages


App Detail :


2.3.3 and Above
1.2.8 Version
531K apk size
4.3 Rating.
DOWNLOAD FIFA WORLD CUP 2014 APP

Tuesday, January 27, 2015

Samsung Galaxy Tab III Clone Chines Version Android Tablet Firmware

Samsung Galaxy Tablet III Clone Chinese Version 

TZX-713B V2.1  PCB Image/Board ID



Chipset : Allwinner A13 wikipedia

Flashing Tools 

Flashing Tool : Livesuit 
Flashing Tutorial : how to flash tablet with Livesuit


Additional Android Reset Tools

You can also use : Android Multi Tools

Technical Information Tablets

The following firmware / ROM file will be used   when your Android tablet facing various problems . In case of
1. Forgotten Pattern Lock , 
2.Too many pattern attampt / Reset user lock
3.Tablet stuck on Gmail account
4. Tablet stuck on Android logo
5.Tablet hang on start up 
you can use this Android Tablet firmware  ROM to make your Android China tablet working again . Make sure to charge battery . Power failuer during flashing may result dead or broken tablet.
Flashing stock firmware should be last option

Firmware Download :
GBTTOHPD/TZX-713B_V21 Tested Firmware

Saturday, January 24, 2015

ONYO Winner 16 GB 9 7 Android Tablet Firmware







Winner ONYO 16 GB 9.7

DOWNLOAD OFFICIAL FIRMWARE

Friday, January 23, 2015

Q8 V41C 0309 0925 Android tablet Pc Firmware

Allwinner Q8 V41C 0309 0925

 Android tablet Pc Firmware 


What board ID , Tablet CPU Chip ,Firmware Number does my Tablet have ?

Encyclopedia:-

Read Article About Allwinner Technology

Frequently Asked Question about Android Tablets 


Tablet Flashing Tools:
  • Tablet Flashing Tool :  Firmware upgrade tool LiveSuit & Drivers
  • Tablet Flashing Tool:   Firmware upgrade Tool Phoenix Usb Pro
  • Flashing with SD Card:Firmware update instruction with microSD card
Flashing Tutorials for Allwinner Tablets:
  • LiveSuit Tutorial :  how to flash tablet with LiveSuit
  • Phoenix Usb PrO Video Tutorial :Tutorial
Recommended Tools for Common Tablet Issues: 

You can also use : Android Multi Tools

When I need to Flash or Restore my Tablet Pc?
Restoring your tablet pc or smartphones to stock rom is necessary when android tablet or smartphones faces the following problems. 
1. Forgotten Pattern Lock on Android Tablets. (If undone by Hard reset)
2.Too many pattern attempts / Reset user lock.(If undone by Hard reset)
3. Tablets PC stuck on Gmail account.
4. Android Tablet PC stuck on Android logo.
5.Unexpected error / Force close errors generate by Android operating system .
6. Tablet Android  hang on start-up / Multiple errors generating by OS. 
7. Market Android / Google play having problems or generating errors. 
8.Upgrading to new Android version.

you can use this Android Tablet firmware,  ROM to restore your Android China tablets to generic firmwares or upgrades . Make sure to charge battery upto 60%. Power failure during flashing may result dead or broken tablets.
Note : Consider flashing Stock firmwares , last option.

Download StocK Rom


Related Posts:
  • Q8 V6.6 Allwinner Stock Rom
  • Q8 V1.7 Allwinner Stock Rom
  • Q8 V2.6 GSL1680 Allwinner Stock Rom
  • Q8 mxc622x 20121101 Generic Rom
  • Q8 atm7013 Allwinner Stock Rom
  • Q8 V1.5 zhongxing Generic Rom
  • Q8 a13 51324 Allwinner Stock Rom
  • Q8 V12 Allwinner Stock Rom
  • Q8 2127 V4 03090 20120918 Stock Rom
  • Q8+ pengyang Stock Rom


Thursday, January 22, 2015

Android beginner tutorial Part 46 DatePickerDialog

Today we will learn how to add and use a DatePickerDialog.

First make sure theres a button in the Activity layout (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"
tools:context=".MainActivity" >

<Button
android:id="@+id/testButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Call an DatePickerDialog"
/>

</LinearLayout>

Now go to MainActivity.java class and declare a DatePickerDialog instance:

public DatePickerDialog myDialog;

In the onCreate() function, add a click listener to the button. Inside the onClick() handler function, set myDialog to a new DatePickerDialog instance and then call show() method of myDialog.

The DatePickerDialog constructor gets 5 parameters - context, OnDateSetListener object, year, month and day that are set by default.

The OnDateSetListener() object has an onDateSet() method that receives the following parameters: view, year, monthOfYear and dayOfMonth. We can display them using a toast.

Remember that month values range from 0-11. So, january is 0th month and december is 11th.

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

Button button = (Button)findViewById(R.id.testButton);

button.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
myDialog = new DatePickerDialog(MainActivity.this, 0, new OnDateSetListener() {

@Override
public void onDateSet(DatePicker view, int year, int monthOfYear,
int dayOfMonth) {
String date = (monthOfYear+1) + "/" + dayOfMonth + "/" + year;
Toast toast = Toast.makeText(MainActivity.this, date, Toast.LENGTH_SHORT);
toast.show();
}
}, 2012, 11, 31);
myDialog.show();
}
});

}

Full code:

package com.kircode.codeforfood_test;

import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.DatePickerDialog.OnDateSetListener;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.Toast;

public class MainActivity extends Activity{

public DatePickerDialog myDialog;

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

Button button = (Button)findViewById(R.id.testButton);

button.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
myDialog = new DatePickerDialog(MainActivity.this, 0, new OnDateSetListener() {

@Override
public void onDateSet(DatePicker view, int year, int monthOfYear,
int dayOfMonth) {
String date = (monthOfYear+1) + "/" + dayOfMonth + "/" + year;
Toast toast = Toast.makeText(MainActivity.this, date, Toast.LENGTH_SHORT);
toast.show();
}
}, 2012, 11, 31);
myDialog.show();
}
});

}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}

}

The results look like this:



Thanks for reading!

Monday, January 19, 2015

PIPO M6 3G version Android tablet firmware

PIPO M6 3GAndroid tablet firmware





DOWNLOAD OFFICIAL FIRMWARE

Sunday, January 18, 2015

Allwinner A13 751G Android Tablet firmware Download

Allwinner A13 751g 

WIFI 8723 DUAL SP0A19 8GB

Android Tablet Firmware Download 
Android Tablet Firmware Download

Specifications:


LCD                
7"  Capacitive Touch Screen
Screen Resolution 
800 X 600 Pix
Processor 
1.2GHZ 
Chipset / Boxchip
 Allwinner A13 Android Tablet
RAM
1GB 
Built in Memory
8 GB
External Memory
Support Micro Card  (MAX 32GB)
Wifi
802.11 b/g/n  supported
Blue tooth
N/A
3G
 Support USB 3G Dongle, EVDO/WCDMA
Camera
0.3 Megapixel front , 2 Megapixel back                       
HDMI
Supported
Speaker
Built IN
Battery
3-4 Hrs
Android Version
4.0 ICS
Flashing Tool
LiveSuit Pack
Flashing Tutorials
how to flash tablet with Livesuit


Useful Tools :

Android Multi Tools (you can also use this Tool)

The following firmware / ROM file will be used   when your Android tablet facing various problems . In case of
1. Forgotten Pattern Lock , 
2.Too many pattern attempt / Reset user lock
3. Android Tablet stuck on Gmail account
4. Android Tablet stuck on Android logo
5.Android Tablet hang on startup 
you can use this Android Tablet firmware  ROM to make your Android China tablet working again . Make sure to charge battery . Power failure during flashing may result dead or broken tablet.
Flashing stock firmware should be last option.
Download :
DOWNLOAD OFFICIAL FIRMWARE

HIPSTREET FLARE 9 Inch Android Tablet Firmware Restore

HIPSTREET FLARE 9 Inch Ebook Reader Android Tablet Firmware Restore.

Board ID :  kf026-mainboard-v2.0.0


HIPSTREET Flare 9 inch Tablets are best quality Android ebook reader . Carrying Allwinner A13 Chipset with good quality of manufacture staff.The  brand is also well famous in USA,United kingdom and Europe as well. 

Review:-

Official Review Hipstreet flare 9 inch Tablet



 Encyclopedia:-

Read Article About Allwinner A1X Chips 
Tablet PC Specification:

  • Chipset :                             Allwinner A13
  • Model :                                HS 9DTB
  • Screen Size :                     9 Inch Capacitive Touch Screen
  • CPU  :                                   1.2GHz ,Single Core
  • Display :                             800 x 480px 
  • RAM :                                   512 MB DDR 2
  • Memory :                            4GB/8GB
  • External Memory :         card slot support 32GB
  • Operation System :       Android 4.0 
  • HDMI :                                N/A Mini USB 2.0
  • Wifi :                                   Wifi 802.11 b/g/n 
  • Battery :                             5-10 Hours.

Flashing Tools 
  • Flashing Tool :                LiveSuit & Drivers
  • Flashing Tool:                 Phoenix Usb Pro
Flashing Tutorials:
  • Livesuit Tutorial :  how to flashing tablet with Livesuit
  • Phoenix Usb PrO Video Tutorial :Tutorial
Recommended Tools: 

You can also use : Android Multi Tools

Common Android Tablet issues :

The following firmware , ROM file will be used  when your Android tablet facing various problems . 
1. Forgotten Pattern Lock . 
2.Too many pattern attempts / Reset user lock.
3.  Tablets PC stuck on Gmail account.
4. Android Tablets PC stuck on Android logo.
5. Tablet Android  hang on startup / Multiple errors generating by OS. 
6. Google play store having problems or generating errors. 
7.Upgrading to new Android OS.
you can use this Android Tablet firmware,  ROM to restore your Android China tablets to generic firmwares or upgrades . Make sure to charge battery . Power failure during flashing may result dead or broken tablets.
Note : Flashing generic tablet firmware should be last option.

Firmware Download 
Download Restore Firmware

Saturday, January 17, 2015

Android beginner tutorial Part 51 Context Menu

In this tutorial we are going to learn about Context menus in Android.

As I mentioned before, Context menus are menus that appear when the user performs a long-press. A long-press is a screen touch that lasts for 2 or more seconds. Context menus are common in applications on desktops - they appear on right clicks.

First go to activity_main.xml that is located in the res/layout/ folder. Here we add 2 TextView objects (make sure they are big enough), label them Example One and Example Two. Give them ids as shown below:

<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"
tools:context=".MainActivity" >

<TextView android:id="@+id/text_one"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Example One"
android:textSize="50sp"
/>

<TextView android:id="@+id/text_two"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Example Two"
android:textSize="50sp"
/>

</LinearLayout>

We are going to make them both react to long-presses. Moreover, well tell them to display different context menus when interacted with.

Go to MainActivity.java nad declare 6 identificator variables:

public static final int IDM_ONE = 101;
public static final int IDM_TWO = 102;
public static final int IDM_THREE = 103;
public static final int IDM_FOUR = 104;
public static final int IDM_FIVE = 105;
public static final int IDM_SIX = 106;

In the onCreate() function, find the two TextViews and call a method called registerForContextMenu() twice, passing each TextView to the function:

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

final TextView tOne = (TextView)findViewById(R.id.text_one);
final TextView tTwo = (TextView)findViewById(R.id.text_two);

registerForContextMenu(tOne);
registerForContextMenu(tTwo);
}

Now create a function called onCreateContextMenu(). Inside of it, after calling the super function, add a switch..case statement that checks what View is passed to the function. The View value is the View that the user has long-pressed on. We can compare its id to R.id.text_one and R.id.text_two and display different context menus like this:

@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);

switch(v.getId()){
case R.id.text_one:
menu.setHeaderTitle("Example one context");
menu.add(Menu.NONE, IDM_ONE, Menu.NONE, "Item one");
menu.add(Menu.NONE, IDM_TWO, Menu.NONE, "Item two");
menu.add(Menu.NONE, IDM_THREE, Menu.NONE, "Item three");
break;
case R.id.text_two:
menu.setHeaderTitle("Example two context");
menu.add(Menu.NONE, IDM_FOUR, Menu.NONE, "Item four");
menu.add(Menu.NONE, IDM_FIVE, Menu.NONE, "Item five");
menu.add(Menu.NONE, IDM_SIX, Menu.NONE, "Item six");
break;
default:
break;
}
}

To add item selection listeners to these functions, override a onContextItemSelected() method and use a switch..case statement to check the ids of the selected item to display different messages:

@Override
public boolean onContextItemSelected(MenuItem item){
CharSequence message;
switch(item.getItemId()){
case IDM_ONE:
message = "First item selected";
break;
case IDM_TWO:
message = "Second item selected";
break;
case IDM_THREE:
message = "Third item selected";
break;
case IDM_FOUR:
message = "Fourth item selected";
break;
case IDM_FIVE:
message = "Fifth item selected";
break;
case IDM_SIX:
message = "Sixth item selected";
break;
default:
return super.onContextItemSelected(item);
}
Toast toast = Toast.makeText(this, message, Toast.LENGTH_SHORT);
toast.show();
return true;
}

Now we have 2 TextViews in our application that, when long-pressed on, display different Context menus, that react to item selection events.

Full code:

package com.kircode.codeforfood_test;

import android.app.Activity;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

public class MainActivity extends Activity{

public static final int IDM_ONE = 101;
public static final int IDM_TWO = 102;
public static final int IDM_THREE = 103;
public static final int IDM_FOUR = 104;
public static final int IDM_FIVE = 105;
public static final int IDM_SIX = 106;

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

final TextView tOne = (TextView)findViewById(R.id.text_one);
final TextView tTwo = (TextView)findViewById(R.id.text_two);

registerForContextMenu(tOne);
registerForContextMenu(tTwo);
}

@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);

switch(v.getId()){
case R.id.text_one:
menu.setHeaderTitle("Example one context");
menu.add(Menu.NONE, IDM_ONE, Menu.NONE, "Item one");
menu.add(Menu.NONE, IDM_TWO, Menu.NONE, "Item two");
menu.add(Menu.NONE, IDM_THREE, Menu.NONE, "Item three");
break;
case R.id.text_two:
menu.setHeaderTitle("Example two context");
menu.add(Menu.NONE, IDM_FOUR, Menu.NONE, "Item four");
menu.add(Menu.NONE, IDM_FIVE, Menu.NONE, "Item five");
menu.add(Menu.NONE, IDM_SIX, Menu.NONE, "Item six");
break;
default:
break;
}
}

@Override
public boolean onContextItemSelected(MenuItem item){
CharSequence message;
switch(item.getItemId()){
case IDM_ONE:
message = "First item selected";
break;
case IDM_TWO:
message = "Second item selected";
break;
case IDM_THREE:
message = "Third item selected";
break;
case IDM_FOUR:
message = "Fourth item selected";
break;
case IDM_FIVE:
message = "Fifth item selected";
break;
case IDM_SIX:
message = "Sixth item selected";
break;
default:
return super.onContextItemSelected(item);
}
Toast toast = Toast.makeText(this, message, Toast.LENGTH_SHORT);
toast.show();
return true;
}

}

Thanks for reading!

Q8 V6 6 4 0 android tablet firmware software ROM

Q8 V6.6 4.0 0309 

APK_TV 4G 2013080 China base Android tablet

Allwinner A13 Tablet 
Allwinner A13 Firmware


SPEC :


Model :                             Tablet PC
Board ID :                       Q8 V6.6
Screen Size :                    7 Inch 
CPU  :                              1.2GHz; GPU: Mali 400 
Display :                          800 x 480px 
RAM :                             1 GB
Flash Memory :               8 GB
External Card :               Micro (Support upto 16 GB)
Operation System : Android 4.1 
Dual camera; Front:      0.3 megapixels; Back: 2.0 megapixels
HDMI :                          Available 
Bluetooth :                     Available 
Chipset :                        Allwinner A13
Flashing Tool :              LiveSuit Pack
Flashing Tutorial : how to flashing tablet with Livesuit
You can also use : Android Multi Tools


The following firmware / ROM file will be used   when your tablet facing various problems . In case of
1. Forgotten Pattern Lock , 
2.Too many pattern attempt / Reset user lock
3.Tablet stuck on Gmail account
4. Tablet stuck on Android logo
5.Tablet hang on startup 
you can use this Tablet firmware  ROM to make your Android China tablet working again . 
Flashing stock firmware should be last option.

DOWNLOAD OFFICIAL FIRMWARE

Friday, January 16, 2015

Android PHP JSON tutorial

Here Im going to demonstrate how we can decode JSON encoded data in Android using very simple example. I used Android 2.2 for this.

First here is some extra information about JSON:

1. What is JSON

  • JSON stands for JavaScript Object Notation
  • JSON is lightweight text-data interchange format
  • JSON is language independent 
  • JSON is "self-describing" and easy to understand
                                                           (from w3schools)  
2. Click here to know benefits of JSON over XML

Now lets see simple example of JSON reading in Android.
In my project there is a PHP web service which encodes a string array in to JSON format. Im going to access that web service using Android http client and then it decodes json data. I have tested this on Android 2.2

1. Here is the code for PHP

<?php
$data = array(name => Froyo, version => Android 2.2);
print (json_encode($data));
?>

2. Contents of Android Layout Manifest and Activity files
 main.xml file
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<TextView
android:id="@+id/textView1"
android:layout_width="216dp"
android:layout_height="36dp"
android:layout_weight="1"
android:layout_x="66dp"
android:layout_y="192dp"
android:textAppearance="?android:attr/textAppearanceMedium" />

</AbsoluteLayout>

manifest.xml 
You need to add internet permissions 
 
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.json.php"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET"/>

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".JSONExampleActivity"
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>

Android activity 

package com.json.php;

import android.app.Activity;
import android.os.Bundle;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import android.widget.TextView;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.json.JSONException;
import org.json.JSONObject;


public class JSONExampleActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://codeincloud.tk/json_android_example.php");
TextView textView = (TextView)findViewById(R.id.textView1);
try {

HttpResponse response = httpclient.execute(httppost);
String jsonResult = inputStreamToString(response.getEntity().getContent()).toString();
JSONObject object = new JSONObject(jsonResult);

String name = object.getString("name");
String verion = object.getString("version");
textView.setText(name + " - " + verion);

}
catch (JSONException e) {
e.printStackTrace();
}
catch (ClientProtocolException e) {
e.printStackTrace();
}
catch (IOException e) {
e.printStackTrace();
}


}
private StringBuilder inputStreamToString(InputStream is) {
String rLine = "";
StringBuilder answer = new StringBuilder();
BufferedReader rd = new BufferedReader(new InputStreamReader(is));

try {
while ((rLine = rd.readLine()) != null) {
answer.append(rLine);
}
}

catch (IOException e) {
e.printStackTrace();
}
return answer;
}
}

 Result

Click here to download the Android project.

Thats it
 Happy coding! :)