Android Example Share My Experience With B4A-Full Source "Youtube Download"

p/s: i have uploaded patch file audio.xml

you must replace this file to your core library folder
(Exam: C:\Program Files (x86)\Anywhere Software\Basic4android\Libraries)

Thank @Erel and many people here

Sorry for my bad English first ^^

I am a civil engineer but like programing from VB6.0
When i use smartphone (since Iphone 2G -2008) i think i will code for my phone

I have bought account apple developer (99$) but Object-C is very difficult with me who only can code in VB 6.0. I have coded only one app ipa (written by NSBasic)

After that, i use SamSung Galaxy Note 2 with S-pen(I like it very much)

I searched a programe language (ex: Phonegap, NSbasic,...) but when i use B4A, i like it very much


Because i wrote in VB6 so, with many library and special @Erel - best admin i have seen <3 love you very much lolll loll :)))

I have write many many apps with B4A, so i have some Experience want to share and happy new year to B4A forum who begin and are using B4A

Sorry for long speech ^^ but i want to share some ^^

With example, you can learn about:

- How to use library and understand why we must use them:

Animation,Audio,Clipboard,CustomYoutubeFeed,HTTP,HTTP2,ID,IME,JSON,Phone,RandomAccessFile,Refection,StringUltils,Youtube,WebviewExtra,YoutubeStreamFinder.

Specical, i have include my library for Startapp Ads to make money with Android (StartApp Banner, Searchbox, and PostCallManager)

You can learn how to skin your app (make same windows app with class Windows and Tabhost)
view image to see more

MainActivity:
JPwFYMe.png


Tab2:

St7xAWL.png


Search Result:

PYdgNcu.png


Action Menu (Learn About Menu when click to webview)-good:

BPMDQ3I.png


Youtube Application:

kvZqFM3.png


Use HTTP Util to convert to mp3

m76gBoS.png


Use HTTP Util to convert to Video , learn very much about many thing:

vt68I8W.png


Code and library on the right
MuXt9Hs.png


Full Library i use i include here
IWfwbZI.png


Beacause 512KB limit upload, i must upload library Ads StartApp Postcallmanager (1.5MB) my driver google accout:

https://drive.google.com/file/d/0B82R8NeqQAaVdnJaUzlHaEFoeGM/edit?usp=sharing


Thank you very much and happy new year 2014
 

Attachments

  • youtubedownload-tob4a.zip
    239.2 KB · Views: 1,198
  • Full-Liibrary.zip
    503.5 KB · Views: 1,494
  • Audio.zip
    4.8 KB · Views: 706
Last edited:

pappicio

Active Member
Licensed User
Longtime User
thank you, for all, but above of all, for sharing startapp library for FREE!!!!! thanks a lot!!!!!!!!!!!!!!!!!
 

Douglas Farias

Expert
Licensed User
Longtime User
Parsing code. 0.11
Compiling code. Error
Error compiling program.
Error description: Unknown member: setposition
Occurred on line: 73
MediaPlayer1.setPosition(Value / 100 * MediaPlayer1.Duration)
Word: setposition

why this error i m using all libs *-*
 

metrick

Active Member
Licensed User
Longtime User
got following error when compile.
Convert byte code - optimized dex Error
A reference library is missing: youtubeandroidplayerapi.
I have copied all the library to library folder and all libraries are checked as in first post list.
 

apty

Active Member
Licensed User
Longtime User
Hi Erel,
How do we replace the code
B4X:
MediaPlayer1.setPosition(Value / 100 * MediaPlayer1.Duration)
since Position property was removed as you have indicated?
 

tuhatinhvn

Active Member
Licensed User
Longtime User
p/s: i have uploaded patch file audio.xml

you must replace this file to your core library folder
(Exam: C:\Program Files (x86)\Anywhere Software\Basic4android\Libraries)

p/s: this function is invisible because android <2.+ can not use this function, but google fixed now , i only add it to xml file , and it works perfect (you can seek to position which has buffered- exam: buffering 70%-> you can seek from 0-70 ^^)
 

AlfredJr

Member
Licensed User
Longtime User
Parsing code. 0.29
Compiling code. 0.49
Compiling layouts code. 0.03
Generating R file. 0.14
Compiling generated Java code. 4.95
Convert byte code - optimized dex. Error
A referenced library is missing: net

what is library "net"?
 

ibra939

Active Member
Licensed User
Longtime User
wonderful tube to add youtube searching and download ……no bady do example for downloading file ……thanks bro
 

carlosgg

New Member
Licensed User
Hello.
I'm looking for test this.
is this code running ok?
Can anyone tell me where to find the id.jar and id.xml? wich library?
Is the audio.zip needed and where can i find it?
thanks and regards
 
Top