Page 1 of 3 123 LastLast
Results 1 to 10 of 27
  1. #1
    Banned

    Badge

    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
         User Info     Contact     Gamer ID
    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
    Gamer IDs

    Gamertag: CandyCrusher PSN ID: CandyCrusher

    Contact info:

    Youtube Channel: http://www.youtube.com/

    Exclamation [Javascript] [Android] Codeleakers Music Player App

    Here is a simple app that I coded in javascript, it's just a music player. It currently is only for Android and only supports .mp3 music files. The tracks will only show if you create a folder called "Codeleakers" on your sd card and put them in it. You can slide the top green bar to control where you want the track to play at, and slide the bottom one for volume control.

    Code:

    Code:
    //AnappscriptedbyBMOviaIDE.
    functionOnStart()
    {
    lay=app.CreateLayout("Linear","FillXY,VCenter");
    lay.SetBackColor("#ffffffff");
    spin=app.CreateSpinner("Notracksfound.");
    spin.SetSize(0.8,-1);
    spin.SetOnTouch(spn_OnTouch);
    lay.AddChild(spin);
    btnPlay=app.CreateButton("Play",0.4,0.1);
    btnPlay.SetMargins(0,0.05,0,0);
    btnPlay.SetOnTouch(btnPlay_OnTouch);
    lay.AddChild(btnPlay);
    btnPause=app.CreateButton("Pause",0.4,0.1);
    btnPause.SetOnTouch(btnPause_OnTouch);
    lay.AddChild(btnPause);
    btnStop=app.CreateButton("Stop",0.4,0.1);
    btnStop.SetOnTouch(btnStop_OnTouch);
    lay.AddChild(btnStop);
    skb=app.CreateSeekBar(0.8,-1);
    skb.SetMargins(0,0.05,0,0);
    skb.SetRange(1.0);
    skb.SetOnTouch(skb_OnTouch);
    lay.AddChild(skb);
    skbVol=app.CreateSeekBar(0.8,-1);
    skbVol.SetMargins(0,0.05,0,0);
    skbVol.SetOnTouch(skbVol_OnTouch);
    skbVol.SetRange(1.0);
    skbVol.SetValue(0.5);
    lay.AddChild(skbVol);
    app.AddLayout(lay);
    track=app.CreateMediaPlayer();
    track.SetOnReady(track_OnReady);
    track.SetOnComplete(track_OnComplete);
    
    songList=app.ListFolder("/sdcard/Codeleakers",".mp3");
    spin.SetList(songList);
    track.SetFile("/sdcard/Codeleakers/"+spin.GetText());
    dur=null;
    setInterval("Update()",1000);
    }
    
    functiontrack_OnReady()
    {
    dur=track.GetDuration();
    app.ShowPopup("Ready");
    }
    
    functiontrack_OnComplete()
    {
    app.ShowPopup("SongFinished.");
    }
    
    functionspn_OnTouch(item)
    {
    track.SetFile("/sdcard/Codeleakers/"+item);
    }
    
    functionbtnPlay_OnTouch()
    {
    track.Play();
    app.ShowPopup("TrackPlaying.");
    app.Vibrate("0,100,30,100,50,300");
    txt=app.CreateText("Codeleakers");
    txt.SetTextSize(15);
    lay.AddChild(txt);
    txt=app.CreateText("Pleaseplaceyourmusicfilesinafoldertitled'Codeleakers'");
    txt.SetTextSize(10);
    lay.AddChild(txt);
    txt=app.CreateText("onyoursdcard.");
    txt.SetTextSize(10);
    lay.AddChild(txt);
    }
    
    functionbtnPause_OnTouch()
    {
    track.Pause();
    app.ShowPopup("TrackPaused.");
    app.Vibrate("0,100,30,100,50,300");
    }
    
    functionbtnStop_OnTouch()
    {
    track.Stop();
    app.ShowPopup("TrackStopped.");
    app.Vibrate("0,100,30,100,50,300");
    }
    
    functionskb_OnTouch(value)
    {
    track.SeekTo(dur*value);
    }
    
    functionUpdate()
    {
    prog=track.GetPosition();
    if(dur)skb.SetValue(prog/dur);
    }
    
    functionskbVol_OnTouch(value)
    {
    track.SetVolume(value,value);
    }
    Screenshot:


    -4 Not allowed! Not allowed!

  2. #2
    115 expert
    CoD Annihilator
    Element 115's Avatar

    Badge

    Join Date
    May 2012
    Location
    Excavation Site 64
    Posts
    2,270
    Points
    3,092
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    Excavation Site 64
    Posts
    2,270
    Points
    3,092
    Gamer IDs

    Gamertag: stevenator64 PSN ID: stevenator64 Wii Code: Cpt.Glitch

    Contact info:

    Youtube Channel: http://www.youtube.com/user/CaptianGlitch?feature=watch

    Default

    Where'd you learn Javascript? Also try making it for apple. Good job if it works.

    0 Not allowed! Not allowed!
    Quote Originally Posted by Kori
    torrents are gay. Free is where it's at.
    LMPT Creations

  3. #3
    Banned

    Badge

    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
         User Info     Contact     Gamer ID
    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
    Gamer IDs

    Gamertag: CandyCrusher PSN ID: CandyCrusher

    Contact info:

    Youtube Channel: http://www.youtube.com/

    Default

    Quote Originally Posted by Cpt.Hacks View Post
    Where'd you learn Javascript? Also try making it for apple. Good job if it works.
    Thanks. I learned javascript at school. Also, I will try.

    -1 Not allowed! Not allowed!

  4. #4
    115 expert
    CoD Annihilator
    Element 115's Avatar

    Badge

    Join Date
    May 2012
    Location
    Excavation Site 64
    Posts
    2,270
    Points
    3,092
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    Excavation Site 64
    Posts
    2,270
    Points
    3,092
    Gamer IDs

    Gamertag: stevenator64 PSN ID: stevenator64 Wii Code: Cpt.Glitch

    Contact info:

    Youtube Channel: http://www.youtube.com/user/CaptianGlitch?feature=watch

    Default

    Quote Originally Posted by B.M.O View Post
    Thanks. I learned javascript at school. Also, I will try.
    JavaScript at school? Da fuq? I had to teach it to myself.

    0 Not allowed! Not allowed!
    Quote Originally Posted by Kori
    torrents are gay. Free is where it's at.
    LMPT Creations

  5. #5

    Retired Prophet
    ToxicJew.'s Avatar
    Join Date
    Mar 2011
    Location
    S̢͎̳̞̲͈̪̳̻ͮͩt̟̳̏ͬ̔&#
    Posts
    7,782
    Points
    7,587
         User Info     Contact     Gamer ID
    Join Date
    Mar 2011
    Location
    S̢͎̳̞̲͈̪̳̻ͮͩt̟̳̏ͬ̔&#
    Posts
    7,782
    Points
    7,587

    Contact info:

    Youtube Channel: http://www.youtube.com/kennethbgoodin

    Default

    Code's a complete mess.

    Why not have it create the "Codeleakers" folder on its own, add functionality to grab music from various sources, etc. And what makes this a "codeleakers music app" ? The fact that you have to have it in a CL folder, and the tiny CL text? There isn't even a CL theme.

    Would you use this app? I'm guessing no, since it has almost no functionality, which begs the question; why release it?

    4 Not allowed! Not allowed!
    ส็็็็็็็็็็็็็็็็็็็็็็็็็༼ ຈل͜ຈ༽ส้้้้้้้้้้้้้้้้้้้้้้้ส็็็็็็็็็็็็็็็็็็็็ ็็็็็༼ ຈل͜ຈ༽ส้้้้้้้้้้้้้้้้้้้้้้้

  6. #6
    I agree. MatthewH's Avatar
    Join Date
    Jul 2011
    Location
    North Carolina
    Posts
    3,481
    Points
    15,810
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    North Carolina
    Posts
    3,481
    Points
    15,810

    Default

    Like Jew said. Code = mess. There's almost no functions. The user has to put it in a folder themselves? You should make an app with MINIMAL work for the user. All that you can code in, have the app make a folder. Pull music from the same directory the actual music player does.
    No list of songs?
    No fastforward or rewing?
    No time left on the song or anything of the sort?
    How is the user supposed to know which slider does which? (it's obvious yes, but without some sort of time on the music slider there's no way to tell)
    No theme/skin for it?
    No playlist?
    No downloader (at least)?
    These are features you should include before releasing anything. I would call this v0.0.0.0.1 Alpha if I were to call it anything.

    0 Not allowed! Not allowed!


  7. #7
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    as said above this is a rushed mess, you gotta put more time and effort, and bring something intresting to the table

    0 Not allowed! Not allowed!

  8. #8
    Elite Slowduck's Avatar
    Join Date
    Jun 2011
    Location
    All the places
    Posts
    10,204
    Points
    9,472
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    All the places
    Posts
    10,204
    Points
    9,472

    Default

    Quality > Quantity

    0 Not allowed! Not allowed!


  9. #9
    Android King mattking45's Avatar
    Join Date
    Jul 2012
    Location
    Tripping
    Posts
    1,197
    Points
    1,795
         User Info     Contact     Gamer ID
    Join Date
    Jul 2012
    Location
    Tripping
    Posts
    1,197
    Points
    1,795
    Gamer IDs

    PSN ID: mguy82 Steam ID: mattking45

    Default

    So simple... And I don't think apple will put it in their app store cause they are so strict.... Such a simple app, it would be cool if you could put in a bass booster

    0 Not allowed! Not allowed!
    Awesome signature made by Seal Ricky

  10. #10
    Active Member ParadoxContra's Avatar

    Badge

    Join Date
    Nov 2012
    Location
    Texas Bitch!!!
    Posts
    826
    Points
    1,347
         User Info     Contact     Gamer ID
    Join Date
    Nov 2012
    Location
    Texas Bitch!!!
    Posts
    826
    Points
    1,347
    Gamer IDs

    PSN ID: NovaGfx

    Default

    apple apps are coded in java or obj-c but i could be wrong. If you were to code it for apple, the interface would look more neat and i'm sure you'd figure out how to add functions to it.

    0 Not allowed! Not allowed!
    Quote Originally Posted by T.B.W View Post
    good job nigga

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 09:09 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.