Hello, In this tutorial we look into the MediaMetaDataRetriever class in android 10 sdk. We also work on figuring out what we need to create a GIF and run into a few problems with the video format.
So while working on my most recent Android project CrowdSource (expect more information about how to download it and what it is later) I decided to implement some tabbing stuff to make the user interface better to deal with. Following a few tutorials online (developer.android.com) and (Custom Android Tabs) I kept encountering a very annoying force close whenever I would select another tab other then my starting one.
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): FATAL EXCEPTION: main
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): java.lang.NullPointerException
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at android.widget.TabWidget.focusCurrentTab(TabWidget.java:367)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at android.widget.TabHost.setCurrentTab(TabHost.java:320)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:129)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:453)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at android.view.View.performClick(View.java:2408)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at android.view.View$PerformClick.run(View.java:8816)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at android.os.Handler.handleCallback(Handler.java:587)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at android.os.Handler.dispatchMessage(Handler.java:92)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at android.os.Looper.loop(Looper.java:123)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at android.app.ActivityThread.main(ActivityThread.java:4627)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at java.lang.reflect.Method.invokeNative(Native Method)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at java.lang.reflect.Method.invoke(Method.java:521)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
08-05 23:03:30.526: ERROR/AndroidRuntime(24650): at dalvik.system.NativeStart.main(Native Method)
After searching for a couple hours for a solution online I found none, and decided to create an entirely new tab project which used the most basic tabs (which of course worked). After adding more and more features a part at a time I found the culprit.
Which I had added after my lines that added TabSpecs to my TabHost. BIG MISTAKE! This ended up causing the crash and causing me many hours of pain. Hopefully if anyone else is experiencing this crash they will find my post and not have to search their code for an answer.
In this part of the series I create a preference activity and a couple of different preferences that we are going to need later. I also talk about the changes I made to JMF. Source code available here: code.google.com
In this part of the series I begin creating an options menu, grab a few good looking icons and create the .xml file so that I can have a settings activity to set many needed settings for my application.
In this part of the series I import outside .jar files into my project, more specifically the Java Media Framework. I then begin to work with the jmf in order to convert my videos to GIF format. Source code: http://code.google.com/p/videotogif/
In this tutorial I give a detailed discussion of the android activity lifecycle and a description of each part and its uses. More information can be found here: developer.android.com Download the source code here: www.quack-ware.com
In this tutorial I show you how to create properties for your C# class along with having indexers into the class. WEBSITE: www.Quack-Ware.com FREE CODE SNIPPETS http
Hello everyone and welcome to the new version of www.quack-ware.com
I decided to move from a custom made website to WordPress just so that I would be able to update my website with more ease and not have to worry about the content management side of the website. This way I should be able to get more tutorials to the readers of my website along with being able to post blog posts about what I am doing. I hope everyone enjoys the new look of the website and please provide feedback if you find something wrong to Quackware(at)gmail.com
Hello, In this video I show you how to open up the camera app using an intent and record a video which will then be saved to your phone. I also show you how to make a nice greeting for your user using an alertdialog. Source code: http://code.google.com/p/videotogif/