This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!

Tony fig

Ranch Hand
+ Follow
since Apr 09, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tony fig

I have put videoview code in a separate xml and i'm trying to load a video but it keeps crashing on me. can someone tell what im doing wrong.

Here is my code

in  acitivity_main i have



and in my video_layout i have
5 days ago
I want to load over 200 images in gridview can I do that with imageview?


1 week ago
I want to display a image in grid view side ways going down vertically. how can i do that?
1 week ago
I have the promissionn for read and write in the menifiest and also the internet promissions
2 months ago
I have tried all the example on the net and I still cant get videoview to play a video here is my code and the err im getting.

D/dalvikvm: VFY: replacing opcode 0x6e at 0x01ac
I/dalvikvm: Could not find method android.text.StaticLayout$Builder.obtain, referenced from method android.support.v7.widget.AppCompatTextViewAutoSizeHelper.createStaticLayoutForMeasuring
W/dalvikvm: VFY: unable to resolve static method 13546: Landroid/text/StaticLayout$Builder;.obtain (Ljava/lang/CharSequence;IILandroid/text/TextPaint;I)Landroid/text/StaticLayout$Builder;
D/dalvikvm: VFY: replacing opcode 0x71 at 0x0014
D/dalvikvm: GC_FOR_ALLOC freed 312K, 13% free 3045K/3476K, paused 11ms, total 11ms
D/libEGL: loaded /system/lib/egl/libEGL_emulation.so
         loaded /system/lib/egl/libGLESv1_CM_emulation.so
         loaded /system/lib/egl/libGLESv2_emulation.so
D/: HostConnection::get() New Host Connection established 0xb7cb1098, tid 3009
W/: Unrecognized GLES max version string in extensions:
   Process pipe failed
D/EGL_emulation: eglCreateContext: 0xb7cb5678: maj 2 min 0 rcv 2
E/EGL_emulation: tid 3009: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)
W/HardwareRenderer: Backbuffer cannot be preserved
E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from GradienCache
                 MAX_TEXTURE_SIZE: 16384
E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
                 MAX_TEXTURE_SIZE: 16384
D/OpenGLRenderer: Enabling debug mode 0
D/dalvikvm: GC_FOR_ALLOC freed 49K, 10% free 3205K/3556K, paused 6ms, total 6ms
W/MediaPlayer-JNI: MediaPlayer finalized without being released
D/dalvikvm: GC_FOR_ALLOC freed 4K, 10% free 3353K/3708K, paused 4ms, total 4ms

I/dalvikvm: Could not find method android.widget.Button.setAutoSizeTextTypeUniformWithConfiguration, referenced from method android.support.v7.widget.AppCompatButton.setAutoSizeTextTypeUniformWithConfiguration
W/dalvikvm: VFY: unable to resolve virtual method 14719: Landroid/widget/Button;.setAutoSizeTextTypeUniformWithConfiguration (IIII)V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm: Could not find method android.widget.Button.setAutoSizeTextTypeUniformWithPresetSizes, referenced from method android.support.v7.widget.AppCompatButton.setAutoSizeTextTypeUniformWithPresetSizes
W/dalvikvm: VFY: unable to resolve virtual method 14720: Landroid/widget/Button;.setAutoSizeTextTypeUniformWithPresetSizes ([II)V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0004
I/dalvikvm: Could not find method android.widget.Button.setAutoSizeTextTypeWithDefaults, referenced from method android.support.v7.widget.AppCompatButton.setAutoSizeTextTypeWithDefaults
W/dalvikvm: VFY: unable to resolve virtual method 14721: Landroid/widget/Button;.setAutoSizeTextTypeWithDefaults (I)V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0004
E/EGL_emulation: tid 3126: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)
W/HardwareRenderer: Backbuffer cannot be preserved


2 months ago
The link that i have in the code works fine on vlc but when i'm streaming it in android it wont work. i get mediaplayer created failed. here is the err im getting, can you tell me if there is a way to get it to work on android?


heres my code




D/MediaPlayer: create failed:
              java.io.IOException: Prepare failed.: status=0x1
                  at android.media.MediaPlayer.prepare(Native Method)
                  at android.media.MediaPlayer.create(MediaPlayer.java:792)
                  at android.media.MediaPlayer.create(MediaPlayer.java:769)
                  at com.personalcoach101.download.MainActivity.onCreate(MainActivity.java:47)
                  at android.app.Activity.performCreate(Activity.java:5104)
                  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
                  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
                  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
                  at android.app.ActivityThread.access$600(ActivityThread.java:141)
                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
                  at android.os.Handler.dispatchMessage(Handler.java:99)
                  at android.os.Looper.loop(Looper.java:137)
                  at android.app.ActivityThread.main(ActivityThread.java:5041)
                  at java.lang.reflect.Method.invokeNative(Native Method)
                  at java.lang.reflect.Method.invoke(Method.java:511)
                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
                  at dalvik.system.NativeStart.main(Native Method)
E/MediaPlayer: Error (-38,0)
D/libEGL: loaded /system/lib/egl/libEGL_genymotion.so
D/: HostConnection::get() New Host Connection established 0xb8d3e220, tid 6260
D/libEGL: loaded /system/lib/egl/libGLESv1_CM_genymotion.so
         loaded /system/lib/egl/libGLESv2_genymotion.so
W/EGL_genymotion: eglSurfaceAttrib not implemented
D/OpenGLRenderer: Enabling debug mode 0


7 months ago
here is what i did to find out if its a http or icy  

7 months ago
I cant get anything from getheaderFeild() the only thing a get is null
7 months ago
I wanted it in a if statement?
7 months ago
How do i check a " URLConnection " connection to see if its a icy or http connection for streaming?

7 months ago
I just ran this code and it wont do anything. why wont it download



7 months ago
what about if used       new DownloadTest();   Wouldn't that start the download?
7 months ago
I guess both, the class and commend line?




7 months ago
How do i start a download using this code with a class

7 months ago