Android on Blackberry: How to Play Videos - android

i've ported some Apps from Android to Blackberry (by repacking them with the Blackberry tools). Most of the App seems to work fine, however i con not get the Videos to work.
The Loading indicator appears (but does not spin). Nothing else Happens (No Exceptions or anything on the LogCat or Console. After I while i get the Dialog which ask me if i want to shut down the App as it is not reacting.
Has anybody ever managed to Play Videos using the Android API on Blackberry 10?
Are there any tricks to use? Like just using special Video Formats or anything else i need to know?

If you are doing this in the simulator, there are no codecs present there.

I now have Feedback from RIM. Some Networkprotocols are not supported for Video(streaming):
http://developer.blackberry.com/android/apisupport/unsupportedapi_blackberry10_network_protocols.html . And some more Bad News: They also say "it will also not be supported with the final OS-update at launch".

Related

Debug App in Galaxy S5

I am building an Android app for my company, using Android Studio 1.5.1 . I've discovered that the app won't work on some Galaxy S5 phones.
These phones just show a white screen when the app runs.
This error happens on Galaxy S5 devices with Android version 5.1.1 But not on an Galaxy S5 Device running Android version 5.0
I'm focusing on the Android Version as a clue to solving this bug.
I can't actually get one of the devices so I've created several Virtual Devices. There are 6 Downloadable system images of Android 5.1.1 in Android Studio's Virtual Device Configuration wizard. I've installed all of them. none replicate this white screen error.
What else can I do to uncover this bug?
If it helps answer my question, my app relies heavily on server communication. The whole app is just one Webview with a few html & JS files.
The problem with emulators is that they are not reproducing actual device behaviour(especially, once many OEMs like Samsung tend to customise Android based on their needs), so I'm afraid the only options you have are:
Get Samsung Galaxy S5 with 5.1.1
Apart from obvious ideas "go to shop and buy", I can recommend you:
to take a look at Open Device Lab. It operates around the world and there's an arguably good chance to find the device you need there;
build a pool of alpha-beta users you can talk to and share new builds. Google Play has quite rich functionality in this area. Samsung S5 is quite common model, so it shouldn't be a problem to find people with it. If your product is "public", you can try to find beta-users on services like BetaBound or just among your social media network;
Use Analytics tools to collect more data from affected devices and act based on the information you get
There're dozens of different frameworks for accomplishing it. I can suggest Crittercism as a super powerful and comprehensive tool. In particular, I'd definitely log:
All handled exceptions
Add breadcrumbs (short string to capture app run-time information) to all Activity/Fragment lifecycle methods, to Application's methods (as white screen on start might mean some issues there), to all meaningful async tasks, etc.
If app gets into suspicion state - log it as a handled exception, so you can see the whole trail of breadcrumbs and track history of exceptions for the user. Unfortunately, you won't get trail of breadcrumbs, before something has been logged as an issue (crash or exception). There're frameworks, which log everything, like MixPanel, for example, but I honestly think that Crittercism suits much more here)
Crittercism will also catch & report all crashes happen in the app and
The Get Started Guide is here and it's pretty straightforward: http://docs.crittercism.com/android/android.html
Saying that, I'd suggest you to integrate some analytics anyway, as it'll help you in the future and to try to get affected phone in hands for test.
I guess the culprit is webview. Can you check the webview version on which the issue is reproducible.
To check the version you need to go to settings->Application Manager-> Downloaded Apps-> check "Android System Webview"version
We had a similar issue when the screen used to go blank and it used to happen only on particular version of webview. The issue was fixed by Google later.
The chromium webview layer is now updatable from Google Play.
For more details refer-http://developer.android.com/about/versions/lollipop.html#WebView
I assume you are building a hybrid app.
If the webview is the culprit, you could try crosswalk.
It adds Mb's to your app but it makes sure every device uses the same webview (latest chromium). Moreover rendering differences etc are also minimized.
if you are using cordova run: cordova plugin add cordova-plugin-crosswalk-webview and that's it.
If you implement this and the whitescreen problem is gone, you debugged it in a sherlock holmish deduction way...
The problem is not with emulator. It is with WebView in Android versions 5.1 onward.
Try
uninstalling the updates for "Android system webview" app (go to
settings and look for it under "downloaded") it works just fine!
Source - similar question

Can video autoplay on mobile devices

I had always heard this was a disabled feature on all mobile devices but I was corrected earlier today when I went to youtube.com from my android phone and lo and behold, it played on its own. Is this possible with jwplayer? Is it possible on any other player other than youtube?I've tried this in the past using all the built in features as well as some javascript workarounds such as clicking the play button when the page has loaded.
I understand bandwidth usage but what about streaming media sites that users KNOW they are about to watch a video.. after-all that's why they went to that site.
I never have seen that a video is opened automatically in mobiles or tablets.
I just tried myselft with youtube, and it does not play automatically if you use the web browser. However It does play automatically if you open the video with the youtube app.
Can you provide a link where this is happening? and the details of where are you testing this (browser, device,...) ?
Some Android devices may allow it to autostart. iPad may allow it. iPad does allow inline videos to play one at a time.

Android app demo recorder app?

This is not really a developer question but not sure where else to ask. I'm getting close to making a video tutorial for my android app. On windows I used something called "demobuilder" which is pretty cool, it records the screen as you demo your app (with voice over) and it produces a flash video.
I've been looking for something like that for android but haven't found anything that captures the screen to a video.
Can someone recommend an app that will help?
The alternative is pointing a webcam at my tablet which I think is a bit unprofessional.
I had the same problem sometime ago. Like Michael said, it is hard to capture at full frame rate from the Android (or the emulator).
I ended up using Screencast for android. However, what I would probably do now was getting something like Elgato. You connect the device trhough HDMI to that box and it allows you to record the HDMI output signal.
Another approach is to build your app for Android-x86, so that it'll run on your computer without emulation. At that point, your usual screen cast tools all work.

Android 2.2 App on Zoom1?

We are developing an application for android 2.2.We do not have a developer phone.Can we load android 2.2 image on Zoom 1 Arm platform?
Thanks,
Dheepak
I found a number of links that suggested that Android would work on the Zoom. Most information seems centered around http://omapzoom.org/, although I also found a mailing list post from someone who was able to successfully boot the device with Android, but was having media file playback issues.
Based on the cost of development boards, as well as the time it would take to build and load Android on them, I personally think it would make more sense and take less time to simply purchase a phone.
if its just for a final round of testing you can check websites like DeviceAnywhere .They offer you realtime testing on various devices on a trial account for free.

what audio formats are supported by the android browser?

What audio formats can be played using the html5 'audio' tag in the android browser? Does anyone know where to find official specs on what the android browser supports and not?
For the record, the android media formats page does not seem to cover this - I have soundfiles (3gp) playing fine in a native app, but they won't play in my webapp.
The webkit docs also do not seem to help. My soundfiles play fine in my webapp on iphone, so that version of webkit handles them fine. Shouldn't the android browser have some official documentation somewhere?
Probably there should be official documentation. If you want to test it, why not make a web page on some domain you have access to, with links to all of the different sound files you can think of, and point your browser at it.
After some testing, I've concluded that support for the HTML5 audio element is broken in Android 2.1. Details of my testing can be found on my blog. I tested on an HTC Desire running Android 2.1 and HTC Sense, whereas Amos confirmed the same error on his HTC Heor running a custom 2.1 ROM (thanks, Amos!). If anyone will try the testpage in different configurations and report back either here or on my blog, I will update with any new information.

Categories

Resources