Is there an orthodox way to develop Android TV apps - android-tv

I have a few problems with understanding of android tv development. First of all when i had launched android tv project and was trying to create custom interface for new activity, unfortunately i couldn't find any xml elements which could help me. From the example i got some ideas that whole interface provided by android SDK collected in many fragments. I just can modify colors, fonts, fonts size, transparency maybe animation and etc. But if i really need to customize structure of controls and WTF i wanna output "Hello World" inside label!!! Is it possible? I read all articles from this link https://developer.android.com/training/tv/index.html but it is still useless for me (maybe I am unique :) ). After this suffering with google guide, i have done a conclusion that the platform so new and there is no way to do some thing except only way that was provided by google. Am i right? If not, what should i do to find successful way?

The fragments provided by Google as part of the "leanback" framework are templates designed to make it easy for content providers to start publishing to Android TV without having to worry about the technical details of building a TV UI. The idea is that a content provider can create a channel just by feeding in their video content. This ease of use comes at a cost, customization is difficult or impossible with these templates.
However there is nothing preventing you from creating your own Activities and Fragments from scratch and implementing a completely custom UI for the TV, it works just like any other Android device. Add "android.intent.category.LEANBACK_LAUNCHER" to your manifest and see for yourself.

Related

How to update many mobile applications from one place?

I'm using React-Native. I have a mobile app and in near future I'll copy-paste it for many customers. All features will be same except colour, logo and etc. Let's assume that I have 100 mobile Apps and when there are some bugs or errors on my api or another part. I want to fix them just one time and apply it to all my mobile apps without update them on iOS-google play market. Otherwise I have to fix all my Apps separately and it will take my lot so time. I found something about it named as EXPO-OTA(Over-to-air) but that's not sufficient for me. That has some limit to update something. Is there any way to do it? Or Is it possible?
You can use react-native-config for managing each app config. like color and other configurations.
Also keep the logo in android assets and link them in js code .
After that you can use react-natve-code-push to update the js bundle over the air. This way you can sync the same codebase in every app.

Screen sharing Integration in HTML5 LOB?

I’m just wondering if anyone knows of any screen sharing packages out there that will integrate into a HTML5 based line of business app. The use case is if a user calls in they can just click share screen with support and the support person in here will be able to see and take hold of their screen.
I know there is a lot of packages out there that do this but they all seem to require some type of plugin to run them.
Any advice is appreciated.

Client Technology Choice - Any HTML5/Canvas libraries as capable as Flash/Flex?

I know similar questions have been closed for it being "impossible to answer objectively", but stick with me here.
I built a prototype in Adobe Flex, they (customers) liked it. Everything was fine until they later told me that iPads / iOS needs to be supported too.
I checked out Adobe's Packager for iPhone. We're evaluating that and we will know if it works out in a couple of days. (We need to get through Apple's red tape and certificates raj so this angle is delayed by a few days!)
There is a growing voice for using HTML5/Canvas as a technology platform itself. And despite being quite proficient in Flex, I think this makes sense.
I'm in need of a HTML5 library that can:
Render "widgets" i.e. containers with forms and components (this should be easy and possible using POHJC - Plain old HTML, JavaScript and CSS ;-) )
Provide a Tree like control for laying out some data
Provide a Canvas where data structures can be represented as basic shapes
Provide drag and drop capabilities between Trees, Buttons and Canvas
Provide some sort of Tab Navigator container (I guess JQuery works here)
Interact with back-end services (JSON/XML calls will be okay, but mapping directly with back-end entities will be awesome!)
Renders on latest versions of major browsers, Android OS and iOS (WebKit for mobile?)
Am I asking for too much?
I'm ready to give JQuery & JQuery UI a try.
I looked at Sencha / ExtJS but it seems we need to maintain two code bases one for normal browsers and the other for mobiles (is that correct?)
Are there any other JS libraries worth trying out?
My concerns areas are
Single code base, I don't want to suggest to them that multiple code bases for the client need to be maintained. That's a last resort option and would lead to complete ruling out of HTML5 with Flash apps and native apps being developed.
Canvas capabilities - I don't want to work with raw canvas and shape tags. This too is a last resort option. Is there any abstraction available?
Integration with back-end services, obviously I need some capability here!
Help me out. Communitywikify this if required.
Thanks,
Sri
How about trying Vaadin?
http://vaadin.com/comparison
I do construe its irrelevant to your question, but still this framework can help in great deal. I still use Flex and PHP as main base for many application, but actually fell in love with Vaadin and started using it for my new projects.
Grant Skinner the flash guru is working on a html5 libary. It has some features you requested. It is still in development.
The new Canvas element in HTML5 is powerful, but it can be difficult to work with. It has no internal concept of discrete display elements, so you are required to manage updates manually. The Easel Javascript library provides a full, hierarchical display list, a core interaction model, and helper classes to make working with Canvas much easier.
The libary is called easeljs, you can find it here : http://easeljs.com/
For the normal html and css manipulations without html canvas JQuery is very easy to learn.

dashcode and external rss feeds

I was wonder if anyone can help me with this. I've been looking everywhere for this information, but I want to make a web application using dascode rss. I know that you can't link external sources. Does anyone know a way I can get around it. From what I understand a little php can get around this, but I'm unsure where to look.
OK, first thing no PHP. Dashcode is limited to HTML, CSS and JavaScript. Although having said that there are a whole range of system calls that cna be made using the functionality provided by various parts of the x-cde system.
Second yes you can link to external sources such as other web sites, api on say Twitter, google etc. RSS feeds and so on, not sure where you got the idea to the contrary.
If you want to learn how to do a Dashcode RSS then open up Dashcode, start a new project, either web based or Dsashboard based and choose the RSS project. This will give you an out of the box template to add you own information and then see how it works. Then customise it.
In the above i am assuming Snow Leopard and the latest Dashcode/X-code but it will still gove you most of what you want on earlier version.

Is there a list of reserved FlashVars names?

Currently I work on localization for a Flex application. From an article I know that you can control the localization with the following FlashVars:
resourceModuleURLs
localeChain
Are there any other FlashVars reserved by Adobe that a Flash/Flex Developer should know about?
I recently was playing with ContextMenuItem and found a list of words that cannot be used for a caption or label in a ContextMenuItem. Not sure if it helps.
Save
Zoom In
Zoom Out
100%
Show All
Quality
Play
Loop
Rewind
Forward
Back
Movie not loaded
About
Print
Show Redraw Regions
Debugger
Undo
Cut
Copy
Paste
Delete
Select All
Open
Open in new window
Copy link
Adobe
Macromedia
Flash Player
Settings
Also a hack was suggested here, although I never tried it personally.
This article has a fairly easy tutorial. The conversation in the comments will cover a few best practices for you as well.
Here is an adobe livedoc on runtime localization that you may not have seen yet either.
This final link provides an update on the changes in the localization API made in Flex 3 and documents the deprecated and new classes/methods, etc. (a list with examples is at the bottom of the document).
On a side note if anyone is looking for a tool to help out with translations David Deraedt wrote some nice air apps called Lupo Localization Studio that are reasonably inexpensive.

Resources