Wednesday, 31 August 2011
New Admin Tools for Blogger
Blogger Update
I have been using it for about two or three weeks now. The new interface is certainly very stylish. However, some of the fonts seem a bit smallish to me. In addition, things like labels are much more difficult to use. So for me the jury is still out. But it is nice Google is trying to improve things. I can still give a whole-hearted recommendation for using Blogger to start a web site and blog. Still simple and easy to use.
App Inventor will change to appinventorbeta.com
As Google announced on the App Inventor Announcement Forum, Google will end support for App Inventor and open source the code base at the end of this year. Additionally, in order to ensure the future success of App Inventor, Google has funded the establishment of aCenter for Mobile Learning at the MIT Media Lab, where MIT will be actively engaged in studying and extending App Inventor. This transition will happen at the end of 2011. At that time you will need to download your data from appinventorbeta.com in order to continue working with it in the open source instance of App Inventor. In the coming months we will send you detailed instructions on how to download your data.
Tuesday, 30 August 2011
Wanna Learn What's New in Java 7?
Java SE 7 New Features
The is a 2 day course that focuses just on the new features in Java 7. So if you are a Java geek and want to learn about new language features, check out the course. The course is created by my group with just a smidge of help from me. :)
5.0 beta 3-6 support
And YES! I am still working on the rewrite for TU. I plan on having DFU pwnage support for those of you with devices that support limera1n. I'm probably going to try to add pwnage2 support if possible for those of you with devices that support it. I'll keep you updated as much as possible. :)
Monday, 29 August 2011
path.addArc()
package com.exercise.AndroidDraw;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.os.Bundle;
import android.view.View;
public class AndroidDrawActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new MyView(this));
}
public class MyView extends View {
public MyView(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
super.onDraw(canvas);
float width = (float)getWidth();
float height = (float)getHeight();
float radius;
if (width > height){
radius = height/4;
}else{
radius = width/4;
}
Paint paint = new Paint();
paint.setColor(Color.WHITE);
paint.setStrokeWidth(5);
paint.setStyle(Paint.Style.STROKE);
Path path = new Path();
float center_x, center_y;
center_x = width/4;
center_y = height/4;
final RectF oval = new RectF();
oval.set(center_x - radius,
center_y - radius,
center_x + radius,
center_y + radius);
path.addArc(oval, 0, 90);
center_x = width/2;
center_y = height/2;
oval.set(center_x - radius,
center_y - radius,
center_x + radius,
center_y + radius);
path.addArc(oval, -90, 180);
center_x = width * 3/4;
center_y = height * 3/4;
oval.set(center_x - radius,
center_y - radius,
center_x + radius,
center_y + radius);
path.addArc(oval, 0, 360);
canvas.drawPath(path, paint);
}
}
}
Saturday, 27 August 2011
Free ebook: Programming Windows Phone 7, by Charles Petzold
This book is a gift from the Windows Phone 7 team at Microsoft to the programming community. Showing you the basics of writing applications for Windows Phone 7 using the C# programming language with the Silverlight and XNA 2D frameworks.
You can download a PDF here (38.6 MB).
And, as of August 1, 2011, you can now download an EPUB version here and a MOBI version here.
Friday, 26 August 2011
Asus U36S Ultra Thin Laptop Specification and Price
Asus U36S Ultra-Thin Laptops Specifications :
- Processor : Powered by a 2nd-gen Intel Core processor
- Memory : Dual-channel DDR3
- Hard Drive : Up to 750GB
- Display : 13.3-inch glossy display with resolution of 1366 x 768 pixels with aspect ratio 16:9
- Operating System : Windows 7
- connectivity : Wi-Fi, and Gigabit Ethernet LAN
- Data transfer : USB 3.0 port
- Multi-gesture touchpad, and a Chiclet keyboard
- Multi-card reader, and fingerprint reader
- HDMI output
- Battery : a 4-cell/8-cell
- Measuring : 19mm thick and
- weight : 1.9kg
Price : 1,299 Euro (about $1,870).
Aspire One D257 with MeeGo Laptops Review Specs and Price
Linux-based MeeGo-developed by Intel and Nokia is currently one of the most popular OS among the manufacturers of netbooks. In early August, in fact, was presented with Meego first netbook (Asus Eee PC X101), now followed in the market for Acer Aspire One D257 Meego (with the presence of the OS already in the name!). The Acer has a 10.1 inch screen and weighs 1.3 kilograms. According to the Taiwanese group, the autonomy should touch the 8 consecutive hours, making it suitable for the mini-notebook mobility.
canvas.drawRoundRect()
package com.exercise.AndroidDraw;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.os.Bundle;
import android.view.View;
public class AndroidDrawActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new MyView(this));
}
public class MyView extends View {
public MyView(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
super.onDraw(canvas);
float width = (float)getWidth();
float height = (float)getHeight();
float radius;
if (width > height){
radius = height/4;
}else{
radius = width/4;
}
Paint paint = new Paint();
paint.setColor(Color.WHITE);
paint.setStrokeWidth(5);
paint.setStyle(Paint.Style.FILL);
float center_x, center_y;
center_x = width/4;
center_y = height/4;
final RectF rect = new RectF();
rect.set(center_x - radius,
center_y - radius,
center_x + radius,
center_y + radius);
canvas.drawRoundRect(rect, 50, 50, paint);
paint.setStyle(Paint.Style.STROKE);
center_x = width/2;
center_y = height/2;
rect.set(center_x - radius,
center_y - radius,
center_x + radius,
center_y + radius);
canvas.drawRoundRect(rect, 100, 50, paint);
paint.setStyle(Paint.Style.STROKE);
center_x = width * 3/4;
center_y = height * 3/4;
rect.set(center_x - radius,
center_y - radius,
center_x + radius,
center_y + radius);
canvas.drawRoundRect(rect, 100, 100, paint);
}
}
}
Thursday, 25 August 2011
canvas.drawArc()
package com.exercise.AndroidDraw;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.os.Bundle;
import android.view.View;
public class AndroidDrawActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new MyView(this));
}
public class MyView extends View {
public MyView(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
super.onDraw(canvas);
float width = (float)getWidth();
float height = (float)getHeight();
float radius;
if (width > height){
radius = height/4;
}else{
radius = width/4;
}
Path path = new Path();
path.addCircle(width/2,
height/2, radius,
Path.Direction.CW);
Paint paint = new Paint();
paint.setColor(Color.WHITE);
paint.setStrokeWidth(5);
paint.setStyle(Paint.Style.FILL);
float center_x, center_y;
center_x = width/2;
center_y = height/4;
final RectF oval = new RectF();
oval.set(center_x - radius,
center_y - radius,
center_x + radius,
center_y + radius);
canvas.drawArc(oval, 90, 270, true, paint);
paint.setStyle(Paint.Style.STROKE);
center_x = width/2;
center_y = height/2;
oval.set(center_x - radius,
center_y - radius,
center_x + radius,
center_y + radius);
canvas.drawArc(oval, 90, 270, true, paint);
paint.setStyle(Paint.Style.STROKE);
center_x = width/2;
center_y = height * 3/4;
oval.set(center_x - radius,
center_y - radius,
center_x + radius,
center_y + radius);
canvas.drawArc(oval, 90, 270, false, paint);
}
}
}
Sony VAIO VPC EG13FX/B 14" Laptop Review, Specs and Price
The Sony VAIO VPC-EG13FX/B Laptop powered by with 2nd Generation Intel Core i5 processor 2410M clocked at 2.30GHz, up to 2.90GHz in Turbo Boost mode, up to 4GB of system memory, up to 500GB Serial ATA hard disc drive, USB ports, WiFi, Genuine Microsoft Windows 7 Home Premium OS pre-installed and standard lithium-ion battery.
The Sony VAIO VPC-EG13FX/B Laptop is comes with sleek design, available for shipping with price of $734.99 from normally $739.99. This machine packs a 14-inch widescreen LED-backlit LCD display with 1366 x 768 pixel resolution that delivers high contrast, there are Remote Keyboard with pre-installed software allow user wirelessly enjoy enter text, browsing to the internet, and play their favorite online games.
Price Range : $719.00 - $739.99
Simple Command Line File Search with Windows XP and 7
Well fear not. You can use the Windows command line and the
dir
command to do most file searches.To open a command prompt window:
On Windows XP: Start --> Programs --> Accessories --> Command Prompt
On Windows 7: Start --> All Programs --> Accessories --> Command Prompt
Now you can use the
cd
command to move around your disk.To move up 1 directory level:
cd ..
To move to the directory root:
cd \
or in most cases cd c:\
To move into a directory (to the
windows
dir from the root directory for example): cd windows
Once you are in the desired directory you are ready to search. Here is a basic example of the command:
dir /s /b myfile.txt
This example would search the current directory and all sub directories for the
myfile.txt
file. The /s
option searches subdirectories. The /b
option displays the path to the file so you can see the path to the file and use a tool like File Manager to navigate to it.Here are a couple more examples.
Here is an example of a search for all files that end in
.help.txt
. The *
means all files with this file extension. This search takes place in the c:\windows
directory.
C:\WINDOWS>dir /s /b *.help.txt
C:\WINDOWS\system32\WindowsPowerShell\v1.0\about_aliases.help.txt
C:\WINDOWS\system32\WindowsPowerShell\v1.0\about_arithmetic_operators.help.txt
C:\WINDOWS\system32\WindowsPowerShell\v1.0\about_arrays.help.txt
Here is an example of a search for all files that contain winhelp in the file name with any extension.
C:\WINDOWS>dir /s /b winhelp.*
C:\WINDOWS\winhelp.exe
C:\WINDOWS\system32\winhelp.hlp
C:\WINDOWS\system32\dllcache\winhelp.exe
C:\WINDOWS>
As long as you do not search the entire disk, performance is really quite snappy. Even searching the entire disk is still pretty good.
Canvas.drawTextOnPath on circle path
package com.exercise.AndroidDraw;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.os.Bundle;
import android.view.View;
public class AndroidDrawActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new MyView(this));
}
public class MyView extends View {
public MyView(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
super.onDraw(canvas);
float width = (float)getWidth();
float height = (float)getHeight();
float radius;
if (width > height){
radius = height/4;
}else{
radius = width/4;
}
Path path = new Path();
path.addCircle(width/2,
height/2, radius,
Path.Direction.CW);
Paint paint = new Paint();
paint.setColor(Color.WHITE);
paint.setStrokeWidth(5);
paint.setStyle(Paint.Style.STROKE);
paint.setTextSize(37);
canvas.drawTextOnPath(
"Android-er http://android-er.blogspot.com/",
path, 0, 0,
paint);
paint.setColor(Color.GREEN);
paint.setStyle(Paint.Style.FILL);
canvas.drawTextOnPath("Android-er http://android-er.blogspot.com/",
path, 0, 0,
paint);
}
}
}
drawPath() on Canvas
package com.exercise.AndroidDraw;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.os.Bundle;
import android.view.View;
public class AndroidDrawActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new MyView(this));
}
public class MyView extends View {
class Pt{
float x, y;
Pt(float _x, float _y){
x = _x;
y = _y;
}
}
Pt[] myPath = { new Pt(100, 100),
new Pt(200, 200),
new Pt(200, 500),
new Pt(400, 500),
new Pt(400, 200)
};
public MyView(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
super.onDraw(canvas);
Paint paint = new Paint();
paint.setColor(Color.WHITE);
paint.setStrokeWidth(3);
paint.setStyle(Paint.Style.STROKE);
Path path = new Path();
path.moveTo(myPath[0].x, myPath[0].y);
for (int i = 1; i < myPath.length; i++){
path.lineTo(myPath[i].x, myPath[i].y);
}
canvas.drawPath(path, paint);
}
}
}
Wednesday, 24 August 2011
Acer Aspire AS5250-BZ853 Laptop Review, Specs and Review
Acer Aspire AS5250-BZ853 Laptops Specification :
- Processor Name: AMD E-350
- Operating System: Microsoft Windows 7 Home Premium
- Processor Speed: 1.6 GHz
- RAM: 2 GB
- Weight: 5.73 lb
- Screen Size: 15.6 inches
- Screen Size Type: widescreen
- Storage Capacity (as Tested): 320 GB
- Networking Options: 802.11n
Acer Aspire AS5250-BZ853 just available on one color, mute grey in all plastic chassis. This notebook measures 1.34 inches thin, 15 inches wide and 10 inches deep. Acer Aspire AS5250-BZ853 has full-sized numeric keyboard and trackpad skewed to the left. This notebook is also completed by DVD optical drive, three USB ports, a VGA output, an RJ-45 Ethernet port, and an SD/MMC memory card reader. And for getting the Acer Aspire AS5250-BZ853 drivers for more you can get it Acer Aspire AS5250-BZ853 drivers here. Now, Acer Aspire AS5250-BZ853 price is about $379.99.
Dell Launches Inspiron 13z and Inspiron 14z Laptop Review, Specs and Price
Inspiron 13z has a 13.3-inch HD (1366 � 768 dpi). You can upgrade the RAM up to 8GB and the option is 320GB and 500GB hard disk. While the Inspiron 14z equipped 14-inch screen HD 1366 � 768 dpi. Both these laptops have the support of on-processor graphics, which allows it to be able to save more energy. In addition there is bluetooth 3.0, USB 3.0, WiFi and card reader.
Both laptops sold at a price range : $600,00
Example of drawing on View
package com.exercise.AndroidDraw;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.view.View;
public class AndroidDrawActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new MyView(this));
}
public class MyView extends View {
public MyView(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
super.onDraw(canvas);
int width = getWidth();
int height = getHeight();
int radius;
if (width > height){
radius = height/2;
}else{
radius = width/2;
}
Paint paint = new Paint();
paint.setStyle(Paint.Style.FILL);
paint.setColor(Color.RED);
canvas.drawPaint(paint);
paint.setColor(Color.BLUE);
canvas.drawCircle(width/2, height/2, radius, paint);
}
}
}
Tuesday, 23 August 2011
LG Xnote A530 3D Laptop Review, Specs and Price
The LG A530�s 3D dual webcam makes it simple to create dazzling 3D content, delivers an integrated 3D experience, alowing playback of 3D content from the notebook to other LG�s 3D devices, such as smartphones, TVs and monitors.
LG Xnote A530 sold at a price of about : [not available]
HP and Sustaining Tech Innovation
All Things D, John Paczkowski: Is Innovation at HP Dead?
I remember when I first moved to the Silicon Valley in the 1990s. It was exciting to see the HP campus, the Xerox PARC, and the Apple campus. All innovators that created the Valley and the tech industry that now employs me today. It is sad to see some of these titans fall by the wayside.
Certainly HP will be around for years to come. But will it be same company that Bill Hewlett and David Packard founded in that Palo Alto garage? It sure doesn't look like it. And based on the nose dive of the stock price, investors don't think so either. If you read the article, not only have patents at HP dropped significantly, but their lead in the ink business does not look sustainable.
So this begs the question. Can a tech company sustain innovation after its founder or founders leave? The simple answer appears to be no. It seems pretty difficult to create a company based on a great idea. It appears to be even more difficult to create a company that creates great ideas. Thoughts?
Monday, 22 August 2011
Beginning Android Tablet Application Development
Product Description
The new release of Android 3 brings the full power of Android to tablet computing and this hands-on guide offers an introduction to developing tablet applications using this new Android release. Veteran author Wei-Meng Lee explains how Android 3 is specifically optimized for tablet computing and he details Android's tablet-specific functions. Beginning with the basics, this book moves at a steady pace to provide everything you need to know to begin successfully developing your own Android tablet applications.
- Serves as a full-color, hands-on introduction to developing tablet applications with the new Android 3
- Offers a helpful overview of Android 3 programming for tablets
- Details the components of Android tablet applications
- Highlights ways to build the Android user interface for tablets, create location-based services, publish Android applications, use Eclipse for Android development, and employ the Android emulator
Beginning Android Tablet Application Development is an ideal starting point for getting started with using Android 3 to develop tablet applications.
From the Back Cover
The new release of Android 3 brings the full power of Android to tablet computing! This hands-on guide offers first-time and new Android programmers a fast-paced introduction to developing tablet applications using the new Android release. Veteran author Wei-Meng Lee begins by explaining how to install the necessary tools and write the customary "hello world" application. He then quickly moves on to cover the various components of an Android tablet application. You'll quickly get up to speed with Android 3 as you build a selection of sample tablet projects that will help you to successfully develop your own Android tablet applications.
Beginning Android Tablet Application Development:
Builds a versatile Android UI using fragments to dynamically populate activities
Displays commonly used functions using Action Bar items
Examines the Android user interface and helps you gain an understanding of the components of a screen
Shows how to create location-based services applications
Details how to build a location-monitoring application
Helps you create a sample application and walks you through the steps of publishing your app on the Android market
Discusses using Eclipse for Android development and using the Android simulator
New Java Magazine
Samsung NC215 Laptop Review, Specs and Price
Samsung NC215 10" Laptop Specification :
- Display 10-Inch LCD Screen
- Processor 1.66 GHz, Intel Atom N570 Dual-Core processor
- Memory 1 GB DDR3 RAM
- Operating System Windows 7 Starter Edition
- Hard Drive: 250GB 5400 rpm HDD
- WLAN 802.11b/g/n Wireless LAN
- Camera Integrated Webcam
- 3 W Stereo Speaker (1.5 W x 2)
- Bluetooth V3.0 High Speed
- 3 USB 2.0 Ports
- Card Reader: 4-In-1 Card Reader
- Battery up to 14 h
- Dimensions : 10.20? (W) x 7.07? (D) x 0.85? ~ 1.33? (H)
- Warranty : 1 Year Warranty on Parts and Labor
Get file info
package com.exercise.AndroidFile;
import java.io.File;
import java.util.Date;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class AndroidFileActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView info = (TextView)findViewById(R.id.info);
File file = new File("/sdcard/test.txt");
String AbsolutePath = file.getAbsolutePath();
String Path = file.getPath();
String Parent = file.getParent();
String Name = file.getName();
long lastModified = file.lastModified();
Date lastModifiedDate = new Date(lastModified);
info.setText(
"AbsolutePath: " + AbsolutePath + "\n" +
"Path: " + Path + "\n" +
"Parent: " + Parent + "\n" +
"Name: " + Name + "\n" +
"lastModified: " + lastModified + "\n" +
"lastModifiedDate: " + lastModifiedDate
);
}
}
Set hint text of EditText
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Hint Text:" />
Sunday, 21 August 2011
Asus X32A 13.3 Inch Laptop Review, Specs and Price
Asus X32A Laptops Specification :
- Display : 13.3" TFT WXGA LED
- Intel Pentium SU2300 ULV Processor 1.2GHz
- Mobile Intel� GS45 Express Chipset
- Hard Disk Drive : 320GB HDD
- Memory : 3072MB
- WLAN : WiFi (B, G, N)
- IO Port : - 1 x HDMI
- Operating system : Windows� 7 Home Premium
- Battery : 8 cell battery (upto 12 hours)
- Dimensions 32.2 x 23.3 x 1.48~2.46 cm (W x D x H)
- Weight : 1.70 kg
- 1 x Microphone-in jack
- 1 x Headphone-out jack (S/PDIF)
- 3 x USB 2.0 ports
- 1 x RJ45 LAN Jack for LAN insert
MSI CX640-018UK 15.6 Inch Laptop Review, Specs and Price
MSI CX640-018UK 15.6" Laptop Specification :
- CPU Type : Intel Core i5
- CPU Speed : 2.3 GHz
- Screen Size : 15.6 - Inch
- Resolution : 1366x788
- Memory : 4GB
- Memory Type : DDR3 SO-DIMM
- Memory Speed : DDR3 - 1333
- Maximum Memory Capacity : 8GB
- Storage Drive Capacity : 500 GB
- Storage Type : HDD (SATA)
- Graphics Memory : 1GB
- Graphics Chipset : NVIDIA GeForce GT 520M
- Optical Drive : DVD Super Multi
- I/O : - 1 x 10/100/1000 (LAN)
- Operating System : Windows 7 Home Premium
- Dimensions : 380 x 34 x 260 mm (WxHxD)
- Battery : 6-cell
- Colour :Black
- Weight (Inc. Battery) : 2.6 kg
- 1 x D-Sub
- 1 x HDMI
- 1 x Line Out
- 1 x Mic In
- 4 x USB 2.0
Saturday, 20 August 2011
Return result to onActivityResult()
main activity
package com.exercise.AndroidResult;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class AndroidResultActivity extends Activity {
final static int REQ_CODE = 1;
TextView tvResultCode;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
tvResultCode = (TextView)findViewById(R.id.resultcode);
Button btnStartActivity2 = (Button)findViewById(R.id.startactivity2);
btnStartActivity2.setOnClickListener(new Button.OnClickListener(){
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Intent intent = new Intent(AndroidResultActivity.this, Activity2.class);
startActivityForResult(intent, REQ_CODE);
}});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// TODO Auto-generated method stub
if(requestCode == REQ_CODE){
if (resultCode == RESULT_OK){
tvResultCode.setText("RESULT_OK");
}else if(resultCode == RESULT_CANCELED){
tvResultCode.setText("RESULT_CANCELED");
}
}
}
}
main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<Button
android:id="@+id/startactivity2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Start Activity 2"
/>
<TextView
android:id="@+id/resultcode"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
Sub-activity
package com.exercise.AndroidResult;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Activity2 extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.main2);
Button btnReturnOK = (Button)findViewById(R.id.returnOK);
btnReturnOK.setOnClickListener(new Button.OnClickListener(){
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent i = new Intent();
setResult(RESULT_OK, i);
finish();
}});
Button btnReturnCancel = (Button)findViewById(R.id.returnCancel);
btnReturnCancel.setOnClickListener(new Button.OnClickListener(){
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent i = new Intent();
setResult(RESULT_CANCELED, i);
finish();
}});
}
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<Button
android:id="@+id/returnOK"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="return OK"
/>
<Button
android:id="@+id/returnCancel"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="return Cancel"
/>
</LinearLayout>
TOP 10 most Popular Laptops in elaptop.blogspot.com 20 August 2011
1. Asus K53TA-BBR6
TopTenREVIEWS 2011 | Best Laptops Asus K53TA-BBR6 | Popular Laptop Asus K53TA-BBR6 Review Feature specs and Price | New Notebook and Netbook Asus K53TA-BBR6 2011 | Asus K53TA-BBR6 Laptop with Processor Intel Core i3, i5 and i7
2. Lenovo IdeaPad G770
TopTenREVIEWS 2011 | Best Laptops Lenovo IdeaPad G770 | Popular Laptop Lenovo IdeaPad G770 Review Feature specs and Price | New Notebook and Netbook Lenovo IdeaPad G770 2011 | Lenovo IdeaPad G770 Laptop with Processor Intel Core i3, i5 and i7
3. Asus N55SF
TopTenREVIEWS 2011 | Best Laptops Asus N55SF | Popular Laptop Asus N55SF Review Feature specs and Price | New Notebook and Netbook Asus N55SF 2011 | Asus N55SF Laptop with Processor Intel Core i3, i5 and i7
4. Asus K53E-BBR7
TopTenREVIEWS 2011 | Best Laptops Asus K53E-BBR7 | Popular Laptop Asus K53E-BBR7 Review Feature specs and Price | New Notebook and Netbook Asus K53E-BBR7 2011 | Asus K53E-BBR7 Laptop with Processor Intel Core i3, i5 and i7
5. Toshiba Satellite L750-X5315
TopTenREVIEWS 2011 | Best Laptops Toshiba Satellite L750-X5315 | Popular Laptop Toshiba Satellite L750-X5315 Review Feature specs and Price | New Notebook and Netbook Toshiba Satellite L750-X5315 2011 | Toshiba Satellite L750-X5315 Laptop with Processor Intel Core i3, i5 and i7
6. Asus U46 and U56
TopTenREVIEWS 2011 | Best Laptops Asus U46 and Asus U56 | Popular Laptop Asus U46 and Asus U56 Review Feature specs and Price | New Notebook and Netbook Asus U46 and Asus U56 2011 | Asus U46 and Asus U56 Laptop with Processor Intel Core i3, i5 and i7
7. HP 635
TopTenREVIEWS 2011 | Best Laptops HP 635 | Popular Laptop HP 635 Review Feature specs and Price | New Notebook and Netbook HP 635 2011 | HP 635 Laptop with Processor Intel Core i3, i5 and i7
8. Asus Eee PC R101D
TopTenREVIEWS 2011 | Best Laptops Asus Eee PC R101D | Popular Laptop Asus Eee PC R101D Review Feature specs and Price | New Notebook and Netbook Asus Eee PC R101D 2011 | Asus Eee PC R101D Laptop with Processor Intel Core i3, i5 and i7
9. Samsung NP-N145
TopTenREVIEWS 2011 | Best Laptops Samsung NP-N145 | Popular Laptop Samsung NP-N145 Review Feature specs and Price | New Notebook and Netbook Samsung NP-N145 2011 | Samsung NP-N145 Laptop with Processor Intel Core i3, i5 and i7
10. Sony Vaio S Series
TopTenREVIEWS 2011 | Best Laptops Sony Vaio S Series | Popular Laptop Sony Vaio S Series Review Feature specs and Price | New Notebook and Netbook Sony Vaio S Series 2011 | Sony Vaio S Series Laptop with Processor Intel Core i3, i5 and i7
More on the example of custom widget view
package com.exercise.AndroidWidgetView;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;
public class MyWidgetView extends View {
final int MIN_WIDTH = 300;
final int MIN_HEIGHT = 150;
final int DEFAULT_COLOR = Color.WHITE;
int _color;
final int STROKE_WIDTH = 2;
public MyWidgetView(Context context) {
super(context);
// TODO Auto-generated constructor stub
init();
}
public MyWidgetView(Context context, AttributeSet attrs) {
super(context, attrs);
// TODO Auto-generated constructor stub
init();
}
public MyWidgetView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
// TODO Auto-generated constructor stub
init();
}
private void init(){
setMinimumWidth(MIN_WIDTH);
setMinimumHeight(MIN_HEIGHT);
_color = DEFAULT_COLOR;
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
// TODO Auto-generated method stub
super.onMeasure(getSuggestedMinimumWidth(), getSuggestedMinimumHeight());
}
@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
Paint paint = new Paint();
paint.setColor(_color);
paint.setStrokeWidth(STROKE_WIDTH);
canvas.drawRect(5, 5, getWidth()-5, getHeight()-5, paint);
Path path;
path = new Path();
paint.setColor(Color.GRAY);
paint.setTextSize(25);
path.addArc(new RectF(25, 25, getWidth()-25, getHeight()-25), 180, 90);
canvas.drawTextOnPath("Hello", path, 0, 0, paint);
path = new Path();
path.addArc(new RectF(25, 25, getWidth()-25, getHeight()-25), 0, 90);
canvas.drawTextOnPath("Android-er", path, 0, 0, paint);
}
public void setColor(int color){
_color = color;
}
}
Privacy Policy
If you require any more information or have any questions about our privacy policy, please feel free to contact us by email at 4gogon@gmail.com.
At http://elaptops.blogspot.com/, the privacy of our visitors is of extreme importance to us. This privacy policy document outlines the types of personal information is received and collected by http://elaptops.blogspot.com/ and how it is used.
Log Files
Like many other Web sites, http://elaptops.blogspot.com/ makes use of log files. The information inside the log files includes internet protocol ( IP ) addresses, type of browser, Internet Service Provider ( ISP ), date/time stamp, referring/exit pages, and number of clicks to analyze trends, administer the site, track user�s movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.
Cookies and Web Beacons
http://elaptops.blogspot.com/ does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser.
DoubleClick DART Cookie
.:: Google, as a third party vendor, uses cookies to serve ads on http://elaptops.blogspot.com/.
.:: Google's use of the DART cookie enables it to serve ads to users based on their visit to http://elaptops.blogspot.com/ and other sites on the Internet.
.:: Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - http://www.google.com/privacy_ads.html
Some of our advertising partners may use cookies and web beacons on our site. Our advertising partners include ....
Google Adsense
These third-party ad servers or ad networks use technology to the advertisements and links that appear on http://elaptops.blogspot.com/ send directly to your browsers. They automatically receive your IP address when this occurs. Other technologies ( such as cookies, JavaScript, or Web Beacons ) may also be used by the third-party ad networks to measure the effectiveness of their advertisements and / or to personalize the advertising content that you see.
http://elaptops.blogspot.com/ has no access to or control over these cookies that are used by third-party advertisers.
You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. http://elaptops.blogspot.com/'s privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites.
If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers' respective websites.
Friday, 19 August 2011
New Toshiba Qosmio F755-3D290 Glasses-free 3D Laptop Review, Specs and Price
Toshiba Qosmio F755-3D290 glasses-free 3D laptop Specification :
- Intel� Core� i7-2630QM processor
- Display 15.6-Inch HD TruBrite� LED Backlit display (3D Ready)
- Memory 6GB DDR3 1333MHz
- Hard drive 750GB HDD (5400rpm)
- 1GB GDDR3 NVIDIA� GeForce� GT 540M (3D Vision)
- 1.3MP webcam with Face Tracking technology
- Wi-Fi� Wireless networking (802.11b/g/n)
- Bluetooth� V3.0 + HS
- 10/100/1000 Ethernet LAN
- AC Adapter 120W (19V x 6.32A) Auto-sensing, 100-240V / 50-60Hz input
- 1-USB (3.0) port with USB Sleep and Charge*, 3-USB (2.0)
- HDMI-CEC (REGZA LINK�) � supported output of 3D content to a 3D ready TV
- Battery : Li-Ion (48Wh, 6-Cell)
- Windows 7 Home Premium (64-bit)
- Weight : Starting at 7.5lbs.
- Warranty : 1-Yr Parts and Labor, 1-Year Battery
Tag :
- New Qosmio F755-3D290
- Toshiba Qosmio F755-3D290 Laptop 3D
- Qosmio F755-3D290
- Specification Qosmio F755-3D290
Asus A53E XT3 with New Generation Intel Core i5 Laptop Review and Price
Tag :
- Asus A53E-XT3
- A53E-XT3 Laptop
- New A53E-XT3
- A53E-XT3 from Asus
Asus G Series G53SW-XN1 15.6 Inch Laptop Review and Price
The Asus G53SW-XN1 laptop runs on System Windows 7 Home Premium 64-bit, with Weight 7.9 lbs enough for the size of your notebook comes with Baterry type 8-cell lithium ion. The G53SW-XN1 laptop provide DVD Super Multi, webcam 2.0MP, Video Memory 1.5GB GDDR5 VRAM, USB 3.0, with Warranty 1 year. Asus G53SW-XN1 laptop marketed at a price of about $ $1089.99 - $1089.99.
Tag :
- Asus G Series G53SW-XN1
- Asus G53SW-XN1
- Asus Laptop G53SW-XN1
- G53SW-XN1 Notebook G Series
- New G Series G53SW-XN1
A example of custom widget view
MyWidgetView.java, our custom widget view.
package com.exercise.AndroidWidgetView;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;
public class MyWidgetView extends View {
final int MIN_WIDTH = 200;
final int MIN_HEIGHT = 50;
final int DEFAULT_COLOR = Color.WHITE;
int _color;
final int STROKE_WIDTH = 2;
public MyWidgetView(Context context) {
super(context);
// TODO Auto-generated constructor stub
init();
}
public MyWidgetView(Context context, AttributeSet attrs) {
super(context, attrs);
// TODO Auto-generated constructor stub
init();
}
public MyWidgetView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
// TODO Auto-generated constructor stub
init();
}
private void init(){
setMinimumWidth(MIN_WIDTH);
setMinimumHeight(MIN_HEIGHT);
_color = DEFAULT_COLOR;
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
// TODO Auto-generated method stub
super.onMeasure(getSuggestedMinimumWidth(), getSuggestedMinimumHeight());
}
@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
Paint paint = new Paint();
paint.setColor(_color);
paint.setStrokeWidth(STROKE_WIDTH);
canvas.drawRect(5, 5, getWidth()-5, getHeight()-5, paint);
}
public void setColor(int color){
_color = color;
}
}
main.xml, the layout with our custom widget view
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<com.exercise.AndroidWidgetView.MyWidgetView
android:id = "@+id/mywidget_01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
/>
<com.exercise.AndroidWidgetView.MyWidgetView
android:id = "@+id/mywidget_02"
android:layout_width="50dp"
android:layout_height= "50dp"
android:layout_margin="5dp"
/>
<com.exercise.AndroidWidgetView.MyWidgetView
android:id = "@+id/mywidget_03"
android:layout_width="50dp"
android:layout_height= "50dp"
android:layout_margin="5dp"
/>
</LinearLayout>
main code
package com.exercise.AndroidWidgetView;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
public class AndroidWidgetViewActivity extends Activity {
MyWidgetView myWidget_01, myWidget_02, myWidget_03;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
myWidget_01 = (MyWidgetView)findViewById(R.id.mywidget_01);
myWidget_02 = (MyWidgetView)findViewById(R.id.mywidget_02);
myWidget_03 = (MyWidgetView)findViewById(R.id.mywidget_03);
myWidget_02.setColor(Color.RED);
myWidget_03.setBackgroundColor(Color.GREEN);
myWidget_03.setColor(Color.BLUE);
}
}
next:
- More on the example of custom widget view
Thursday, 18 August 2011
Woot! I'm a Noob!
Woot is Officially a Word