Results 1 to 3 of 3

Thread: Video youtube Mobile app with VB.net

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2025
    Posts
    2

    Post Video youtube Mobile app with VB.net

    Hi:

    I only program my own applications in VB.net. I don't use any main language than VB.net since 25 years
    I'm beginning to program for Android and I have seen this video in Youtube:

    https://www.youtube.com/watch?v=-e_zQM6Xsb0

    I ask if it's possible to develop a whole Android app. with this method.
    Firstly, I've added a button to Main activity with the code below and it works.:

    Protected Overrides Sub OnCreate(ByVal savedInstanceState As Bundle)
    MyBase.OnCreate(savedInstanceState)
    SetContentView(Resource.Layout.activity_main)

    Dim btn As Button = CType(FindViewById(Resource.Id.btnPruebas), Button)
    AddHandler btn.Click, AddressOf btn_Click

    End Sub

    In activity_main.xml I've added:

    <Button
    android:id="@+id/btnPruebas"
    android:layout_width="wrap_content"
    android:layout_marginTop="120dp"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:text="@string/txtBtn1"
    />

    But I'm trying to add a media addon like Naudio or mediaelement or mediaplayer because I want to play radio stream with the URLs of the links .mp3.
    Do you think that is it possible that some of these addons or nugget works in this environment?

    Thanks

  2. #2

    Thread Starter
    New Member
    Join Date
    Apr 2025
    Posts
    2

    Re: Video youtube Mobile app with VB.net

    Private Sub btn_Click()
    Dim txtPrueba As TextView = CType(FindViewById(Resource.Id.txt1), TextView)
    txtPrueba.Text = "¡¡¡ Pulsado !!!"

  3. #3
    New Member
    Join Date
    Dec 2024
    Posts
    15

    Re: Video youtube Mobile app with VB.net

    It looks like you’re off to a good start with the button click event. As for adding media functionality, it should be possible to use libraries like NAudio or MediaPlayer, but you might need to check their compatibility with your current setup.

    Make sure to look into any NuGet packages that can help with streaming audio in Android. If you run into any specific issues while trying to implement it, feel free to ask for help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width