Browsing all articles tagged with Remote
Nov
21

Remote Control YouTube Playback on TV or PC from Android Phones or Tablets

Remote Control YouTube Playback on TV or PC from Android Phones or Tablets

Remote Control YouTube Playback on TV or PC from Android Phones or Tablets


Free Online Articles Directory





Why Submit Articles?
Top Authors
Top Articles
FAQ
AB Answers

Publish Article

0 && $.browser.msie ) {
var ie_version = parseInt($.browser.version);
if(ie_version Hello Guest
Login


Login via


Register
Hello
My Home
Sign Out

Email

Password


Remember me?
Lost Password?

Home Page > Technology > Electronics > Remote Control YouTube Playback on TV or PC from Android Phones or Tablets

Remote Control YouTube Playback on TV or PC from Android Phones or Tablets

Edit Article |

Posted: Nov 15, 2010 |Comments: 0

|

Share

Ask a question

Ask our experts your Electronics related questions here…200 Characters left

Related Questions

I bought a tablet pc at a yard sale and it has a password lock on it. how can i get in the computer to change it.. i can not use any part of the computer
Does direct tv offer internet and phone service ?
What is the best program/software that will intercept text messages, record in and outbound numbers and does not have to physically be installed on the target phone but can be installed remotely
Looking for remote desktop admin on a my smart phone. will the Windows HTC do this?

Syndicate this Article

Copy to clipboard

Remote Control YouTube Playback on TV or PC from Android Phones or Tablets

By: Stephen Wong

About the Author

Stephen is a YouTube expert. He develops the free application Leawo Free YouTube Downloader to help people to download YouTube videos.

(ArticlesBase SC #3669661)

Article Source: http://www.articlesbase.com/Remote Control YouTube Playback on TV or PC from Android Phones or Tablets





Google, the owner of YouTube and Android, announces a new application for Android cell phones called YouTube Remote, which can control the playback of YouTube videos on Google TV via Android smart phone.

Smart phone can be a TV remote control. There is, of course, nothing new here. As not long ago Apple has already released its Remote App for iPhone and iPad, which can control iTunes when synced with an Apple computer or Apple TV.

Google, the owner of YouTube and Android, now has the similar application for its cell phone OS Android. On Tuesday, Google officially launched a free Android application called YouTube Remote, which enables Android smart phone or tablet users to remote control the playback of YouTube videos on Google TV or PC.

This application creates a ‘virtual connection’ between a Android device (such as Android smart phone or Android tablet) and Google TV (also called YouTube Leanback) or computer. To make the ‘virtual connection’ work, you need two applications and to sign in to the two apps with a Google account.

If you don’t have Google TV, you can get YouTube Leanback at YouTube.com/leanback.

This YouTube Remote application is available only in the US at the moment; and you can’t get it anywhere except Google’s Android Marketplace.

Want to download videos from YouTube? I recommend Leawo Free YouTube Downloader. It can download all flash videos from YouTube. It can also download videos from other websites as long as they use Adobe Flash Player.

Retrieved from “http://www.articlesbase.com/electronics-articles/remote-control-youtube-playback-on-tv-or-pc-from-android-phones-or-tablets-3669661.html

(ArticlesBase SC #3669661)

Stephen Wong -
About the Author:

Stephen is a YouTube expert. He develops the free application Leawo Free YouTube Downloader to help people to download YouTube videos.

Rate this Article

1
2
3
4
5

vote(s)
0 vote(s)

Feedback
RSS
Print
Email
Re-Publish

Source:  http://www.articlesbase.com/electronics-articles/remote-control-youtube-playback-on-tv-or-pc-from-android-phones-or-tablets-3669661.html

Article Tags:
youtube remote, android, google

Related Videos

Related Articles

Latest Electronics Articles
More from Stephen Wong


China Renews Google’s License CNET Loaded 07/09/2010

Sony launches what it calls the “world’s smallest 3D cameras,” Facebook takes back its gifts feature, and American Eagle Outfitters will give you an Android phone just for trying on a new pair of jeans. (02:10)


CNET Loaded: 07-23-2010

Amazon strikes an exclusive-to-Kindle deal with a gaggle of famous authors, YouTube revamps its music site, and a two-seat yellow submarine could be yours for just 2 million clams. (02:23)


YouTube for the Boob Tube CNET Loaded 07/08/2010

T-Mobile and Sprint get new Android phones, Time restricts its free online content, and YouTube launches Leanback for viewing videos on your TV. (02:39)


YouTube Has a New Video Editor CNET Loaded 06/16/2010

We get a look at the lens on the Altek Leo camera phone, New York commuters may be getting free Wi-Fi, and YouTube now has a cloud-based video editing tool. (01:39)


YouTube’s Safety Mode

Google launches a Facebook-like service in Gmail, YouTube helps block your children from searching for porn and violence, and Netflix is going to stream at 1080p but not anytime soon. (05:16)

The Acer Liquid A1 – Towering Above Android Phones

Taiwan-based computer-now-mobile phone-maker Acer seemed so confident about the performance of its first Android smartphone that it didn’t mind underclocking the powerful Qualcomm Snapdragon processor from 1GHz to just 768 MHz.

By:
Simon Drewl

Technology>
Cell Phonesl
Dec 14, 2009

Google TV, and your Android Apps

Lets say for now that New York Times is correct: Google TV is coming, and runs on Android. Let further assume that some, if not all, the Google TV(or TV set-top boxes) will allow third-party applications, Android, as opposed to routing everything t…

By:
blue94l
Technologyl
Sep 16, 2010

Logitech Revue With Google TV

Google teamed up with Intel, Sony, and Logitech and on May 20, 2010 Google TV was announced. Combining the Android operating system software and hardware, they were able to create a platform for set-top boxes and High Definition Televisions and bridging the true multimedia experience to home users across the world.

By:
Louiel

Technology>
Gadgets and Gizmosl
Oct 20, 2010

Google Television From Intel And Sony

Google and Intel have teamed with Sony to develop a platform called Google TV to bring the Web into the living room through a new generation of televisions and set-top boxes. The move is an effort by Google and Intel to extend their dominance of computing to an arena where they have little sway, the TV. For Sony, which has struggled to retain a pricing and technological advantage in the competitive TV hardware market, the partnership is an effort to get a leg up on competitors.

By:
Asif Ali Zoordaril

Computers>
Information Technologyl
Mar 17, 2010

The Google’s futuristic visions during IFA 2010 in Berlin

The future will show whether the most important event of the IFA consumer electronics fair was the widely publicized 3D TV show, or one-hour presentation addressed to a small group of professionals.

By:
Dipol Newsletterl

Computers>
Information Technologyl
Sep 24, 2010

Sony Netbox streams Netflix, YouTube and other internet stuff for 130

We can not say that this is a real lack of streaming , set-top box on the market, but that does not mean that Sony would be welcomed with open arms. Not to be confused with netbook or nettop Netbox streams Sony Bravia Internet YouTube, Netflix…

By:
blue95l
Technologyl
Sep 09, 2010

Snapdragon Powers the Android in the Acer Liquid A1

While much of the online mobile community has been talking about the upcoming Sony Ericsson XPERIA X10 to be released Q1 of next year, we now have the world’s leading laptop maker Acer beating it to its markets with the release the world’s first Android 1.6 smartphone powered by the Snapdragon – the Acer Liquid A1.

By:
Simon Drewl

Technology>
Cell Phonesl
Nov 26, 2009

Environmentally-Friendly Upgrades: Sell Your New iPhone

There is plenty of incentive out there that piques the interest of those who might not be tech-savvy. After all, practically everyone in the fields of work and academics these days is sporting a fancy new phone, meaning that learning how to operate a device that can do everything from send texts to find the closest public bathroom is commonplace. And the biggest change in technology these lately is that stores are likely to sell new iPhones to people who previously shunned technology.

By:
Tom Laskyl

Technology>
Electronicsl
Nov 21, 2010

BDX3000 Review – A Brief Overview of the 3D Blu-ray Disc Player From Toshiba

Toshiba’s new 3D Blu-ray Player has many great features and has an affordable price tag. Equipped with built-in Wi-Fi, online streaming services, and great audio and video quality. Find out all the details and specifications on the BDX3000 3D Blu-ray Player.

By:
Curtis Hoskinsl

Technology>
Electronicsl
Nov 20, 2010

Apple Products Top Kids List for Christmas

Most parents already know what the Duracell Toy Report has announced recently which is the top items on kids Christmas lists this year for kids from five to sixteen are Apple products.

By:
Chad Figueiredol

Technology>
Electronicsl
Nov 20, 2010

Understanding The Different Digital Memory Cards

Computer memory in digital photography in essence means storing images in the usual cameras without the need for film. The use of rolls of film which are processed and developed to come out with pictures are relegated aside with the digital cameras recording images with the use of digital flash memory cards.

By:
Imaculate Johnsonl

Technology>
Electronicsl
Nov 20, 2010

Importance of Authentic Appliances Reviews

Warranty Direct conducts Europe-wide research to find top industry appliance brands including Whirlpool and Smeg and Hoover to be less reliable than other cheaper brands like Zanussi.

By:
Zaylee Simonl

Technology>
Electronicsl
Nov 20, 2010

MP3 players for every place and all time digital music entertainment

iPods and Portable Players are rapidly evolving technology products. Smarthouse keep pace with changing trends to bring you new stories from the MP3 players market, chiefly mobiles and iPods.

By:
Zaylee Simonl

Technology>
Electronicsl
Nov 20, 2010

Computer Recycling in Orange County: Recycle Your Old Computers for Better Environment

Why computer recycling? When something reaches its end of life cycle, it has to be replaced with a more contemporary one so that one can reap the benefit of the new technology.

By:
marksmithcaorl

Technology>
Electronicsl
Nov 20, 2010

Kitchen Aid Mixer: Choosing the Right One

Kitchen aid mixer is one product that serves great utility in the kitchen. It helps people save a lot of time and power consumption. Another important thing to note with kitchen aid mixers for Europe is the bettered automation levels.

By:
David Ciglarl

Technology>
Electronicsl
Nov 20, 2010

Remote Control YouTube Playback on TV or PC from Android Phones or Tablets

Google, the owner of YouTube and Android, announces a new application for Android cell phones called YouTube Remote, which enables Android smart phone or tablet users to remote control the playback of YouTube videos on Google TV or PC.

By:
Stephen Wongl

Technology>
Electronicsl
Nov 15, 2010

Lady Gaga Becomes the First Person to Hit 1 Billion YouTube Video Views Milestone

Lady Gaga now becomes the most popular artist on YouTube. As her videos on YouTube have reached the 1 BILLION views milestone.

By:
Stephen Wongl

Internet>
Videol
Oct 25, 2010

The First and the Second Video on YouTube

Five years ago in 2005, a site with the domain name www.youtube.com was activated on February 14. At that time, no one can image that this site will become the largest video site and the second biggest site in the world.

By:
Stephen Wongl

Internet>
Videol
Oct 22, 2010

Is it illegal to download YouTube video?

I’m sure a lot of you guys want to download some YouTube videos. Now the problem comes: Is it legal or not to download YouTube video? Is it legal to upload videos to YouTube?

By:
Stephen Wongl

Internet>
Videol
Oct 14, 2010

Add Flash Videos to WordPress Blog

Whatever your reason for wanting to add falsh videos to your WordPress blog or website-maybe you just want to share videos with your friends or want to show some business websites to your potential customers-it’s very easy with WordPress and a couple of other tools.

By:
Stephen Wongl

Internet>
Videol
Apr 27, 2010

Add Flash Videos to WordPress Blog

Whatever your reason for wanting to add falsh videos to your WordPress blog or website-maybe you just want to share videos with your friends or want to show some business websites to your potential customers-it’s very easy with WordPress and a couple of other tools.

By:
Stephen Wongl

Internet>
Videol
Apr 27, 2010

How to add flash video to blog

On internet, there are always some people ask questions like “How can I add flash videos to my blog(blogger)?”, “How can I add a flash video(FLV) to my blog?”, “How can I embed flash videos into my myspace?” Here, I will give a step-by-step user guide to solve these problems.

By:
Stephen Wongl

Computers>
Softwarel
Apr 25, 2010

How To Add Flash Video To Website

On internet, there are more and more people ask questions like “How can I add flash videos to my website?”, “How can I embed a flash video(FLV) into my web page?”, “How to insert an abobe flash video into frontpage?” Here, I will give a step-by-step user guide to solve these problems.

By:
Stephen Wongl

Computers>
Softwarel
Apr 21, 2010

Add new Comment

Your Name: *

Your Email:

Comment Body: *

 

Verification code:*

* Required fields

Submit

Your Articles Here
It’s Free and easy

Sign Up Today

Author Navigation

My Home
Publish Article
View/Edit Articles
View/Edit Q&A
Edit your Account
Manage Authors
Statistics Page
Personal RSS Builder

My Home
Edit your Account
Update Profile
View/Edit Q&A
Publish Article
Author Box


Stephen Wong has 12 articles online

Contact Author

Subscribe to RSS

Print article

Send to friend

Re-Publish article

Articles Categories
All Categories

Advertising
Arts & Entertainment
Automotive
Beauty
Business
Careers
Computers
Education
Finance
Food and Beverage
Health
Hobbies
Home and Family
Home Improvement
Internet
Law
Marketing
News and Society
Relationships
Self Improvement
Shopping
Spirituality
Sports and Fitness
Technology
Travel
Writing

Technology

Cable and Satellite TV
Cell Phones
Communication
Electronics
Gadgets and Gizmos
GPS
Satellite Radio
Video Conferencing
VoIP

Need Help?
Contact Us
FAQ
Submit Articles
Editorial Guidelines
Blog

Site Links
Recent Articles
Top Authors
Top Articles
Find Articles
Site Map

Webmasters
RSS Builder
RSS
Link to Us

Business Info
Advertising

Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2010 Free Articles by ArticlesBase.com, All rights reserved.

Aug
10

Apple TV next generation design of the whole touch-screen remote control exposure

Apple TV next generation design of the whole touch-screen remote control exposure

Apple’s iTunes 9 has been heard before the new interface shots of the BGR foreign websites, and recently brought a suspected Apple’s next generation product design, picture, rumored that it is likely to be the second-generation Apple TV remote control concept design artwork.

Information obtained from the picture you can see, this is a no button of the remote control, which uses similar with the Sony Vgp-bpl2 Laptop Battery all-touch-screen cell phone design, looks like a stretched version of the iPod nano, mode of operation is also with them very similar, by a finger touch to complete a variety of media players, and even web browsing applications.

Just ended in September, Apple on the Apple TV product lines of fine-tuning of the 229 U.S. dollars before the 40GB product delisting from 329 U.S. dollars to replace the 160GB version of the product, priced reduced to 229 U.S. dollars. Should the exposure of this picture is really the next generation of Apple TV’s standard accessories, it is so seductive strong remote control, for only the price of more than 200 U.S. dollars of the Apple TV is, is not it seem too extravagant to do?

Single from the sales point of view, Apple TV is Apple products introduced in recent years, the sales of the most dismal paragraph. Since it went public two years ago, the hardware configuration has not been much change. Although this position with the Apple TV itself is related by Apple as “interest products”, but Apple recently a series of moves of view, does not rule out the possibility he became the main product. When that happens, this revolutionary remote control design may become a major selling point.

Edit Comment: From the full-Touch Tablet PC rumors, to the full-touch remote control, Apple’s products the recent exposure, it seems related with the touch screen. We look back at this stage in the sale of popular Apple product, whether it is iPhone cell phone, iPod nano, there are MacBook laptops, have touch technology. These applications are the user’s love and concern, and because of patent reasons, Apple has become an insurmountable advantage of other brands within a short time, replication technology to copy product so far not as simple.

In fact, frequent introduction of Apple’s touch-screen products, also in copying his success, he saw from the Hp Pavilion zd8000 Series Laptop Battery a powerful business opportunities, people’s habits are changing, more mechanical parts button operation, it is likely because of Apple’s strong elected touch technology has been eliminated from the final will only be able to see in museums, this is not impossible to happen. Perhaps, is to change the habits of our time.

As market competition intensifies, the Internet phenomenon of the homogenization of the more serious, major manufacturers have to seek a breakthrough in order to obtain higher profits. However, when large-screen access to the Internet after the introduction, the price began to rise with the tide and even comparable with the traditional notebook. To industry sources, manufacturers in pursuit of profits at small and lightweight to change the characteristics of this way, the advantages of the Internet will cease to exist.

Rapid increase sales volume

According to the latest report released in the second quarter, notebook sales to reach 38 million units, of which the Internet was particularly strong in this market, compared with the preceding quarter, up 40%, the growth rate nearly twice the average laptop. Internet access to this strong sales, making its total notebook market share rose to 22.2%. ASUS Internet pioneer market share in this decline, as first-line brand Hewlett-Packard, Dell, Lenovo and Toshiba have access to the Internet in this market.

At present, the Internet in Latin America and China, the prevalence was even higher than regular notebooks. Internet in this low price is more suited for these emerging markets. Particularly in these areas for the first time computer buyers do not need to mainstream notebook possess all the features. In many areas, telecommunications operators to subsidize the purchase of the Internet, which also facilitated the access to this sales growth.

In Western European countries, many telecommunications companies signed a two-year Ibm Thinkpad t43p Laptop Battery in the user agreement to provide 100% subsidy, which is provided free of charge Internet access to this. Analysts said the markets surging in the Internet is bound to Apple and other companies will have a traditional notebook computer to form a larger pressure.

Gradual increase of the phenomenon of homogenous

As market competition intensifies, many manufacturers have begun to look to play cards. Recently, the Japanese Bandai has launched a cartoon online book, its greatest feature is the appearance of a cartoon image of the shell part of the desktop backgrounds with the relevant patterns. The product is sold in Japan rapidly. Sony has also launched a sudden appearance design and excellent workmanship processes VAIO W series, while we have a MININOTEBOOK, but either from the processor or chipset, all indicate that this is a pure and simple access to this. The Asus EeePC latest clamshell phone is one of the representatives of the family to make, its only a business card size, the world’s smallest PC motherboard, to overcome the difficulties of internal space for small, high level of integration to achieve a more energy-efficient, longer-lasting The endurance capacity.

In addition, Google and Nokia are also entering the online market is full of the expectations, these companies continue to join not only enriched the Internet in this market, product lines, but also in technology, market planning, long-term development of the industry to the Internet in this one More change the future.

Experts point out that in recent years, the Compaq Presario m2000 Laptop Battery in its present developments in the field less and less clear, homogeneous phenomenon even more serious, a number of cottage manufacturers have shifted their positions, and even mainstream companies are also devoting himself struggled in the face of sales gradually declined, making a number of vendors have to adopt a similar appearance of mold, but also for future market development of this great Internet bottlenecks.

The price war will no longer have the advantage of

The screen size because of the Internet in this growing, especially in the 11.6 inches of the advent of the Internet since the Internet has soared in the price. Reporter Zhongguancun see that there is a lot of Internet companies have already started this price war, like the Asus EeePC clamshell phone 1005HA-H’s prices have been lowered to 3199 yuan, not only so, until October 15 the same day promotional period, purchase EeePC clamshell phone 1005HA, you can receive more gifts

Asus EeePC relevant person in charge, told reporters that the Internet has its own room for the development of this still exists, but it has its own characteristics that must be taken one way, blindly to meet consumer demand, will be the immediate short-term interests as the highest goal of the behavior will lead to the development of the Internet in this track.

At present, various new technologies and new demands of customers are constantly emerging, according to the actual user needs to develop the Internet in this and other differences between the existing terminal, rather than a single price war in the PC makers to set aside the title of straw after , Internet this should show its own unique charm.

Jun
4

Development and remote installation of Java service for the Android Devices

Development and remote installation of Java service for the Android Devices

Written by:
Igor Darkov, Software Developer of Device Team, Apriorit Inc.

In this article I’ve described:

How to develop simple Java service for the Android Devices; How to communicate with a service from the other processes and a remote PC; How to install and start the service remotely from the PC. 1. Java Service Development for the Android Devices

Services are long running background processes provided by Android. They could be used for background tasks execution. Tasks can be different: background calculations, backup procedures, internet communications, etc. Services can be started on the system requests and they can communicate with other processes using the Android IPC channels technology. The Android system can control the service lifecycle depending on the client requests, memory and CPU usage. Note that the service has lower priority than any process which is visible for the user.

Let’s develop the simple example service. It will show scheduled and requested notifications to user. Service should be managed using the service request, communicated from the simple Android Activity and from the PC.

First we need to install and prepare environment:

Download and install latest Android SDK from the official web site (http://developer.android.com); Download and install Eclipse IDE (http://www.eclipse.org/downloads/); Also we’ll need to install Android Development Tools (ADT) plug-in for Eclipse.

After the environment is prepared we can create Eclipse Android project. It will include sources, resources, generated files and the Android manifest.

1.1 Service class development

First of all we need to implement service class. It should be inherited from the android.app.Service (http://developer.android.com/reference/android/app/Service.html) base class. Each service class must have the corresponding <service> declaration in its package’s manifest. Manifest declaration will be described later. Services, like the other application objects, run in the main thread of their hosting process. If you need to do some intensive work, you should do it in another thread.

In the service class we should implement abstract method onBind. Also we override some other methods:

onCreate(). It is called by the system when the service is created at the first time. Usually this method is used to initialize service resources. In our case the binder, task and timer objects are created. Also notification is send to the user and to the system log: public void onCreate() { super.onCreate(); Log.d(LOG_TAG, “Creating service”); showNotification(“Creating NotifyService”); binder = new NotifyServiceBinder(handler, notificator); task = new NotifyTask(handler, notificator); timer = new Timer(); } onStart(Intent intent, int startId). It is called by the system every time a client explicitly starts the service by calling startService(Intent), providing the arguments it requires and the unique integer token representing the start request. We can launch background threads, schedule tasks and perform other startup operations. public void onStart(Intent intent, int startId) { super.onStart(intent, startId); Log.d(LOG_TAG, “Starting service”); showNotification(“Starting NotifyService”); timer.scheduleAtFixedRate(task, Calendar.getInstance().getTime(), 30000); } onDestroy(). It is called by the system to notify a Service that it is no longer used and is being removed. Here we should perform all operations before service is stopped. In our case we will stop all scheduled timer tasks. public void onDestroy() { super.onDestroy(); Log.d(LOG_TAG, “Stopping service”); showNotification(“Stopping NotifyService”); timer.cancel(); } onBind(Intent intent). It will return the communication channel to the service. IBinder is the special base interface for a remotable object, the core part of a lightweight remote procedure call mechanism. This mechanism is designed for the high performance of in-process and cross-process calls. This interface describes the abstract protocol for interacting with a remotable object. The IBinder implementation will be described below. public IBinder onBind(Intent intent) { Log.d(LOG_TAG, “Binding service”); return binder; }

To send system log output we can use static methods of the android.util.Log class (http://developer.android.com/reference/android/util/Log.html). To browse system logs on PC you can use ADB utility command: adb logcat.

The notification feature is implemented in our service as the special runnable object. It could be used from the other threads and processes. The service class has method showNotification, which can display message to user using the Toast.makeText call. The runnable object also uses it:

public class NotificationRunnable implements Runnable { private String message = null; public void run() { if (null != message) { showNotification(message); } } public void setMessage(String message) { this.message = message; } }

Code will be executed in the service thread. To execute runnable method we can use the special object android.os.Handler. There are two main uses for the Handler: to schedule messages and runnables to be executed as some point in the future; and to place an action to be performed on a different thread than your own. Each Handler instance is associated with a single thread and that thread’s message queue. To show notification we should set message and call post() method of the Handler’s object.

1.2 IPC Service

Each application runs in its own process. Sometimes you need to pass objects between processes and call some service methods. These operations can be performed using IPC. On the Android platform, one process can not normally access the memory of another process. So they have to decompose their objects into primitives that can be understood by the operating system , and “marshall” the object across that boundary for developer.

The AIDL IPC mechanism is used in Android devices. It is interface-based, similar to COM or Corba, but is lighter . It uses a proxy class to pass values between the client and the implementation.

AIDL (Android Interface Definition Language) is an IDL language used to generate code that enables two processes on an Android-powered device to communicate using IPC. If you have the code in one process (for example, in Activity) that needs to call methods of the object in another process (for example, Service), you can use AIDL to generate code to marshall the parameters.

Service interface example showed below supports only one sendNotification call:

interface INotifyService { void sendNotification(String message); }

The IBinder interface for a remotable object is used by clients to perform IPC. Client can communicate with the service by calling Context’s bindService(). The IBinder implementation could be retrieved from the onBind method. The INotifyService interface implementation is based on the android.os.Binder class (http://developer.android.com/reference/android/os/Binder.html):

public class NotifyServiceBinder extends Binder implements INotifyService { private Handler handler = null; private NotificationRunnable notificator = null; public NotifyServiceBinder(Handler handler, NotificationRunnable notificator) { this.handler = handler; this.notificator = notificator; } public void sendNotification(String message) { if (null != notificator) { notificator.setMessage(message); handler.post(notificator); } } public IBinder asBinder() { return this; } }

As it was described above, the notifications could be send using the Handler object’s post() method call. The NotificaionRunnable object is passed as the method’s parameter.

On the client side we can request IBinder object and work with it as with the INotifyService interface.  To connect to the service the android.content.ServiceConnection interface implementation can be used. Two methods should be defined: onServiceConnected, onServiceDisconnected:

ServiceConnection conn = null; … conn = new ServiceConnection() { public void onServiceConnected(ComponentName name, IBinder service) { Log.d(“NotifyTest”, “onServiceConnected”); INotifyService s = (INotifyService) service; try { s.sendNotification(“Hello”); } catch (RemoteException ex) { Log.d(“NotifyTest”, “Cannot send notification”, ex); } } public void onServiceDisconnected(ComponentName name) { } };

The bindService method can be called from the client Activity context to connect to the service:

Context.bindService(new Intent(this, NotifyService.class), conn, Context.BIND_AUTO_CREATE);

The unbindService method can be called from the client Activity context to disconnect from the service:

Context.unbindService(conn); 1.3 Remote service control

Broadcasts are the way applications and system components can communicate. Also we can use broadcasts to control service from the PC. The messages are sent as Intents, and the system handles dispatching them, including starting receivers.

Intents can be broadcasted to BroadcastReceivers, allowing messaging between applications. By registering a BroadcastReceiver in application’s AndroidManifest.xml (using <receiver> tag) you can have your application’s receiver class started and called whenever someone sends you a broadcast. Activity Manager uses the IntentFilters, applications register to figure out which program should be used for a given broadcast.

Let’s develop the receiver that will start and stop notify service on request. The base class android.content.BroadcastReceiver should be used for these purposes (http://developer.android.com/reference/android/content/BroadcastReceiver.html):

public class ServiceBroadcastReceiver extends BroadcastReceiver { … private static String START_ACTION = “NotifyServiceStart”; private static String STOP_ACTION = “NotifyServiceStop”; … public void onReceive(Context context, Intent intent) { … String action = intent.getAction(); if (START_ACTION.equalsIgnoreCase(action)) { context.startService(new Intent(context, NotifyService.class)); } else if (STOP_ACTION.equalsIgnoreCase(action)) { context.stopService(new Intent(context, NotifyService.class)); } } }

To send broadcast from the client application we use the Context.sendBroadcast call. I will describe how to use receiver and send broadcasts from the PC in chapter 2.

1.4 Android Manifest

Every application must have an AndroidManifest.xml file in its root directory. The manifest contains essential information about the application to the Android system, the system must have this information before it can run any of the application’s code. The core components of an application (its activities, services, and broadcast receivers) are activated by intents. An intent is a bundle of information (an Intent object) describing a desired action — including the data to be acted upon, the category of component that should perform the action, and other pertinent instructions. Android locates an appropriate component to respond to the intent, starts the new instance of the component if one is needed, and passes it to the Intent object.

We should describe 2 components for our service:

NotifyService class is described in the <service> tag. It will not start on intent. So the intent filtering is not needed. ServiceBroadcastReceived class is described in the <receiver> tag. For the broadcast receiver the intent filter is used to select system events: <application android:icon=”@drawable/icon” android:label=”@string/app_name”> … <service android:enabled=”true” android:name=”.NotifyService” android:exported=”true”> </service> <receiver android:name=”ServiceBroadcastReceiver”> <intent-filter> <action android:name=”NotifyServiceStart”></action> <action android:name=”NotifyServiceStop”></action> </intent-filter> </receiver> … 2. Java service remote installation and start 2.1 Service installation

Services like the other applications for the Android platform can be installed from the special package with the .apk extension. Android package contains all required binary files and the manifest.

Before installing the service from the PC we should enable the USB Debugging option in the device Settings-Applications-Development menu and then connect device to PC via the USB.

On the PC side we will use the ADB utility which is available in the Android SDK tools directory. The ADB utility supports several optional command-line arguments that provide powerful features, such as copying files to and from the device. The shell command-line argument lets you connect to the phone itself and issue rudimentary shell commands.

We will use several commands:

Remote shell command execution: adb shell <command> <arguments> File send operation: adb push <local path> <remote path> Package installation operation: adb install <package>.apk

I’ll describe the package installation process in details. It consists of several steps which are performed by the ADB utility install command:

First of all the .apk package file should be copied to the device. The ADB utility connects to the device and has limited “shell” user privileges. So almost all file system directories are write-protected for it. The /data/local/tmp directory is used as the temporary storage for package files. To copy package to the device use the command: adb push NotifyService.apk /data/local/tmp Package installation. ADB utility uses special shell command to perform this operation. The “pm” (Package Manager?) utility is present on the Android devices. It supports several command line parameters which are described in the Appendix I. To install the package by yourself execute the remote shell command: adb shell pm install /data/local/tmp/NotifyService.apk Cleanup. After the package is installed, ADB removes the temporary file stored in /data/local/tmp folder using the “rm” utility: adb shell rm /data/local/tmp/NotifyService.apk. To uninstall package use the “pm” utility: adb shell pm uninstall <package> 2.2 Remote service control

To be able to start and stop the NotifyService from the PC we can use the “am” (Activity Manager?) utility which is present on the Android device. The command line parameters are described in the Appendix II. The “am” utility can send system broadcast intents. Our service has the broadcast receiver which will be launched by the system request.

To start NotifyService we can execute remote shell command:

adb shell am broadcast –a NotifyServiceStart

To stop the NotifyService we can execute remote shell command:

adb shell am broadcast –a NotifyServiceStop

Note, that the NotifyServiceStart and NotifyServiceStop intents were described in the manifest file inside the <receiver> … <intent-filter> tag. Other requests will not start the receiver.

Appendix I. PM Usage (from Android console) pm [list|path|install|uninstall] pm list packages [-f] pm list permission-groups pm list permissions [-g] [-f] [-d] [-u] [GROUP] pm path PACKAGE pm install [-l] [-r] PATH pm uninstall [-k] PACKAGE The list packages command prints all packages. Use the -f option to see their associated file. The list permission-groups command prints all known permission groups. The list permissions command prints all known permissions, optionally only those in GROUP. Use the -g option to organize by group. Use the -f option to print all information. Use the -s option for a short summary. Use the -d option to only list dangerous permissions. Use the -u option to list only the permissions users will see. The path command prints the path to the .apk of a package. The install command installs a package to the system. Use the -l option to install the package with FORWARD_LOCK. Use the -r option to reinstall an exisiting app, keeping its data. The uninstall command removes a package from the system. Use the -k option to keep the data and cache directories around after the package removal. Appendix II. AM Usage (from Android console) am [start|broadcast|instrument] am start -D INTENT am broadcast INTENT am instrument [-r] [-e <ARG_NAME> <ARG_VALUE>] [-p <PROF_FILE>] [-w] <COMPONENT> INTENT is described with: [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>] [-c <CATEGORY> [-c <CATEGORY>] …] [-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...] [--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...] [-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...] [-n <COMPONENT>] [-f <FLAGS>] [<URI>] Resources used: Android Installation Guide.

http://developer.android.com/sdk/1.5_r2/installing.html

Android Developer reference.

http://developer.android.com/reference/classes.html

Jesse Burns. Developing Secure Mobile Applications for Android.

https://www.isecpartners.com/files/iSEC_Securing_Android_Apps.pdf

Designing a Remote Interface Using AIDL

http://developer.android.com/guide/developing/tools/aidl.html

More Android Articles

Feb
28

Microsoft Dynamics Gp 10.0 Great Plains Remote Support – Overview

Microsoft Great Plains ERP has rich accounting and business processes automation functionality, however in this small article we would like to concentrate on remote support, version upgrade, technical problem solving scenarios and if you need to get info on specific GP modules features: GL, SOP, POP, etc. please find it in others GP related materials, such as module user manuals, whitepapers

1. ERP remote support technologies in general. Web session tools, such as gotomeeting, allow ERP consultants, being remote, lead web presentation, when your users, supposedly sitting in one conference room at your office and watching projected to the wall screen computer monitor. Web session allows consultant to take mouse and keyboard control as well as give it back to trainees

2. Phone conferencing. If you are in the same country, you can typically use your regular office phone and call to conference supporting phone from gotomeeting or other web conferencing service provider. If you are in several countries, the best and cost efficient solutions might be internet telephony, such as skype: if your remote users have skype ID – this is all you need to get everyone in the conference

3. Problem Solving advises. As, regardless of theoretical efficiency of web conferences, your human face-to-face interaction is to some extent restricted, there should be nurtured the culture of well structured technical questioning. For example, try to be very specific: what exactly you were doing, what error message you received (provide screen shots of error messages) – this technique will let technical support engineer to skip “clarification” phase and go down to the problem solving immediately

4. Version upgrade, data fixing remote support technologies. Web session being good for user training, is probably not optimal solution for day-to-day data repair tasks. Web session requires both sides to be in the session, which is not really required for data fixing scenarios – you as GP user, describe the issue and remote support technician will connect to your desktop remotely and will fix the problem when he will have this task to be scheduled by manager. Remote desktop technologies typically include VPN connection and Remote Desktops.

5. Customization Support and Design remotely. Microsoft Great Plains Dynamics GP has its own proprietary modification technology – Microsoft Dexterity, it can be developed remotely on local testing system, however in order to debug Dex customizations on your test environment, Dexterity installation on your remote connection server is recommended – this will reduce programmers getting-into-project curve

6. Version update hints. GP is currently on version 10.0 and if you are on earlier version: 4.0, 5.0, 5.5, 6.0, 7.0, 7.5, 8.0 or 9.0 – you should make your homework on upgrade scenarios. One of the examples would be migration from Pervasive SQL 2000 (former Btrieve) or Ctree/Faircom to Microsoft SQL Server 2005, or 2000

need a website? want to be #1 on Google? visit our florida web design company homepage

Feb
19

Remote Microsoft Help and Support Services

Tired of combating with irksome Windows errors? In many cases, there’s some something or the other causing problems (slow loading files, etc.) … something that has to load with every document. Well! You don’t have to trouble yourself anymore. Now, you can leverage the benefits out of experts’ knowledge at the most affordable rates. Wondering how? Online media has made everything possible. You can find a plethora of computer support companies offering online technical help and microsoft support for all your computer woes.

These online technical help resources have got a complete team of certified system engineers to take care of your PCs. Moreover, they provide you with a comprehensive array of support services which are difficult to find under one roof. Whether you have to solve a problem urgently, want consulting advice, or need the latest software patches and releases, support is just a click away!

For solutions to all your Windows errors, you simply require to ask for Microsoft help and support from recognized tech support resources like iYogi, IBM etc. You will get technical help, computer repair, virus removal etc. and end-to-end solutions that contribute provide truly significantly to cost savings, and relieve you from the burden and complexity of managing a technical help desk.

Microsoft help covers the support for all Windows based operating system, web browser i.e. Internet explorer and email clients. In all cases, the tech support team assists you with things like installation of operating system & its configuration windows settings, personalization and preferences, windows updates, etc. They perform complete diagnosis of the problem with comprehensive solutions, including repair, updates and optimization for your computer.

The best part about buying Microsoft Help services from online technical support resources is their 24×7 availability. You will find the technicians standing by to assist you with your computer problem whether it is with you Microsoft operating system (OS) or other software application.

need a website? want to be #1 on Google? visit our florida web design company homepage

Click to Advertise here!
Follow us on Twitter! Follow us on Twitter!

Archives

Categories

Recent Posts

Views

Resources

Recent Comments