ArcadEd's Forum Posts

  • Exciting!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If I have the time in the next week I could easily write a gui based solution in .net that simplifies the process.

  • I just used windows command prompt from the droid sdk tools directory.

    I will try to dumb it down a bit. I was waiting to see what Lorin was going to pull out in the next day or so. He said he was going to work on a windows script and a jar to just include in eclipse.

  • Awesome. Thank you.

    Now use Construct 2 users just need to work through how to get our html5 project running using pender.

    I'm a bit confused on this part. If I already have an entire project done in eclipse with phonegap, is that when I implement pender, or is it something that need to be done prior to creating the project in eclipse?

    I guess that is my confusion now. I'll keep playing :).

  • 1. A unique thing about Pender is that it supports a DOM-less javascript environment. No html or css. So all render code has to go in it's own file

    1.A the Pender-Cordova Plugin allows crosstalk between the Pender runtime and Cordova

    1.B you may need to refactor your code slightly so all the canvas calls are in their own file, you can then send javascript messages to the renderer javascript from the cordova javascript

    1.C check out the Pender.java file, that's the main entrypoint for the framework. You'll see in the constructor that it refences assets to load into the javascript framework

    1.D check out assets/client/penderdemo.js to see the implementation of the demo. Note that all of the texture map image processing takes place on the javascript side, just like it would in a desktop html5 project. Note that this does not preclude Pender from providing helper functions in the future, which would be optimized and natively implemented

    2. yessir! I wrote a Canvas Renderer for iOS, and I need to tie it in with the iOS Pender proof of concept here

    https://github.com/lorinbeer/Pender-iOS-POC

    3. no, you da man! Thanks for sticking it out!

    Ashley

    Have any thoughts on what LorinBeer mentioned just above? A lot of that is currently greek to me, but I'm willing to learn greek if I need too. Just thought it might make sense to you :).

  • delete

  • No, I see them when it runs. I was testing through eclipse. I did a build, gonna test again on my thunderbolt then on my nexus 7

    Looks fine on my nexus 7

  • I'm testing on a HTC Thunderbolt running 2.3.4

    I have these white bars, normal?

    <img src="http://www.edfarias.com/pentest.jpg" border="0" />

  • Now the big next question or 2 :).

    1. What do I do to include my HTML5 project? In the past I would build the app with eclipse and phonegap. Creating a www directory under assests and including all my html5 files, phonegap.js and referencing phonegap.js in the index.html

    2. Are you working on IOS support as well?

    3. You the man

  • I GOT IT!!

    This part. I had to change the PenderActivity to match the name of my project. In my other attempt I let eclipse fix it for me without reading :).

    import android.app.Activity;

    import android.os.Bundle;

    import com.pender.Pender;

    public class PenderActivity extends Activity

    {

        /** Called when the activity is first created. */

        cne@Override

        public void onCreate(Bundle savedInstanceState)

        {

            super.onCreate(savedInstanceState);

            mPender = new Pender(this);

            mPender.init();

        }

        private Pender mPender;    

    }

  • sure, same link as before

    http://www.edfarias.com/arcaded.zip

  • I/PackageManager( 1638): setEnabledSetting(), pkgName=com.tunewiki.lyricplayer.

    android, clsName=com.tunewiki.lyricplayer.android.common.NotificationsAlarmManag

    er$BootAndMediaMountReceiver, state=1, flag=1, pid=29328, uid=10041

    D/DEBUG   ( 1813): updateCellLayoutCache(3.5555556, 3.5607476)

    D/PowerManagerService( 1638): New lightsensor value:160, lcdValue:94

    D/PowerManagerService( 1638): lightSensorChangedLocked, buttonValue >= 0, mPower

    State = 3

    I/Process (29309): Sending signal. PID: 29309 SIG: 9

    D/InputManagerService( 1638): Window already focused, ignoring focus gain of: co

    m.android.internal.view.IInputMethodClient$Stub$Proxywfg@40d05048

    I/ActivityManager( 1638): Process com.arcaded (pid 29309) has died.

    D/PeopleApp( 2189): Auto requerying AllPeopleCursor due to update - 25 contacts

    D/dalvikvm( 7591): GC_EXPLICIT freed 14K, 39% free 4658K/7623K, external 1K/751K

    , paused 64ms

    D/Background traffic light( 1813): traffic light: GREEN, mBackgroundTrafficLight

    = false

    D/AutoSetting( 1914): service - mRequestRunnable: screen on delay 10s, request N

    LP now

    D/AutoSetting( 1914): service - requestNLP() to last request within 2hrs, don't

    request 250019

    V/HtcAppUsageStats( 1638): handleMessage msg=1

    I/ActivityManager( 1638): Starting activity: Intent { act=android.intent.action.

    MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.arcaded/.arca

    ded } from pid 1813

    V/HtcAppUsageStats( 1638): (launch app, package): (arcaded, com.arcaded)

    D/PhoneWindow( 1813): couldn't save which view has focus because the focused vie

    w com.android.internal.policy.impl.PhoneWindow$DecorViewnnc@40568e28 has no id.

    D/Background traffic light( 1813): traffic light: GREEN, mBackgroundTrafficLight

    = true

    I/ActivityManager( 1638): Start proc com.arcaded for activity com.arcaded/.arcad

    ed: pid=29336 uid=10130 gids={}

    D/SensorService( 1638): enable: get sensor name = BMA150 3-axis Accelerometer

    D/Sensors ( 1638): Enable akm: en = 1

    D/SensorService( 1638): pid=1638, uid=1000

    D/AK8975 ( 1525): Compass Start

    D/AK8975 ( 1525): Ignore M_Sensor: (y, p, r) = ( 133,   -3,    0), Status = 3

    D/AndroidRuntime(29336): Shutting down VM

    W/dalvikvm(29336): threadid=1: thread exiting with uncaught exception (group=0x4

    001d5a0)

    E/AndroidRuntime(29336): FATAL EXCEPTION: main

    E/AndroidRuntime(29336): java.lang.RuntimeException: Unable to instantiate activ

    ity ComponentInfo{com.arcaded/com.arcaded.arcaded}: java.lang.ClassNotFoundExcep

    tion: com.arcaded.arcaded in loader dalvik.system.PathClassLoader[/data/app/com. arcaded-1.apk]

    E/AndroidRuntime(29336):        at android.app.ActivityThread.performLaunchActiv

    ity(ActivityThread.java:1743)

    E/AndroidRuntime(29336):        at android.app.ActivityThread.handleLaunchActivi

    ty(ActivityThread.java:1851)

    E/AndroidRuntime(29336):        at android.app.ActivityThread.access$1500(Activi

    tyThread.java:132)

    E/AndroidRuntime(29336):        at android.app.ActivityThread$H.handleMessage(Ac

    tivityThread.java:1038)

    E/AndroidRuntime(29336):        at android.os.Handler.dispatchMessage(Handler.ja

    va:99)

    E/AndroidRuntime(29336):        at android.os.Looper.loop(Looper.java:150)

    E/AndroidRuntime(29336):        at android.app.ActivityThread.main(ActivityThrea

    d.java:4293)

    E/AndroidRuntime(29336):        at java.lang.reflect.Method.invokeNative(Native

    Method)

    E/AndroidRuntime(29336):        at java.lang.reflect.Method.invoke(Method.java:5

    07)

    E/AndroidRuntime(29336):        at com.android.internal.os.ZygoteInit$MethodAndA

    rgsCaller.run(ZygoteInit.java:839)

    E/AndroidRuntime(29336):        at com.android.internal.os.ZygoteInit.main(Zygot

    eInit.java:597)

    E/AndroidRuntime(29336):        at dalvik.system.NativeStart.main(Native Method)

    E/AndroidRuntime(29336): Caused by: java.lang.ClassNotFoundException: com.arcade

    d.arcaded in loader dalvik.system.PathClassLoader[/data/app/com.arcaded-1.apk]

    E/AndroidRuntime(29336):        at dalvik.system.PathClassLoader.findClass(PathC

    lassLoader.java:240)

    E/AndroidRuntime(29336):        at java.lang.ClassLoader.loadClass(ClassLoader.j

    ava:551)

    E/AndroidRuntime(29336):        at java.lang.ClassLoader.loadClass(ClassLoader.j

    ava:511)

    E/AndroidRuntime(29336):        at android.app.Instrumentation.newActivity(Instr

    umentation.java:1040)

    E/AndroidRuntime(29336):        at android.app.ActivityThread.performLaunchActiv

    ity(ActivityThread.java:1735)

    E/AndroidRuntime(29336):        ... 11 more

    W/ActivityManager( 1638):   Force finishing activity com.arcaded/.arcaded

    W/dalvikvm( 1813): disableGcForExternalAlloc: false

    W/System.err( 7676): java.io.IOException: Permission denied

    W/System.err( 7676):    at java.io.File.createNewFileImpl(Native Method)

    W/System.err( 7676):    at java.io.File.createNewFile(File.java:1257)

    W/System.err( 7676):    at com.idreamsky.lib.g.k.a(SourceFile:254)

    W/System.err( 7676):    at com.idreamsky.gamecenter.service.a.a(SourceFile:102)

    W/System.err( 7676):    at com.idreamsky.gamecenter.service.a.b(SourceFile:78)

    W/System.err( 7676):    at com.idreamsky.gamecenter.service.c.handleMessage(Sour

    ceFile:328)

    W/System.err( 7676):    at android.os.Handler.dispatchMessage(Handler.java:99)

    W/System.err( 7676):    at android.os.Looper.loop(Looper.java:150)

    W/System.err( 7676):    at android.os.HandlerThread.run(HandlerThread.java:60)

    W/System.err( 7676):    at com.idreamsky.gamecenter.service.a.run(SourceFile:173

    )

    W/ActivityManager( 1638): Activity pause timeout for HistoryRecord{4057ffa0 com.

    arcaded/.arcaded}

    D/SensorService( 1638): disable: get sensor name = BMA150 3-axis Accelerometer

    D/Sensors ( 1638): Enable akm: en = 0

    D/SensorService( 1638): pid=1638, uid=1000

    I/CarouselTimeLog( 1813): onStart() finish: 1363791660737

    D/CarouselDummyActivity( 1813): CarouselDummyActivity.onResume: tab_allapps

    D/Background traffic light( 1813): traffic light: RED, mBackgroundTrafficLight =

    true

    D/William ( 1813): - refreshUsageStatCache -

    D/AK8975 ( 1525): Compass CLOSE

    If that helps. I might try the whole process from start to finish again today just making sure I don't miss anything.

  • both are in the root of my z drive.

    I did android update project --path z:\arcaded --library z:\PenderAndroidLibrary

    so instead I should do it as:

    android update project --path z:\arcaded --library ../PenderAndroidLibrary

    ??

    OK, I got it to build.

    I just get a FORCE CLOSE on droid device. :)

  • Tomorrow I can for sure, now I gotta be up in 5 hours, so it's sleep time. My skype is ArcadEd

    I zipped up the 2 folders in case they help.

    edfarias.com/arcaded.zip

    Thanks again.

    If you want to post what to try go for it, I can try it first thing tomorrow.

  • OK, did all that plus a clean. Same as the picture above

    And thank you so much for your help. I probably gotta get to sleep pretty quick. From work tomorrow I will try all the steps again and see if i missed something somewhere.

    Plus I am sure Wink will be jumping on tomorrow to try it as well.