468x60 Ads


Showing posts with label Andorid Widgets. Show all posts
Showing posts with label Andorid Widgets. Show all posts

How to setup a weather location for your Clock widget?

0 comments

Sep 1:



SEP 2:

STEP 3STEP 4
Good Luck to you!

A collection of our Clock Widgets

0 comments



Multiply this with over 140 skins accessible from within most of the clocks to make your unique clock.

Start the conversation with Google Translate for Android

0 comments

Mobile technology and the web have made it easier for people around the world to access information and communicate with each other. But there’s still a daunting obstacle: the language barrier. We’re trying to knock down that barrier so everyone can communicate and connect more easily.

Earlier this year, we launched an update to Google Translate for Android with an experimental feature called Conversation Mode, which enables you to you translate speech back and forth between languages. We began with just English and Spanish, but today we’re expanding to 14 languages, adding Brazilian Portuguese, Czech, Dutch, French, German, Italian, Japanese, Korean, Mandarin Chinese, Polish, Russian and Turkish.




To use Conversation Mode, speak into your phone’s microphone, and the Translate app will translate what you’ve said and read the translation out loud. The person you’re speaking with can then reply in their language, and Conversation Mode will translate what they said and read it back to you.

This technology is still in alpha, so factors like background noise and regional accents may affect accuracy. But since it depends on examples to learn, the quality will improve as people use it more. We wanted to get this early version out to help start the conversation no matter where you are in the world.

We’ve also added some other features to make it easier to speak and read as you translate. For example, if you wanted to say “Where is the train?” but Google Translate recognizes your speech as “Where is the rain?”, you can now correct the text before you translate it. You can also add unrecognized words to your personal dictionary.

When viewing written translation results, you can tap the magnifying glass icon to view the translated text in full screen mode so you can easily show it to someone nearby, or just pinch to zoom in for a close-up view.



Tap the magnifying glass icon to view translations full screen.


Finally, we’ve also optimized the app for larger screens like your Android tablet.

While we work to expand full Conversation Mode to even more languages, Google Translate for Android still supports text translation among 63 languages, voice input in 17 of those languages, and text-to-speech in 24 of them.

Download the Google Translate app in Android Market — it’s available for tablets and mobile phones running Android 2.2 and up.

Introducing home screen widgets and the App Widget framework

0 comments

One exciting new feature in the Android 1.5 SDK is the AppWidget framework which allows developers to write "widgets" that people can drop onto their home screen and interact with. Widgets can provide a quick glimpse into full-featured apps, such as showing upcoming calendar events, or viewing details about a song playing in the background.
When widgets are dropped onto the home screen, they are given a reserved space to display custom content provided by your app. Users can also interact with your app through the widget, for example pausing or switching music tracks. If you have a background service, you can push widget updates on your own schedule, or the AppWidget framework provides an automatic update mechanism.
At a high level, each widget is a BroadcastReceiver paired with XML metadata describing the widget details. The AppWidget framework communicates with your widget through broadcast intents, such as when it requests an update. Widget updates are built and sent using RemoteViews which package up a layout and content to be shown on the home screen.
You can easily add widgets into your existing app, and in this article I'll walk through a quick example: writing a widget to show the Wiktionary "Word of the day." The full source code is available, but I'll point out the AppWidget-specific code in detail here.
First, you'll need some XML metadata to describe the widget, including the home screen area you'd like to reserve, an initial layout to show, and how often you'd like to be updated. The default Android home screen uses a cell-based layout, so it rounds your requested size up to the next-nearest cell size. This can be a little confusing, so here's a quick equation to help:
Minimum size in dip = (Number of cells * 74dip) - 2dip
In this example, we want our widget to be 2 cells wide and 1 cell tall, which means we should request a minimum size 146dip x 72dip. We're also going to request updates once per day, which is roughly every 86,400,000 milliseconds. Here's what our widget XML metadata looks like:
<appwidget-provider
   
xmlns:android="http://schemas.android.com/apk/res/android"
   
android:minWidth="146dip"
   
android:minHeight="72dip"
   
android:initialLayout="@layout/widget_message"
   
android:updatePeriodMillis="86400000"
   
/>
Next, let's pair this XML metadata with a BroadcastReceiver in the AndroidManifest:
<!-- Broadcast Receiver that will process AppWidget updates -->
<receiver android:name=".WordWidget" android:label="@string/widget_name">
   
<intent-filter>
       
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
   
</intent-filter>
   
<meta-data android:name="android.appwidget.provider" android:resource="@xml/widget_word" />
</receiver>
<!-- Service to perform web API queries -->
<service android:name=".WordWidget$UpdateService" />
Finally, let's write the BroadcastReceiver code to actually handle AppWidget requests. To help widgets manage all of the various broadcast events, there is a helper class called AppWidgetProvider, which we'll use here. One very important thing to notice is that we're launching a background service to perform the actual update. This is because BroadcastReceivers are subject to the Application Not Responding (ANR) timer, which may prompt users to force close our app if it's taking too long. Making a web request might take several seconds, so we use the service to avoid any ANR timeouts.
/**
 * Define a simple widget that shows the Wiktionary "Word of the day." To build
 * an update we spawn a background {@link Service} to perform the API queries.
 */

public class WordWidget extends AppWidgetProvider {
   
@Override
   
public void onUpdate(Context context, AppWidgetManager appWidgetManager,
       
int[] appWidgetIds) {
       
// To prevent any ANR timeouts, we perform the update in a service
        context
.startService(new Intent(context, UpdateService.class));
   
}

   
public static class UpdateService extends Service {
       
@Override
       
public void onStart(Intent intent, int startId) {
           
// Build the widget update for today
           
RemoteViews updateViews = buildUpdate(this);

           
// Push update for this widget to the home screen
           
ComponentName thisWidget = new ComponentName(this, WordWidget.class);
           
AppWidgetManager manager = AppWidgetManager.getInstance(this);
            manager
.updateAppWidget(thisWidget, updateViews);
       
}

       
/**
         * Build a widget update to show the current Wiktionary
         * "Word of the day." Will block until the online API returns.
         */

       
public RemoteViews buildUpdate(Context context) {
           
// Pick out month names from resources
           
Resources res = context.getResources();
           
String[] monthNames = res.getStringArray(R.array.month_names);

           
// Find current month and day
           
Time today = new Time();
            today
.setToNow();

           
// Build today's page title, like "Wiktionary:Word of the day/March 21"
           
String pageName = res.getString(R.string.template_wotd_title,
                monthNames
[today.month], today.monthDay);
           
RemoteViews updateViews = null;
           
String pageContent = "";

           
try {
               
// Try querying the Wiktionary API for today's word
               
SimpleWikiHelper.prepareUserAgent(context);
                pageContent
= SimpleWikiHelper.getPageContent(pageName, false);
           
} catch (ApiException e) {
               
Log.e("WordWidget", "Couldn't contact API", e);
           
} catch (ParseException e) {
               
Log.e("WordWidget", "Couldn't parse API response", e);
           
}

           
// Use a regular expression to parse out the word and its definition
           
Pattern pattern = Pattern.compile(SimpleWikiHelper.WORD_OF_DAY_REGEX);
           
Matcher matcher = pattern.matcher(pageContent);
           
if (matcher.find()) {
               
// Build an update that holds the updated widget contents
                updateViews
= new RemoteViews(context.getPackageName(), R.layout.widget_word);
   
               
String wordTitle = matcher.group(1);
                updateViews
.setTextViewText(R.id.word_title, wordTitle);
                updateViews
.setTextViewText(R.id.word_type, matcher.group(2));
                updateViews
.setTextViewText(R.id.definition, matcher.group(3).trim());
   
               
// When user clicks on widget, launch to Wiktionary definition page
               
String definePage = res.getString(R.string.template_define_url,
                       
Uri.encode(wordTitle));
               
Intent defineIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(definePage));
               
PendingIntent pendingIntent = PendingIntent.getActivity(context,
                       
0 /* no requestCode */, defineIntent, 0 /* no flags */);
                updateViews
.setOnClickPendingIntent(R.id.widget, pendingIntent);
   
           
} else {
               
// Didn't find word of day, so show error message
                updateViews
= new RemoteViews(context.getPackageName(), R.layout.widget_message);
               
CharSequence errorMessage = context.getText(R.string.widget_error);
                updateViews
.setTextViewText(R.id.message, errorMessage);
           
}
           
return updateViews;
       
}

       
@Override
       
public IBinder onBind(Intent intent) {
           
// We don't need to bind to this service
           
return null;
       
}
   
}
}
And there you have it, a simple widget that will show the Wiktionary "Word of the day." When an update is requested, we read the online API and push the newest data to the surface. The AppWidget framework automatically requests updates from us as needed, such as when a new widget is inserted, and again each day to load the new "Word of the day."
Finally, some words of wisdom. Widgets are designed for longer-term content that doesn't update very often, and updating more frequently than every hour can quickly eat up battery and bandwidth. Consider updating as infrequently as possible, or letting your users pick a custom update frequency. For example, some people might want a stock ticker to update every 15 minutes, or maybe only four times a day. I'll be talking about additional strategies for saving battery life as part of a session I'm giving at Google I/O.
One last cool thing to mention is that the AppWidget framework is abstracted in both directions, meaning alternative home screens can also contain widgets. Your widgets can be inserted into any home screen that supports the AppWidget framework.
We've already written several widgets ourselves, such as the Calendar and Music widgets, but we're even more excited to see the widgets you'll write!

Android Widgets best

0 comments


Widgets are are an extremely cool feature on the Android which the iPhone does not have. These Android widgets are very handy and enjoyable because they are easily accessible in just a split second and can provide useful information for the user. I have compiled a list of the best android widgets for you to enjoy.


Android Widgets

  1. Battery Watcher
    This widget gives you the percent battery life available.
  2. Extended Controls
    A very useful  widget which allows you to edit the settings on your android.
  3. Google Maps
    A well developed map by Google which will help you navigate the planet.
  4. Flight Track
    Get real time updates of your flight's status and worldwide map tracking.
  5. Pandora
    Listen to the best personalized radio station on the go.
  6. Advanced Task Killer
    A useful tool for killing running applications on your droid.  If you can't get an application to close, this widget will certainly do the job.
  7. Twitter
    Tweet your friends with this awesome twitter widget.
  8. Barcode Scanner
    Scan the barcode on any product and this android widget will look it up for you.
  9. Sports Tap
    Stay up to date with sports. Including NFL, MLB, NBA, NHL, NCAA, nascar, football, soccer, baseball, and hockey.
  10. Pure Messenger Widget
    The all in one combined messaging widget for Gmail, email, SMS, Twitter, Calls, and Facebook.
  11. Weather & Toggle Widget
    The greatest weather widget for the android.
  12. Pure Grid Calendar Widget
    A great android widget which will help keep you organized.  The widget syncs with your google calendar.
  13. Facebook for Android
    Stay connected with your friends on the facebook social network.
  14. Analytics Widget
    See your websites visitors instantly and view your google analytics info immediately as well.
  15. Where
    Look up places in your area and get ratings and recommendations.

Conclusion

Thanks for reading my list of the best android widgets of 2011. If you think of any others that should be added to the list please let me know!

Beautiful Widgets for HTC Smartphone

0 comments

Beautiful Widgets set of Widgets containing two skinned clocks + weather widget with forecast and nice weather animations (rain, storm, etc). Nice toggle widgets for Wifi, BT, etc. Multiple layouts and 140+ skins! See why it is the best Android widgets and the only choice for thousands of users!
Price: €1.49

AndroidTapp.com Android App Review:

Features:

Beautiful Widgets are well… just beautiful! The set of Android home screen widgets resemble the impressive UI of the HTC Sense available on the HTC Hero phone. The set includes a larger 4×2 and 4×1 smaller clock and weather widget with options to set your location. Tap the weather icon to open a cool animation of your current weather conditions. Weather gives a four day forecast, the days high/ low and current temperature. Set 12/24 hour format and Fahrenheit/Celsius temperature. There are several 1×1 quick settings toggle widgets for Bluetooth, WiFi, GPS, Silent, Vibrate, Brightness and Airplane modes.
The app features hundreds of downloadable weather skins to replace the default within the main widget, plus hundreds of downloadable skins for the overall look of Beautiful Widgets… so you don’t have to use the HTC Sense UI style. There’s styles for clean, grunge, Eclair (Android 2.1), and more so you never get bored with multiple styles to choose from.
There has been recent support for Beautiful Live Weather Live Wallpapers too! The current Live Wallpaper is a mock of the Grass live wallpaper that has the wavy grass and animation of your current weather be it sunny, rainy, cloudy, etc. factoring in morning/evening styles.