Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [BETA RELEASE] PhoneME Advanced (Java Mobile)

    Reply
    Page 21 of 85 | Prev | 11   19     20   21   22     23   31 | Next | Last
    vi_ | # 201 | 2012-02-13, 13:17 | Report

    Just got it, geeze what a beater. Filled with photos of the previous owners kids (I hope) and porn. Digitiser is totally scratched to F. It is like looking through a frosted glass toilet window, however it is still useable.

    Full re-flash, CSSU stable, KP49, SSH, rootsh. I am soldering down the USB port now, also it is a HW. Rev 2101.



    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 22 Users Say Thank You to vi_ For This Useful Post:
    bipinbn, blackjack4it, DavyP, drucula, et3rnal, freemangordon, fw190, GrimyHR, iDont, Joseph9560, MaddogG, Maj3stic, Mentalist Traceur, mrsellout, mr_pingu, munozferna, neboja, nokiabot, pedsarjon, strange1712, vetsin, [DarkGUNMAN]

     
    santiago | # 202 | 2012-02-13, 19:22 | Report

    DavyP, i just edited something in the Makejadsh, by the way feel free to edit as u want.. Now it creates the Right shortcut, but i missed something about unzip $JAR "specific file and parameters that i miss.." -destination $MIDLET_NAME.png, then i left it like this and i used "java" icon in my path then..

    To invoke it, i moved it on /usr/bin/, ahh, one more thing, if i leave $PWD path, it searches for /home, then i inserted the complete path, assuming it like /home/phoneme/..


    this is the script, everything works fine for me

    Code:
    #!/bin/sh
    
    run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Welcome to MakeJadSHortcutter!"
    sleep 2
    JAR=$1
    if [ ! -f "${JAR}" ]; then
      run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"JAR file does not exist!" && sleep 3
      echo "Usage: makejadsh JAR file";
      exit 1
    fi
    
    JAD="${JAR%.*}.jad"
    if [ -f "${JAD}" ]; then
      echo -n "${JAD} already exists, overwrite the file? (Y/N) "
      read tmpans
      answer=$(echo "$tmpans" | tr '[:upper:]' '[:lower:]')
      if [ "$answer" != "y" ] && [ "$answer" != "Y" ]; then
        echo "Not overwriting ${JAD} file!"
      else
        rm -f "${JAD}"
      fi
    fi
    
    if [ ! -f "${JAD}" ]; then
      unzip -aa -j -p ${JAR} "META-INF/MANIFEST.MF" | sed -e '/^[ \t]*$/d' > "${JAD}"
      echo "MIDlet-Jar-URL: ${JAR}" >> "${JAD}"
      echo "MIDlet-Info-URL: http://" >> "${JAD}"
    
      FILESIZE=$(stat "${JAR}")
      echo "MIDlet-Jar-Size: ${FILESIZE}" >> "${JAD}"
    
      echo "${JAD} file created!"
      MIDLET_ICON=`grep "MIDlet-Icon: " $JAD  | sed "s/\MIDlet-Icon://g" | sed 's/\///g'`
      # more here
      
    fi
    
    SH="${JAR%.*}.sh"
    if [ -f "${SH}" ]; then
      echo -n "${SH} Already exists, overwrite the file? (Y/N) "
      read tmpans
      answer=$(echo "$tmpans" | tr '[:upper:]' '[:lower:]')
      if [ "$answer" != "y" ] && [ "$answer" != "Y" ]; then
        echo "Not overwriting ${SH} file!"
      else
        rm -f "${SH}"
      fi
    fi
    
    if [ ! -f "${SH}" ]; then
      MAINCLASS=`cat $JAD | grep 'MIDlet-1:' | cut -d ',' -f 3`
      READLINKJAR=`readlink -f $JAR`
      echo '#!/bin/sh' > $SH
      echo '' >> $SH
      echo '/home/user/phoneme/bin/cvm -Xmx12m -Dmicroedition.profiles=MIDP-2.1 -Dsun.midp.library.name=midp -Dsun.midp.home.path=/home/user/phoneme/midp/midp_linux_fb_gcc -Dcom.sun.midp.mainClass.name=com.sun.midp.main.CdcMIDletSuiteLoader sun.misc.MIDPLauncher -suitepath' $READLINKJAR '-jadpath' $JAD -1 $MAINCLASS >> $SH
      chmod a+x $SH
      echo "${SH} file created!"
      READLINK=`readlink -f $SH`
    #  MIDLET_ICON=`grep "MIDlet-Icon: " $JAD  | sed /MIDlet-Icon:/s///`
      MIDLET_NAME=`grep "MIDlet-Name: " $JAD  | sed /MIDlet-Name:/s///`
      MIDLET_VERSION=`grep "MIDlet-Version: " $JAD  | sed /MIDlet-Version:/s///` 
      echo -e "[Desktop Entry]
    Encoding=UTF-8
    Version=$MIDLET_VERSION
    Type=Application
    Name=$MIDLET_NAME
    Exec=.$READLINK
    X-Osso-Type=application/x-executable
    Terminal=true
    Icon=java" | sudo tee /usr/share/applications/hildon/"$MIDLET_NAME".desktop
      sleep 6
      run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Created! The $MIDLET_NAME shortcut is now on the Menu"
      echo "$MIDLET_NAME added as a .desktop shortcut"
      sleep 4 ; else
      run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Unable to create $MIDLET_NAME.desktop file, check the ownership and try again!"
      sleep 2
      echo "Unable to add $MIDLET_NAME added as a .desktop shortcut, check the ownership!"
    fi
    
    exit 0

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Images
     

    Last edited by santiago; 2012-02-13 at 20:18.
    The Following User Says Thank You to santiago For This Useful Post:
    pedsarjon

     
    DavyP | # 203 | 2012-02-13, 21:44 | Report

    Originally Posted by santiago View Post
    DavyP, i just edited something in the Makejadsh, by the way feel free to edit as u want..
    Nice, I was already exploring dbus and will definitely have a look
    at the changes in your script and include it my next build.

    The reason why I used the $PWD variable, is because I am not
    sure where people unpack this application. In my case with the
    emulator, it is in /home/developer/phoneme but on a real device
    this would be in /home/user/phoneme. I probably should have
    used some shell script tricks to figure out the location of the
    midlet scripts, but maybe these problems can be more easily
    solved if I would package the phoneME application in a deb file
    rather than in a tgz file you have to unpack manually.

    Cheers,
    Davy

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to DavyP For This Useful Post:
    Joseph9560, santiago

     
    santiago | # 204 | 2012-02-13, 22:35 | Report

    Originally Posted by DavyP View Post
    Nice, I was already exploring dbus and will definitely have a look
    at the changes in your script and include it my next build.

    The reason why I used the $PWD variable, is because I am not
    sure where people unpack this application. In my case with the
    emulator, it is in /home/developer/phoneme but on a real device
    this would be in /home/user/phoneme. I probably should have
    used some shell script tricks to figure out the location of the
    midlet scripts, but maybe these problems can be more easily
    solved if I would package the phoneME application in a deb file
    rather than in a tgz file you have to unpack manually.

    Cheers,
    Davy
    hey bro!
    is there a way to select some buttons? i add screenshots some games works! i'm trying The Wolfman, i add a screenshot of what i cannot push as a button event. By the way, the correct path for the phoneme, like standard optifyed apps is

    /opt/phoneme, i left /home/phoneme becouse your How-to say this, just to not complicate the things to the newbies that try to run it from a shel command

    i think is better to symlink the CVM binary and the gcc library like follow

    /usr/bin/cvm (full or symlinked to the opt)
    /usr/lib/libcvm.so (full or symlinked to the opt)

    i add a screenshot of what i cannot push..
    edit: just the Enter Button is mapped in phoneme?
    in this game i cannot use other keys just the Enter Button.. is it caused by the jsr implementation? by the way it's an amazing JVM!

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Images
      

    Last edited by santiago; 2012-02-13 at 22:44.
    The Following 2 Users Say Thank You to santiago For This Useful Post:
    bipinbn, pedsarjon

     
    DavyP | # 205 | 2012-02-14, 00:11 | Report

    Originally Posted by santiago View Post
    hey bro!
    is there a way to select some buttons? i add screenshots some games works! i'm trying The Wolfman, i add a screenshot of what i cannot push as a button event. By the way, the correct path for the phoneme, like standard optifyed apps is

    /opt/phoneme, i left /home/phoneme becouse your How-to say this, just to not complicate the things to the newbies that try to run it from a shel command

    i think is better to symlink the CVM binary and the gcc library like follow

    /usr/bin/cvm (full or symlinked to the opt)
    /usr/lib/libcvm.so (full or symlinked to the opt)

    i add a screenshot of what i cannot push..
    edit: just the Enter Button is mapped in phoneme?
    in this game i cannot use other keys just the Enter Button.. is it caused by the jsr implementation? by the way it's an amazing JVM!
    About the buttons: the left and right soft buttons are mapped onto
    Ctrl+Left and Ctrl+Right.

    However, I think this game like many others suffers from not
    having a keyboard layout like on a feature phone. At the moment,
    I am not having a lot of spare time to add an alternative
    keymapping, but it will be one of the features I will look into first.

    Davy

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to DavyP For This Useful Post:
    Joseph9560, pedsarjon, santiago

     
    santiago | # 206 | 2012-02-14, 00:55 | Report

    Originally Posted by DavyP View Post
    About the buttons: the left and right soft buttons are mapped onto
    Ctrl+Left and Ctrl+Right.

    However, I think this game like many others suffers from not
    having a keyboard layout like on a feature phone. At the moment,
    I am not having a lot of spare time to add an alternative
    keymapping, but it will be one of the features I will look into first.

    Davy
    one thing more,

    the midlet extract midi temporany files in the /tmp, will be nice and light to move the temp in /home/user/MyDocs/phoneme-cache/ becouse it has much more space and, with more maemo tools we can access directly to every temp single file on it (logs, midi, mp3, or more..)

    thx for you big work,

    Cristian

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to santiago For This Useful Post:
    pedsarjon

     
    munozferna | # 207 | 2012-02-14, 01:13 | Report

    Originally Posted by santiago View Post
    one thing more,

    the midlet extract midi temporany files in the /tmp, will be nice and light to move the temp in /home/user/MyDocs/phoneme-cache/ becouse it has much more space and, with more maemo tools we can access directly to every temp single file on it (logs, midi, mp3, or more..)

    thx for you big work,

    Cristian
    This recommendation also makes sense for n9, for unknown reasons the /tmp is just 4Mb on Harmattan.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to munozferna For This Useful Post:
    pedsarjon, santiago

     
    Joseph9560 | # 208 | 2012-02-14, 06:17 | Report

    Originally Posted by DavyP View Post
    1) not all jar files are midlets, so I would argue to only associate
    jad files to this app
    Davy
    Maybe having option to tick jar file (not checked/ticked by default) would be better then.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Joseph9560 For This Useful Post:
    pedsarjon

     
    Arthuro_Adam | # 209 | 2012-02-14, 07:11 | Report

    Last build works great on N9, download in Opera Mini also works. Double tap to zoom not working.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to Arthuro_Adam For This Useful Post:
    et3rnal, pedsarjon

     
    santiago | # 210 | 2012-02-14, 08:10 | Report

    Originally Posted by Joseph9560 View Post
    Maybe having option to tick jar file (not checked/ticked by default) would be better then.
    ? why do u want to tick / untick them?
    run the script for the midlet you want


    i go to sleep when i'll be ok, i'll add a string to remove the jar, jar, .desktop file of a game/app you want to remove

    zzz ZZZZ zzz ZZZz goodnight you all

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by santiago; 2012-02-14 at 08:14.
    The Following User Says Thank You to santiago For This Useful Post:
    pedsarjon

     
    Page 21 of 85 | Prev | 11   19     20   21   22     23   31 | Next | Last
vBulletin® Version 3.8.8
Normal Logout