How to run a Video Presentation on Android in loop?

Keywords:android 


Question: 

I have a group of Android Tablets and I need them to only run a Video Presentation as Company Gift Card.

The idea of this project is the same of usually Company's Gift PENs, where the Company give to their presentation audience the information in the PEN, but this case we will have on an Android Tablet.

So this reason I'll need to have a startup Application on boot time and block the event until a root or a system reset. Off course I am aware of this last question and it's not a problem to the company.

Please give me some idea about how to solve this problem, in first time I need to make the video start and launch at boot time and then make it a loop or just lock in the video.




1 Answer: 

I have done this by setting my app to run as the launcher. You can do this by putting this intent filter on your main activity:

<activity ...>
  <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.HOME" />
    <category android:name="android.intent.category.DEFAULT" />
  </intent-filter> 
</activity>

The first time you run your app, press the home key and select the option to make your app the default launcher app. Then you can hand off the tablets for the event. Users will not be able to easily leave your app, since pressing home will return them to it. You should also prevent the back key and run fullscreen to hide other ways of navigating out of the app.

 

More Articles


c# - Extract text from SmartArt in Presentation OpenXml

I need to extract all text from a PowerPoint OpenXml format (pptx) in .net (VB.NET or C#)Like you all know, pptx is a zipped file whith some folders inside.I'm using OpenXmlPowerTools.I managed to extract the text from the slides folder (slidespart), but I noticed that there is more text in my powe

.net - WPF Databinding Calculated Value sometimes minutes sometimes hours

I have a WPF window with a textbox, using standard WPF Databinding to an object. This all works fine, the issue is this:The user is entering a time estimate, I would like to give the user the option to enter the data in hours or minutes (through a drop down list). I'd like to keep the data in minute

c# - Controlling PowerPoint Slideshow

When a slideshow running in PowerPoint I want to control the movement (Next and Previous) of the slides. Of course it is possible with the > and < button on the keyboard, but is there any way in which I can have a custom application listening to the Next and Previous controls?My custom applicatio


.net - PowerPoint Interop - Start presentation with slide index (not fullscreen) with C#

I'm using the code below to start a presentation in C#: var app = new Microsoft.Office.Interop.PowerPoint.Application(); var pres = app.Presentations; Presentation objPres = pres.Open(@"C:\test.pptx", MsoTriState.msoTrue, MsoTriState.msoTrue); objPres.SlideShowSettings.Run();

charts - How to adjust a GraphViz cluster's margin?

I find graphviz cannot independently adjust a cluster's width margin and height margin.As shown below, the cluster's height margin is obviously less than its width margin.GraphViz provides a parameter margin to adjust a cluster's margin. However, it cannot adjust a cluster's width margin only and ke

r - Line by line analysis and plotting on multiple monitors during presentation

I am preparing a presentation on data analysis and I am provided with a 2-3 monitor and projector head-up. I would like to use one monitor(+projector) for code, one monitor(+projector) for console display and one monitor(+projector) for plots. Monitors are for me, projectors for the audience. I woul


Draw on second Screen using OnGestureDetection and Presentation API in Android?

Currently I have a setup which consists of a Smartphone and a pico-projector connected via MHL. I can send Images to the projector via the Presentation API with no problems. But now I came to the point, where I have to actively manipulate the second screen. I found hardly any information.Basically I

r - Control size of figure in Rstudio presentation

I'm creating a presentation in RStudio (.Rpres). I have a figure that is too large and extends beyond the screen. How can I reduce it?Too big, need to reduce sizeFigure 1========================================================![alt text](fig1)

css - Presenting two paragraphs in HTML side by side

Consider the following problem: you have one text translated into two languages,First line // Unua linioSecond line // Dua linioand there's a need to display them side by side using all available space, make them accessible to search engines as separate paragraphs and allowing separate selection. Th

android - runOnUiThread in Presentation class

How can I update TextView in Presentation class if RunOnUiThread is not available in this class.Here is my exampleprivate final class DemoPresentation extends Presentation { public DemoPresentation(Context context, Display display) { super(context, display); } @Override protected