Posts tagged have-the-same

Nexus One now a step closer to FM radio support, thanks to modified kernel

by Ross Miller

Nexus One now a step closer to FM radio support, thanks to modified kernel: “As you may or may not be already aware, the Nexus One and HTC Desire have the same Broadcom chip. Seems trivial at cursory glance until you realize the Desire has a FM radio app, which should ergo be just as feasible on the Google-branded device. Cut to xda-developers’ intersectRaven, who’s released a custom N1 kernel that theoretically brings life to the FM receptor. It’s available to download, but as for when you’ll get a chance to really use this yourself, that’s entirely up to the custom ROM developers updating their respective wares. For his part, Paul O’Brien said today he’s already got it working on an upcoming Froyo Sense build for the device — hang tight, folks, it’s coming.

[Thanks, John]

Nexus One now a step closer to FM radio support, thanks to modified kernel originally appeared on Engadget on Tue, 13 Jul 2010 15:41:00 EDT. Please see our terms for use of feeds.

Permalink Android Police | sourcexda-developers | Email this | Comments

AsyncTask: perform background operations and publish results on the UI thread

This exercise have the same effect of “Android background thread, by extending Thread” and “Android background thread, by implementing Thread object, provided with a Runnable object“. It is implemented in AsyncTask instead of Thread.

AsyncTask

AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers.

An asynchronous task is defined by a computation that runs on a background thread and whose result is published on the UI thread. An asynchronous task is defined by 3 generic types, called Params, Progress and Result, and 4 steps, called begin, doInBackground, processProgress and end.

main.xml

AndroidBackgroundAsyncTask.java

package com.exercise.AndroidBackgroundAsyncTask;

import android.app.Activity;import android.os.AsyncTask;import android.os.Bundle;import android.os.SystemClock;import android.view.View;import android.widget.TextView;import android.widget.Toast;

public class AndroidBackgroundAsyncTask extends Activity {

 TextView myText;

   public class BackgroundAsyncTask extends   AsyncTask {

    boolean myTextOn;

  @Override  protected Void doInBackground(Void... params) {   // TODO Auto-generated method stub

   while(true)   {    myTextOn = !myTextOn;    publishProgress(myTextOn);     SystemClock.sleep(1000);   }   //return null;  }

  @Override  protected void onPostExecute(Void result) {   // TODO Auto-generated method stub   //it will never been shown in this exercise...   Toast.makeText(AndroidBackgroundAsyncTask.this,     "onPostExecute", Toast.LENGTH_LONG).show();  }

  @Override  protected void onPreExecute() {   // TODO Auto-generated method stub   myTextOn = true;   Toast.makeText(AndroidBackgroundAsyncTask.this,     "onPreExecute", Toast.LENGTH_LONG).show();  }

  @Override  protected void onProgressUpdate(Boolean... values) {   // TODO Auto-generated method stub

   if (values[0]){    myText.setVisibility(View.GONE);    }   else{    myText.setVisibility(View.VISIBLE);    }   }

 }

 /** Called when the activity is first created. */   @Override   public void onCreate(Bundle savedInstanceState) {       super.onCreate(savedInstanceState);       setContentView(R.layout.main);       myText = (TextView)findViewById(R.id.mytext);

       new BackgroundAsyncTask().execute();   }}

Download the files.

Best Buy Mobile to OfferGreat Deals on Smartphones Cheaper Android Handsets and Sprint MiFi Available for the Holidays

We already know that Best Buy has prepared lots of deals for Black
Friday, including that ultra-cheap $197 HP laptop. And now we hear that
its mobile division, Best Buy Mobile, has come up with some interesting
deals on Android smartphones for the Holidays.
So what do you say? Are you looking for a cheaper Android smartphone?
Best Buy Mobile is ready to offer you five smartphones from three
carriers priced at only $99 for a new two-year contract. And here s a
list of the Android handsets in question:
HTC Hero (available from Sprint for $179.99)
Samsung Moment (available from Sprint for $179.99)
myTouch 3G (available from T-Mobile for $149.99)
Motorola CLIQ (available from T-Mobile for $199.99)
HTC Droid Eris (available from Verizon for $99.99)
As you can see Best Buy Mobile is ready to offer you some of the hottest
Android phones available to date for just $99 on contracts. What s
particularly interesting here is the fact that the HTC Hero and the
Droid Eris have the same price at Best Buy Mobile so if you re looking
for a cheaper Hero, now you have the opportunity of getting one.
Beside the Android smartphones above, Best Buy Mobile will also offer
you the Sprint MiFi device for free with a two-year contract. The offer
is valid on Black Friday, November 27 and Saturday, November 28. In case
you need a portable device capable of transforming a regular 3G signal
into a local personal Wi-Fi network then the MiFi is the way to go.
Last, but not least, Best Buy Mobile will sell the Palm Pre for just $79
with a new Sprint contract. The deal is available for two days, November
27-28, but considering the hot Android phones enumerated above I think
you d be better off getting one of them instead of Palm s Pre. No
offence, Pre, but Android is the hottest thing right now.
What about you? Are you buying a smartphone these holidays?

Discounted cell phone plans

Choosing the right cell phone plan is a confusing task, because there are many plans available and each claims the election is that it is the best option. More and more cellular phone companies now compete with the attention of customers. Consequently, buyers expect a lot of free or discount services. Several discount plans, such as airtime voucher and discount long-distance calls are available.

Before you can understand buying a plan that you are bound by certain conditions. Aresponsible for knowing customer needs, which involve these conditions. This will help you a plan that is right for your lifestyle and needs to choose.

Discount phone cards are very popular in those days. Their rates usually range from $ 10 or $ 20 to $ 50 These maps give you a better rate call, even for long distance calls. To do Unlike traditional phone connections, they have a high monthly fee. The customer gets charged only for the unused minutes. Some cards have a small connection fee or aFee for the use of mobile phones. Discounted cell phone plans are suitable for everyone. They are great for those who do not like to pay high monthly fees. Since they have a good business card prices are discount plans are generally used by students, travelers and businessmen.

A variety of mobile phone companies including T-Mobile, Sprint PCS, Nextel, Verizon and Cingular Wireless to extend discount plans in the United States. They have plans for the industry for companiesuse as well as for students and staff for personal use. As these discount plans often change, the discounts must be agreed upon when purchasing or evaluating new plans.

Before you discount cellular plan, a list of all the local mobile phone operators to get an idea of their services and prices. Based on this information to select a service provider who offers a plan that meets your needs. If more than one discount cell phone plans have the same properties, select a thethat offers better performance.

flat panel tv Samsung LCD TV lcd monitor samsung

Percent Calculator (Pro)

This is the professional version of the free Percent Calculator. They both have the same functionality except that the pro version has support for themes and retains previously computed values.
They all contain the following calculators:

  • Percent Calculator : A simple calculator to calculate percents e.g. What is [12%] of [35].
  • Percentage Calculator : Calculates percentages e.g. [23] is what percent of [20].
  • Percent Increase-By Calculator: Enter a value and a percentage to increase by. e.g. [1.2] increase by [40]% = 1.68.
  • Percent-Off (Discount) Calculator: Enter a value and a percentage to discount by. e.g. [29.99] discount of [30]% = $20.99.
  • Bonus – Tip Calculator: Simple tip calculator that can split tips. Enter total bill amount (including taxes), number of people and the tip percentage.
    Everything will be computed. The tip percentage will be saved.

Best of all these calculations can also compute backwards. Enter any two values and the third will be computed e.g. [23]% of [x] = 115. X will be computed (20).