Thanks all.
This sample code has to get executed on the Google-TV device and the
resulting List<ApplicationInfo> object has to be shown on the remote
device that is querying for this information [after getting paired
with the google-tv device]. Is such a thing possible? Does Google-TV
allow such transfer of information as is or do i also have to write a
program that runs on Google-TV device to make such queries possible.
This is the part i am confused about developing a remote app for
Google TV.
Thanks again.
On Jan 5, 12:49 pm, Bhavya Vanaja <
bhav...@google.com> wrote:
> You should be able to get a list of installed apps by using PackageManager
> API.<
http://developer.android.com/reference/android/content/pm/PackageMana...>
> Sample snippet below.
>
> final PackageManager pm = getPackageManager();
>
> //List of installed* apps*
>
> List<ApplicationInfo> packages = pm
> .getInstalledApplications(PackageManager.GET_META_DATA);