<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://love2d.org/forums/feed.php?f=11" />

<title>LÖVE</title>
<link href="https://love2d.org/forums/index.php" />
<updated>2012-11-18T22:18:23+00:00</updated>

<author><name><![CDATA[LÖVE]]></name></author>
<id>https://love2d.org/forums/feed.php?f=11</id>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-18T22:18:23+00:00</updated>
<published>2012-11-18T22:18:23+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11765&amp;p=70645#p70645</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11765&amp;p=70645#p70645"/>
<title type="html"><![CDATA[LÖVE-Android • Re: (NDK) I think I need some help...]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11765&amp;p=70645#p70645"><![CDATA[
you can test with my libs if you want:<br /><br /><a href="http://gjteam.com.br/libsLove.zip" class="postlink">http://gjteam.com.br/libsLove.zip</a><br /><br />put them inside <span style="font-weight: bold">love-native-android\libs\armeabi</span><br /><br />hope it helps<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Sun Nov 18, 2012 10:18 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-18T22:15:23+00:00</updated>
<published>2012-11-18T22:15:23+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11765&amp;p=70643#p70643</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11765&amp;p=70643#p70643"/>
<title type="html"><![CDATA[LÖVE-Android • Re: (NDK) I think I need some help...]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11765&amp;p=70643#p70643"><![CDATA[
hi man, maybe you are confusing android SDK with NDK =), download android NDK R8 (r8 not r8b, i havent tested with r8c) and compile with it! its a bug with r8b that needs investigation.<br /><br />if you want you can download older versions of the android SDK, but you <span style="font-weight: bold">should</span> be fine with only the latest . but a change is required to project.properties to update lke this:<br /><br /><span style="font-weight: bold">target=android-15</span><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Sun Nov 18, 2012 10:15 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[utunnels]]></name></author>
<updated>2012-11-18T15:57:50+00:00</updated>
<published>2012-11-18T15:57:50+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11765&amp;p=70617#p70617</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11765&amp;p=70617#p70617"/>
<title type="html"><![CDATA[LÖVE-Android • (NDK) I think I need some help...]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11765&amp;p=70617#p70617"><![CDATA[
I got it compiled, somehow (except I was not using eclipse).<br />However, when I tried to run it (either no-game screen or .love), it crashed.  <img src="https://love2d.org/forums/images/smilies/ms-ehem.png" alt=":ehem:" title="Ehem ..." /> <br /><br /><br />Part of the logcat message:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>E/Adreno200-ES20( 3582): &lt;qgl2DrvAPI_glUseProgram:1318&gt;: **** 3582: glUseProgram(3)<br /><br />E/Adreno200-ES20( 3582): &lt;qgl2DrvAPI_glUseProgram:1318&gt;: **** 3582: glUseProgram(6)<br /><br />D/memalloc(  128): /dev/pmem: Allocated buffer base:0x419c8000 size:1536000 offset:7905280 fd:33<br /><br />D/memalloc( 3582): /dev/pmem: Mapped buffer base:0x522dc000 size:9441280 offset:7905280 fd:57<br /><br />I/ActivityManager(  374): START {cmp=net.schattenkind.nativelove/.LoveNative} from pid 3582<br /><br />W/SignalStrength(  554): SignalStrength before validate=SignalStrength: 20 0 -1 -1 -1 -1 -1 99 -32767 -32767 -32767 -32767 cdma<br /><br />W/SignalStrength(  554): SignalStrength after validate=SignalStrength: 20 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 cdma<br /><br />I/WindowManager(  374): SCREENLAYOUT_SIZE (1:small, 2:normal, 3:large, 4:xlarge) 2<br /><br />E/Adreno200-ES20( 3582): &lt;qgl2DrvAPI_glUseProgram:1318&gt;: **** 3582: glUseProgram(3)<br /><br />E/Adreno200-ES20( 3582): &lt;qgl2DrvAPI_glUseProgram:1318&gt;: **** 3582: glUseProgram(6)<br /><br />W/dalvikvm( 3582): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lnet/schattenkind/nativelove/LoveJNI;<br /><br />W/dalvikvm( 3582): threadid=1: thread exiting with uncaught exception (group=0x40dcd1f8)<br /><br />E/AndroidRuntime( 3582): FATAL EXCEPTION: main<br /><br />E/AndroidRuntime( 3582): java.lang.ExceptionInInitializerError<br /><br />E/AndroidRuntime( 3582):    at net.schattenkind.nativelove.LoveNative.onCreate(LoveNative.java:54)<br /><br />E/AndroidRuntime( 3582):    at android.app.Activity.performCreate(Activity.java:4519)<br /><br />E/AndroidRuntime( 3582):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)<br /><br />E/AndroidRuntime( 3582):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)<br /><br />E/AndroidRuntime( 3582):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)<br /><br />E/AndroidRuntime( 3582):    at android.app.ActivityThread.access$600(ActivityThread.java:123)<br /><br />E/AndroidRuntime( 3582):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)<br /><br />E/AndroidRuntime( 3582):    at android.os.Handler.dispatchMessage(Handler.java:99)<br /><br />E/AndroidRuntime( 3582):    at android.os.Looper.loop(Looper.java:137)<br /><br />E/AndroidRuntime( 3582):    at android.app.ActivityThread.main(ActivityThread.java:4464)<br /><br />E/AndroidRuntime( 3582):    at java.lang.reflect.Method.invokeNative(Native Method)<br /><br />E/AndroidRuntime( 3582):    at java.lang.reflect.Method.invoke(Method.java:511)<br /><br />E/AndroidRuntime( 3582):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:822)<br /><br />E/AndroidRuntime( 3582):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:589)<br /><br />E/AndroidRuntime( 3582):    at dalvik.system.NativeStart.main(Native Method)<br /><br />E/AndroidRuntime( 3582): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library&#91;1285&#93;:   129 cannot locate '__gnu_thumb1_case_uhi'...<br /><br />E/AndroidRuntime( 3582): <br /><br />E/AndroidRuntime( 3582):    at java.lang.Runtime.loadLibrary(Runtime.java:370)<br /><br />E/AndroidRuntime( 3582):    at java.lang.System.loadLibrary(System.java:535)<br /><br />E/AndroidRuntime( 3582):    at net.schattenkind.nativelove.LoveJNI.&lt;clinit&gt;(LoveJNI.java:16)<br /><br />E/AndroidRuntime( 3582):    ... 15 more<br /><br />W/ActivityManager(  374):   Force finishing activity net.schattenkind.nativelove/.LoveNative<br /><br />W/ActivityManager(  374):   Force finishing activity net.schattenkind.nativelove/.LoveLauncher</code></dd></dl><br /><br />I have API 15 installed (though the NDK has only up to 14).<br />So do I still need to insatll API 8 as it was mentioned in that building topic? <!-- l --><a class="postlink-local" href="https://love2d.org/forums/viewtopic.php?f=11&amp;t=8415">viewtopic.php?f=11&amp;t=8415</a><!-- l --><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=21418">utunnels</a> — Sun Nov 18, 2012 3:57 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-15T17:41:06+00:00</updated>
<published>2012-11-15T17:41:06+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70395#p70395</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70395#p70395"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70395#p70395"><![CDATA[
well i got a lot of errors trying to compile , but most of them is because eclipse was just being plain dumb..<br /><br />first you might want to get ride of the ndk-builder(if you already have the native libs thats it, inside libs folder), right click on the project then go to the builders option, and remove ndk-build.<br /><br />delete folders bin and gen - these are dynamically created, then choose Prokect-&gt;clean then, &quot;refresh&quot; the project [right-&gt;click refresh]<br /><br />if the error still persists, close and open the project. <br /><br />yuo might want check what android ndk version  you have, i only had the newer so i changed local.properties file (root directory) to android=15. If you download full sdk you wont have any problems..<br /><br />If there are still errors, check problems tab, and copy paste them here.<br /><br />[]'s<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Thu Nov 15, 2012 5:41 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Petunien]]></name></author>
<updated>2012-11-15T16:13:38+00:00</updated>
<published>2012-11-15T16:13:38+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70387#p70387</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70387#p70387"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70387#p70387"><![CDATA[
Here are the steps I've done:<br /><br />1) Import love-native-android-master into Eclipse Juno.<br />2) Fix the &quot;Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead.&quot;-error.<br />3) Inserted my game, modified LoveNative.java and AndroidManifest.xml.<br />4) Now, on building, I get only &quot;Errors during build&quot;, no more information.<br /><br />Did I forget something, what was wrong?<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=28519">Petunien</a> — Thu Nov 15, 2012 4:13 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-15T15:50:03+00:00</updated>
<published>2012-11-15T15:50:03+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=4270&amp;p=70384#p70384</id>
<link href="https://love2d.org/forums/viewtopic.php?t=4270&amp;p=70384#p70384"/>
<title type="html"><![CDATA[LÖVE-Android • Re: love-java-android/love-native-android: project informati]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=4270&amp;p=70384#p70384"><![CDATA[
looks like exit cleanup issues for me ( for me it happens on the second launch -&gt; usualy means a pointer was deleted on destruction last time and something calls it, or, the pointer is not deleted and is recreated, or even attempts to delete an already invalid pointer)<br /><br />here is the printed stack code:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>I/DEBUG   (25333): Build fingerprint: 'samsung/GT-I9100/GT-I9100:2.3.6/GINGERBREAD/UHLB2:user/releas<br />e-keys'<br />I/DEBUG   (25333): pid: 28397, tid: 28455  &gt;&gt;&gt; net.schattenkind.nativelove &lt;&lt;&lt;<br />I/DEBUG   (25333): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000008<br />I/DEBUG   (25333):  r0 0017ed60  r1 afd46648  r2 00000007  r3 00000000<br />I/DEBUG   (25333):  r4 00184f00  r5 00000000  r6 46b795b8  r7 00000000<br />I/DEBUG   (25333):  r8 000000d0  r9 00040100  10 00000001  fp 00000000<br />I/DEBUG   (25333):  ip afd464b4  sp 46b795a8  lr afd1127c  pc 8228ccb0  cpsr 00000030<br />I/DEBUG   (25333):  d0  00000000000001e0  d1  0000000042c80000<br />I/DEBUG   (25333):  d2  00000000477fff00  d3  43c7000000000000<br />I/DEBUG   (25333):  d4  3e4ccccd00000000  d5  3f8000003f800000<br />I/DEBUG   (25333):  d6  000003203f800000  d7  0000000144480000<br />I/DEBUG   (25333):  d8  0000000000000000  d9  0000000000000000<br />I/DEBUG   (25333):  d10 0000000000000000  d11 0000000000000000<br />I/DEBUG   (25333):  d12 0000000000000000  d13 0000000000000000<br />I/DEBUG   (25333):  d14 0000000000000000  d15 0000000000000000<br />I/DEBUG   (25333):  d16 3ff0000000000000  d17 3ff0000000000000<br />I/DEBUG   (25333):  d18 0000000000000000  d19 0000000000000000<br />I/DEBUG   (25333):  d20 3ff0000000000000  d21 8000000000000000<br />I/DEBUG   (25333):  d22 0000000000000000  d23 bda8fae9be8838d4<br />I/DEBUG   (25333):  d24 3fc74721cad6b0ed  d25 3fc39a09d078c69f<br />I/DEBUG   (25333):  d26 0000000000000000  d27 0000000000000000<br />I/DEBUG   (25333):  d28 0000000000000000  d29 3ff0000000000000<br />I/DEBUG   (25333):  d30 0000000000000000  d31 3ff0000000000000<br />I/DEBUG   (25333):  scr 60000010<br />I/DEBUG   (25333):<br />I/DEBUG   (25333):          #00  pc 0008ccb0  /data/data/net.schattenkind.nativelove/lib/liblove.so<br />I/DEBUG   (25333):          #01  lr afd1127c  /system/lib/libc.so<br />I/DEBUG   (25333):<br />I/DEBUG   (25333): code around pc:<br />I/DEBUG   (25333): 8228cc90 fe14f7ff 1c202110 ec98f7a9 73032301<br />I/DEBUG   (25333): 8228cca0 60836833 600368b3 604368f3 68036830<br />I/DEBUG   (25333): 8228ccb0 4798689b 1c201c01 ea36f7a9 1c202101<br />I/DEBUG   (25333): 8228ccc0 f7a94249 4a26ec30 1c202102 4249447a<br />I/DEBUG   (25333): 8228ccd0 ed18f7a9 1c204923 44792200 ef40f7a9<br />I/DEBUG   (25333):<br />I/DEBUG   (25333): code around lr:<br />I/DEBUG   (25333): afd1125c 08bd87f0 e5964000 e5967000 e2144903<br />I/DEBUG   (25333): afd1126c 1a00000f f57ff05f e5965000 ebffed2f<br />I/DEBUG   (25333): afd1127c e2055a02 e3853001 e1500003 0a000006<br />I/DEBUG   (25333): afd1128c e5865000 e1a00006 e1a01005 e3a02001<br />I/DEBUG   (25333): afd1129c ebfffea3 e1a00004 e8bd87f0 e3a00000<br />I/DEBUG   (25333):<br />I/DEBUG   (25333): stack:<br />I/DEBUG   (25333):     46b79568  00184f78<br />I/DEBUG   (25333):     46b7956c  82110c59  /data/data/net.schattenkind.nativelove/lib/liblua.so<br />I/DEBUG   (25333):     46b79570  000000d0<br />I/DEBUG   (25333):     46b79574  00184f00<br />I/DEBUG   (25333):     46b79578  00000010<br />I/DEBUG   (25333):     46b7957c  00185420<br />I/DEBUG   (25333):     46b79580  00000000<br />I/DEBUG   (25333):     46b79584  821123d5  /data/data/net.schattenkind.nativelove/lib/liblua.so<br />I/DEBUG   (25333):     46b79588  00184f00<br />I/DEBUG   (25333):     46b7958c  00000010<br />I/DEBUG   (25333):     46b79590  46b795b8<br />I/DEBUG   (25333):     46b79594  8211037f  /data/data/net.schattenkind.nativelove/lib/liblua.so<br />I/DEBUG   (25333):     46b79598  00184f00<br />I/DEBUG   (25333):     46b7959c  00000000<br />I/DEBUG   (25333):     46b795a0  df002777<br />I/DEBUG   (25333):     46b795a4  e3a070ad<br />I/DEBUG   (25333): #00 46b795a8  00184f00<br />I/DEBUG   (25333):     46b795ac  00000000<br />I/DEBUG   (25333):     46b795b0  00000000<br />I/DEBUG   (25333):     46b795b4  82248e91  /data/data/net.schattenkind.nativelove/lib/liblove.so<br />I/DEBUG   (25333):     46b795b8  0017ed60<br />I/DEBUG   (25333):     46b795bc  822df748  /data/data/net.schattenkind.nativelove/lib/liblove.so<br />I/DEBUG   (25333):     46b795c0  0000000a<br />I/DEBUG   (25333):     46b795c4  00000020<br />I/DEBUG   (25333):     46b795c8  82326a30<br />I/DEBUG   (25333):     46b795cc  82326ad8<br />I/DEBUG   (25333):     46b795d0  46b79620<br />I/DEBUG   (25333):     46b795d4  00184f00<br />I/DEBUG   (25333):     46b795d8  00000000<br />I/DEBUG   (25333):     46b795dc  00000000<br />I/DEBUG   (25333):     46b795e0  00000000<br />I/DEBUG   (25333):     46b795e4  821069e5  /data/data/net.schattenkind.nativelove/lib/liblua.so<br />I/DEBUG   (25333):     46b795e8  001851d8<br />I/DEBUG   (25333):     46b795ec  82104df3  /data/data/net.schattenkind.nativelove/lib/liblua.so<br />I/BootReceiver( 2707): Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)<br />I/DEBUG   (25333): dumpstate /data/log/dumpstate_app_native.txt<br /></code></dd></dl><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Thu Nov 15, 2012 3:50 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-15T15:47:05+00:00</updated>
<published>2012-11-15T15:47:05+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70383#p70383</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70383#p70383"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70383#p70383"><![CDATA[
here are the configs i have been using for my games:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>      getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);<br />      requestWindowFeature(Window.FEATURE_NO_TITLE);  <br />      getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,   <br />            WindowManager.LayoutParams.FLAG_FULLSCREEN);  <br />      setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);<br /></code></dd></dl><br /><br />since i dont want screen rotation is fine for me.<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Thu Nov 15, 2012 3:47 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[utunnels]]></name></author>
<updated>2012-11-15T15:29:35+00:00</updated>
<published>2012-11-15T15:29:35+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70381#p70381</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70381#p70381"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70381#p70381"><![CDATA[
Yeah, it seems the android port supports dynamic orientation change. Though I need to configure my phone to enable that.<br />And perhaps you also need to disable screen lock otherwise it turns black every few seconds if you don't touch a thing.<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=21418">utunnels</a> — Thu Nov 15, 2012 3:29 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[T-Bone]]></name></author>
<updated>2012-11-15T15:17:51+00:00</updated>
<published>2012-11-15T15:17:51+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70379#p70379</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70379#p70379"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70379#p70379"><![CDATA[
If you want to do anything serious with it, you probably want to compile it yourself, if only to be able to tweak the Android Manifest to fit you game by for example forcing the orientation you want for your game (probably landscape).<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=3355">T-Bone</a> — Thu Nov 15, 2012 3:17 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[utunnels]]></name></author>
<updated>2012-11-15T14:50:41+00:00</updated>
<published>2012-11-15T14:50:41+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=4270&amp;p=70377#p70377</id>
<link href="https://love2d.org/forums/viewtopic.php?t=4270&amp;p=70377#p70377"/>
<title type="html"><![CDATA[LÖVE-Android • Re: love-java-android/love-native-android: project informati]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=4270&amp;p=70377#p70377"><![CDATA[
Just tried it some minutes ago. <br /><br />For some reason, I have to run 2 times to get a game start. The first time I click the selected .love file, it always shows a black screen then exits.  After the second try it will start normally. <img src="https://love2d.org/forums/images/smilies/ms-ultra-glee.png" alt=":ultraglee:" title=":Ultraglee" /><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=21418">utunnels</a> — Thu Nov 15, 2012 2:50 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-15T12:57:46+00:00</updated>
<published>2012-11-15T12:57:46+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70374#p70374</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70374#p70374"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70374#p70374"><![CDATA[
Also you could test just replacing the .love file file by your game in my APK (in the other post)<br /><br />of course the apk is signed by me, so it might not be interesting for sellin purposes, just for tests. you should want package yourself with the changes provided <img src="https://love2d.org/forums/images/smilies/ms-wink.png" alt=";)" title="Wink" /><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Thu Nov 15, 2012 12:57 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-15T12:52:47+00:00</updated>
<published>2012-11-15T12:52:47+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70373#p70373</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70373#p70373"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70373#p70373"><![CDATA[
<blockquote><div><cite>Petunien wrote:</cite><br />Dude, you're awesome!  <img src="https://love2d.org/forums/images/smilies/ms-glad.png" alt=":D" title="Very Happy" /> <br /><br />Sorry, English isn't my native language, but I wanted to ask if I understood correctly.<br /><br />You got it working, so a stand alone *.apk of your game would be playable on the phone, without &quot;Browse for game&quot; before?<br /><br />If so, may I ask for a little little tutorial on how to do that? Because I get errors when changing the LoveNative.java.<br /><br /><img src="https://love2d.org/forums/images/smilies/ms-smile.png" alt=":)" title="Smile" /><br /></div></blockquote><br /><br /><br />hey man! thanks!<br /><br />exacty thats the idea, if you wanna check just download the apk<br /><br />whats the erros you get?<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Thu Nov 15, 2012 12:52 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Petunien]]></name></author>
<updated>2012-11-14T12:24:34+00:00</updated>
<published>2012-11-14T12:24:34+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70297#p70297</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70297#p70297"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70297#p70297"><![CDATA[
Dude, you're awesome!  <img src="https://love2d.org/forums/images/smilies/ms-glad.png" alt=":D" title="Very Happy" /> <br /><br />Sorry, English isn't my native language, but I wanted to ask if I understood correctly.<br /><br />You got it working, so a stand alone *.apk of your game would be playable on the phone, without &quot;Browse for game&quot; before?<br /><br />If so, may I ask for a little little tutorial on how to do that? Because I get errors when changing the LoveNative.java.<br /><br /><img src="https://love2d.org/forums/images/smilies/ms-smile.png" alt=":)" title="Smile" /><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=28519">Petunien</a> — Wed Nov 14, 2012 12:24 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-13T21:32:34+00:00</updated>
<published>2012-11-13T21:32:34+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70249#p70249</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70249#p70249"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70249#p70249"><![CDATA[
ok i have tested the &quot;hack&quot; and it works<br /><br /><span style="font-size: 150%; line-height: 116%;">DOWNLOAD: <a href="http://gjteam.com.br/love-native-android.apk" class="postlink">http://gjteam.com.br/love-native-android.apk</a></span><br /><br />here are the files that I changed (i dont have git client here to make patches, if anyone knows a good client for windows..)<br /><br />make sure you create a folder called &quot;assets&quot; inside the root of java project and copy your game to there, name it <span style="font-weight: bold">&quot;game.love&quot;</span><br /><br /><img src="http://gjteam.com.br/love.png" alt="Image" /><br /><br /><span style="font-weight: bold">AndroidManifest.xml</span><br /><dl class="codebox"><dt>Code: </dt><dd><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br />    package=&quot;net.schattenkind.nativelove&quot;<br />    android:versionCode=&quot;1&quot;<br />    android:versionName=&quot;1.0&quot; &gt;<br /><br />    &lt;uses-sdk android:minSdkVersion=&quot;8&quot; /&gt;<br />    &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;/&gt;<br />    &lt;uses-permission android:name=&quot;android.permission.DELETE_CACHE_FILES&quot;/&gt;<br />    &lt;uses-permission android:name=&quot;android.permission.READ_FRAME_BUFFER&quot;/&gt;<br />    &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;/&gt;<br /><br />    &lt;application<br />        android:icon=&quot;@drawable/ic_launcher&quot;<br />        android:label=&quot;@string/app_name&quot; &gt;<br />        &lt;activity<br />            android:theme=&quot;@android:style/Theme.NoTitleBar.Fullscreen&quot;<br />            android:label=&quot;@string/app_name&quot;<br />            android:name=&quot;LoveNative&quot;<br />            android:configChanges=&quot;mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|fontScale&quot;&gt;<br />            &lt;intent-filter&gt;<br />                &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;<br />                &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;<br />            &lt;/intent-filter&gt;<br />        &lt;/activity&gt;<br />    &lt;/application&gt;<br /><br />&lt;/manifest&gt;<br /></code></dd></dl><br /><br /><br /><span style="font-weight: bold">LoveNative.java</span><br /><dl class="codebox"><dt>Code: </dt><dd><code>package net.schattenkind.nativelove;<br /><br />import java.io.File;<br />import java.io.FileOutputStream;<br />import java.io.IOException;<br />import java.io.InputStream;<br />import java.io.OutputStream;<br />import java.util.LinkedList;<br /><br />import android.app.Activity;<br />import android.content.res.AssetManager;<br />import android.content.res.Configuration;<br />import android.hardware.Sensor;<br />import android.hardware.SensorEvent;<br />import android.hardware.SensorEventListener;<br />import android.hardware.SensorManager;<br />import android.media.AudioManager;<br />import android.net.Uri;<br />import android.os.Build;<br />import android.os.Bundle;<br />import android.util.Log;<br />import android.view.KeyEvent;<br />import android.view.MotionEvent;<br /><br />public class LoveNative extends Activity implements SensorEventListener {<br />    /** Called when the activity is first created. */<br />   private LoveRenderView mGLView;<br />   private float mOldVolume = 1.f;<br /><br />   //TODO: Add<br />   /*<br />    * getSystemService(Context.SENSOR_SERVICE); and SensorManager<br />    * getSystemService(Context.STORAGE_SERVICE); and all file stuff<br />    * finish android_sensors in love.cpp (in real love)<br />    * */<br />    @Override<br />    public void onCreate(Bundle savedInstanceState) {<br />        super.onCreate(savedInstanceState);<br /><br />        copyAssets();<br />        <br />        setVolumeControlStream(AudioManager.STREAM_MUSIC);<br />        mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE);<br />        mSensorList = new LinkedList&lt;Sensor&gt;();<br /><br />        String filePath = &quot;/mnt/sdcard/game.love&quot;;<br /><br />        //setContentView(R.layout.main);<br />        LoveJNI.setActivity(this);<br />        mGLView = new LoveRenderView(this, filePath);<br />        setContentView(mGLView);<br />        //LoveJNI.step();<br />    }<br /><br />    @Override<br />    public boolean onKeyDown(int keyCode, KeyEvent event)<br />    {<br />       // hardware sound button handling<br />       if (keyCode == KeyEvent.KEYCODE_MUTE)<br />       {<br />          LoveJNI.setDeviceAudioVolume(0f);<br />       }<br />       if (keyCode == KeyEvent.KEYCODE_VOLUME_UP)<br />       {<br />          LoveJNI.setDeviceAudioVolume(LoveJNI.getDeviceAudioVolume() + 0.1f);<br />       }<br />       if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN)<br />       {<br />          LoveJNI.setDeviceAudioVolume(LoveJNI.getDeviceAudioVolume() - 0.1f);<br />       }<br /><br />       //Temporary fix for exiting the application<br />   //TODO Remove this when implemented into Love.cpp instead<br />       if (keyCode == KeyEvent.KEYCODE_BACK) {<br />          return super.onKeyDown(keyCode, event);<br />       }<br /><br />        if(LoveJNI.onKeyDown(keyCode))<br />           return true;<br />        return super.onKeyDown(keyCode, event);<br />    }<br /><br />    @Override<br />    public boolean onKeyUp(int keyCode, KeyEvent event)<br />    {<br />       //Temporary fix for exiting the application<br />   //TODO Remove this when implemented into Love.cpp instead<br />       if (keyCode == KeyEvent.KEYCODE_BACK) {<br />          return super.onKeyUp(keyCode, event);<br />       }<br /><br />       if(LoveJNI.onKeyUp(keyCode))<br />           return true;<br />        return super.onKeyUp(keyCode, event);<br />    }<br /><br />    @Override<br />    public boolean onTouchEvent(MotionEvent event)<br />    {<br />       boolean processed = false;<br />       if(event.getAction() == MotionEvent.ACTION_DOWN)<br />       {<br />          LoveJNI.onMouseDown((int)event.getX(), (int)event.getY());<br />          processed = true;<br />       }<br />       else if(event.getAction() == MotionEvent.ACTION_UP)<br />       {<br />          LoveJNI.onMouseUp((int)event.getX(), (int)event.getY());<br />          processed = true;<br />       }<br />       else if (event.getAction() == MotionEvent.ACTION_MOVE)<br />       {<br />          LoveJNI.onMouseMove((int)event.getX(), (int)event.getY());<br />          processed = true;<br />       }<br /><br />       int count = event.getPointerCount();<br />       if(count &gt; 0)<br />       {<br />          int x&#91;&#93; = new int&#91;count&#93;;<br />          int y&#91;&#93; = new int&#91;count&#93;;<br /><br />          for(int i = 0; i &lt; count; ++i)<br />          {<br />             x&#91;i&#93; = (int)event.getX(i);<br />             y&#91;i&#93; = (int)event.getY(i);<br />          }<br /><br />          if(event.getAction() == MotionEvent.ACTION_DOWN)<br />           {<br />             if(Build.VERSION.SDK_INT &gt;= 8)<br />                LoveJNI.onTouchDown(count, event.getActionIndex(), x, y);<br />             else<br />                LoveJNI.onTouchDown(count, -1, x, y);<br />             processed = true;<br />           }<br />           else if(event.getAction() == MotionEvent.ACTION_UP)<br />           {<br />              if(Build.VERSION.SDK_INT &gt;= 8)<br />                 LoveJNI.onTouchUp(count, event.getActionIndex(), x, y);<br />              else<br />                 LoveJNI.onTouchUp(count, -1, x, y);<br />              processed = true;<br />           }<br />           else if (event.getAction() == MotionEvent.ACTION_MOVE)<br />           {<br />              if(Build.VERSION.SDK_INT &gt;= 8)<br />                 LoveJNI.onTouchMove(count, event.getActionIndex(), x, y);<br />              else<br />                 LoveJNI.onTouchMove(count, -1, x, y);<br />              processed = true;<br />           }<br />       }<br />       if(processed)<br />          return true;<br />       return super.onTouchEvent(event);<br />    }<br /><br />    @Override<br />    public void onBackPressed()<br />    {<br />        super.onBackPressed();<br />//        LoveJNI.deinit();<br />        mGLView.onPause();<br />    }<br /><br />    @Override<br />    public boolean onKeyLongPress(int keyCode, KeyEvent event)<br />    {<br />        // TODO Auto-generated method stub<br />        return super.onKeyLongPress(keyCode, event);<br />    }<br /><br />    // clean up love at onPause call - native memory is not protected afterwards<br />    // we need a solution to store the game state at that moment<br />    @Override<br />    public void onPause()<br />    {<br />       //mGLView.onPause(); // TODO: FIX OpenGL cleanup<br />       mGLView.stopRendering();<br />       mOldVolume = LoveJNI.getDeviceAudioVolume();<br />       LoveJNI.setDeviceAudioVolume(0.f);<br />       mSensorManager.unregisterListener(this);<br />       super.onPause();<br />    }<br /><br />    @Override<br />    protected void onResume() {<br />        super.onResume();<br />        mGLView.continueRendering();<br />        LoveJNI.setDeviceAudioVolume(mOldVolume);<br />        for(int i = 0; i &lt; mSensorList.size(); ++i)<br />           mSensorManager.registerListener(this, mSensorList.get(i), SensorManager.SENSOR_DELAY_GAME);<br />        //mGLView.onResume(); // TODO: FIX OpenGL cleanup<br />    }<br /><br /><br />    @Override<br />    public void onConfigurationChanged(Configuration newConfig)<br />    {<br />       super.onConfigurationChanged(newConfig);<br />    }<br /><br />    @Override<br />    public void onDestroy()<br />    {<br />       Log.i(&quot;LoveNative&quot;, &quot;onDestroy&quot;);<br />       LoveJNI.deinit();<br />       super.onDestroy();<br />    }<br /><br />    private int strToSensor(String name)<br />    {<br />       if(name.equals(&quot;TYPE_ACCELEROMETER&quot;))<br />          return Sensor.TYPE_ACCELEROMETER;<br />       else if(name.equals(&quot;TYPE_ALL&quot;))<br />          return Sensor.TYPE_ALL;<br />       else if(Build.VERSION.SDK_INT &gt;= 14 &amp;&amp; name.equals(&quot;TYPE_AMBIENT_TEMPERATURE &quot;))<br />          return 0xd; //Sensor.TYPE_AMBIENT_TEMPERATURE<br />       else if(Build.VERSION.SDK_INT &gt;= 9 &amp;&amp; name.equals(&quot;TYPE_GRAVITY&quot;))<br />          return 0x9; //Sensor.TYPE_GRAVITY<br />       else if(name.equals(&quot;TYPE_GYROSCOPE&quot;))<br />          return Sensor.TYPE_GYROSCOPE;<br />       else if(name.equals(&quot;TYPE_LIGHT&quot;))<br />          return Sensor.TYPE_LIGHT;<br />       else if(Build.VERSION.SDK_INT &gt;= 9 &amp;&amp; name.equals(&quot;TYPE_LINEAR_ACCELERATION&quot;))<br />          return 0xa; //Sensor.TYPE_LINEAR_ACCELERATION<br />       else if(name.equals(&quot;TYPE_MAGNETIC_FIELD&quot;))<br />          return Sensor.TYPE_MAGNETIC_FIELD;<br />       else if(name.equals(&quot;TYPE_ORIENTATION&quot;))<br />          return Sensor.TYPE_ORIENTATION;<br />       else if(name.equals(&quot;TYPE_PRESSURE&quot;))<br />          return Sensor.TYPE_PRESSURE;<br />       else if(name.equals(&quot;TYPE_PROXIMITY&quot;))<br />          return Sensor.TYPE_PROXIMITY;<br />       else if(Build.VERSION.SDK_INT &gt;= 14 &amp;&amp; name.equals(&quot;TYPE_RELATIVE_HUMIDITY&quot;))<br />          return 0xc; //Sensor.TYPE_RELATIVE_HUMIDITY<br />       else if(Build.VERSION.SDK_INT &gt;= 9 &amp;&amp; name.equals(&quot; TYPE_ROTATION_VECTOR&quot;))<br />          return 0xb; //Sensor.TYPE_ROTATION_VECTOR<br />       else if(name.equals(&quot;TYPE_TEMPERATURE&quot;))<br />          return Sensor.TYPE_TEMPERATURE ;<br />       else<br />          return Sensor.TYPE_ALL;<br />    }<br /><br />    private String SensorToStr(int type)<br />    {<br />       switch(type)<br />       {<br />          case Sensor.TYPE_ACCELEROMETER:<br />             return &quot;TYPE_ACCELEROMETER&quot;;<br />          case Sensor.TYPE_ALL:<br />             return &quot;TYPE_ALL&quot;;<br />          case 0xd:<br />             return &quot;TYPE_AMBIENT_TEMPERATURE&quot;;<br />          case 0x9:<br />             return &quot;TYPE_GRAVITY&quot;;<br />          case Sensor.TYPE_GYROSCOPE:<br />             return &quot;TYPE_GYROSCOPE&quot;;<br />          case Sensor.TYPE_LIGHT:<br />             return &quot;TYPE_LIGHT&quot;;<br />          case 0xa:<br />             return &quot;TYPE_LINEAR_ACCELERATION&quot;;<br />          case Sensor.TYPE_MAGNETIC_FIELD:<br />             return &quot;TYPE_MAGNETIC_FIELD&quot;;<br />          case Sensor.TYPE_ORIENTATION:<br />             return &quot;TYPE_ORIENTATION&quot;;<br />          case Sensor.TYPE_PRESSURE:<br />             return &quot;TYPE_PRESSURE&quot;;<br />          case Sensor.TYPE_PROXIMITY:<br />             return &quot;TYPE_PROXIMITY&quot;;<br />          case 0xc:<br />             return &quot;TYPE_RELATIVE_HUMIDITY&quot;;<br />          case 0xb:<br />             return &quot;TYPE_ROTATION_VECTOR&quot;;<br />          case Sensor.TYPE_TEMPERATURE:<br />             return &quot;TYPE_TEMPERATURE&quot;;<br />         default:<br />            return &quot;UNKNOWN&quot;;<br />       }<br />    }<br /><br />    private SensorManager mSensorManager;<br />    private LinkedList&lt;Sensor&gt; mSensorList;<br />   public void disableSensor(String name)<br />    {<br />      int type = strToSensor(name);<br />      Sensor sensor = mSensorManager.getDefaultSensor(type);<br />      mSensorManager.unregisterListener(this, sensor);<br />      mSensorList.remove(sensor);<br />    }<br /><br />   public void enableSensor(String name)<br />    {<br />      int type = strToSensor(name);<br />      Sensor sensor = mSensorManager.getDefaultSensor(type);<br />      mSensorManager.registerListener(this, sensor, SensorManager.SENSOR_DELAY_GAME);<br />      mSensorList.add(sensor);<br />    }<br /><br />   @Override<br />    public void onAccuracyChanged(Sensor sensor, int accuracy)<br />    {<br />       // should not happen...<br />      // TODO: check if it does not happen :D<br /><br />    }<br /><br />   @Override<br />    public void onSensorChanged(SensorEvent event)<br />    {<br />       LoveJNI.onSensorChanged(event.sensor.getName(), SensorToStr(event.sensor.getType()), event.values);<br />    }<br />   <br />   private void copyAssets() {<br />       AssetManager assetManager = getAssets();<br />       String&#91;&#93; files = null;<br />       try {<br />           files = assetManager.list(&quot;&quot;);<br />       } catch (IOException e) {<br />           Log.e(&quot;tag&quot;, &quot;Failed to get asset file list.&quot;, e);<br />       }<br />       for(String filename : files) {<br />           InputStream in = null;<br />           OutputStream out = null;<br />           try {<br />             in = assetManager.open(filename);<br />             out = new FileOutputStream(&quot;/sdcard/&quot; + filename);<br />             copyFile(in, out);<br />             in.close();<br />             in = null;<br />             out.flush();<br />             out.close();<br />             out = null;<br />           } catch(IOException e) {<br />               Log.e(&quot;tag&quot;, &quot;Failed to copy asset file: &quot; + filename, e);<br />           }       <br />       }<br />   }<br />   private void copyFile(InputStream in, OutputStream out) throws IOException {<br />       byte&#91;&#93; buffer = new byte&#91;1024&#93;;<br />       int read;<br />       while((read = in.read(buffer)) != -1){<br />         out.write(buffer, 0, read);<br />       }<br />   }<br /><br />//    @Override<br />//    public void onStop()<br />//    {<br />//       android.os.Process.killProcess(android.os.Process.myPid());<br />//    }<br />}<br /></code></dd></dl><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Tue Nov 13, 2012 9:32 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-13T20:45:14+00:00</updated>
<published>2012-11-13T20:45:14+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70245#p70245</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70245#p70245"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70245#p70245"><![CDATA[
yes, only older phones would have issues..<br /><br />mine doesnt have any problem (galaxy s2).. but  still pretty hacky isnt it?<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Tue Nov 13, 2012 8:45 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[T-Bone]]></name></author>
<updated>2012-11-13T19:41:49+00:00</updated>
<published>2012-11-13T19:41:49+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70239#p70239</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70239#p70239"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70239#p70239"><![CDATA[
It doesn't require a physical sd card though. Many phones without them still have the folder /mnt/sdcard for compatability. And Environment.getExternalStorageDirectory() should still work either way.<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=3355">T-Bone</a> — Tue Nov 13, 2012 7:41 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-13T17:49:24+00:00</updated>
<published>2012-11-13T17:49:24+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70232#p70232</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70232#p70232"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70232#p70232"><![CDATA[
here is my progress so far<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code><br />love.filesystem.addToSearchPath(apkDir); -- apkDir sent via Java code, i also added addToSearchPath to lua-glue code.<br />print(love.filesystem.exists(&quot;/assets/game.love&quot;)) -- works :D, if you have copied game.love to assets folder<br /></code></dd></dl><br /><br />the problem is that its a zip inside another zip, and even worse, assets is a folder, so finding main.lua has been a hell for LOVE so far <img src="https://love2d.org/forums/images/smilies/ms-razz.png" alt=":P" title="Razz" /><br /><br /><br />------------------------------------------------------<br /><br />meanwhile i found this hack that doenst require messing with NDK code, only java:<br /><br /><!-- m --><a class="postlink" href="http://stackoverflow.com/questions/4447477/android-how-to-copy-files-in-assets-to-sdcard">http://stackoverflow.com/questions/4447 ... -to-sdcard</a><!-- m --><br /><br />the idea is to copy the .love game to assets folder then use that code to copy to sdcard and pass its location to JNI. the obvious fallback is that requires sdcard, also duplicates the game in memory..<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Tue Nov 13, 2012 5:49 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-13T15:13:52+00:00</updated>
<published>2012-11-13T15:13:52+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70222#p70222</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70222#p70222"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70222#p70222"><![CDATA[
ok i compiled my version, unfortunately it doesnt run, im using android-ndk-r8b and android sdk 4.0.3(im having exactly this error)<br /><br /><a href="http://stackoverflow.com/questions/12174247/android-ndk-8b-cannot-load-library" class="postlink">http://stackoverflow.com/questions/12174247/android-ndk-8b-cannot-load-library</a><br /><br />well anyway ill outline my path so anyone who can compile can test if it works or not:<br /><br />1)find apk path on java:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>   String retrieveApkPath() {<br />      String apkFilePath = null;<br />      ApplicationInfo appInfo = null;<br />      PackageManager packMgmr = getPackageManager();<br />      try {<br />         appInfo = packMgmr.getApplicationInfo(getPackageName(), 0);<br />      } catch (NameNotFoundException e) {<br />         e.printStackTrace();<br />         throw new RuntimeException(&quot;Unable to locate assets, aborting...&quot;);<br />      }<br />      apkFilePath = appInfo.sourceDir;<br />      return (apkFilePath);<br />   }</code></dd></dl><br /><br />2)PHYSFS_AddToSearchPath(apkPath, 1);i think this is done on lua level, especifically on boot.lua right where it boots the game source.. so you should access the filesystem from there and add the apkpath<br /><br />from there on its just a matter of loading the .love file (hopefullly)<br /><br />for example, create a folder assets and put your .love file there lets game.love, step 2) should make it visible to physfs so yuo can replace the boot code to load game.love instead of the argument<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Tue Nov 13, 2012 3:13 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[T-Bone]]></name></author>
<updated>2012-11-13T09:09:39+00:00</updated>
<published>2012-11-13T09:09:39+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70213#p70213</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70213#p70213"/>
<title type="html"><![CDATA[LÖVE-Android • Re: help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70213#p70213"><![CDATA[
I don't think anyone has actually managed to get a stand alone apk yet. But it is theoretically possible. Maybe not in this version though.<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=3355">T-Bone</a> — Tue Nov 13, 2012 9:09 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-13T03:08:23+00:00</updated>
<published>2012-11-13T03:08:23+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11709&amp;p=70204#p70204</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11709&amp;p=70204#p70204"/>
<title type="html"><![CDATA[LÖVE-Android • stand alone love android-games]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11709&amp;p=70204#p70204"><![CDATA[
has anyone managed to do so? i might help since i messed with jni a long time ago<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Tue Nov 13, 2012 3:08 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dudeabot]]></name></author>
<updated>2012-11-13T03:07:00+00:00</updated>
<published>2012-11-13T03:07:00+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70203#p70203</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70203#p70203"/>
<title type="html"><![CDATA[LÖVE-Android • help on standalone game]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11708&amp;p=70203#p70203"><![CDATA[
well i have read a lot of threads.<br /><br />first, id ilke to say im studying ni and might be able to help, but i would like to ask first. is the problem of standalone apk resolved? if not i might have a look at it, i just compiled the ndk sources, and love looks like such a cool engine that i have been wanting to mess with.<br /><br />just bare with me since i am veeeryyyyy rusty with jni and NDK =)<br /><br />thanks!<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=73237">dudeabot</a> — Tue Nov 13, 2012 3:07 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PedroChurro]]></name></author>
<updated>2012-11-11T17:05:43+00:00</updated>
<published>2012-11-11T17:05:43+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11687&amp;p=70082#p70082</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11687&amp;p=70082#p70082"/>
<title type="html"><![CDATA[LÖVE-Android • Re: Eclipse Error/Some questions about this]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11687&amp;p=70082#p70082"><![CDATA[
<blockquote><div><cite>Petunien wrote:</cite><br />I remember that error, I had it too. I was using a wrong version of JDK.<br /><br />Like other guys say, installing the right 32-/64-Bit version of JDK/Eclipse should solve the error.<br />They have to match each other.<br /><br /><!-- m --><a class="postlink" href="http://stackoverflow.com/questions/10585135/eclipse-failed-to-load-jni-shared-library">http://stackoverflow.com/questions/1058 ... ed-library</a><!-- m --><br /></div></blockquote><br /><br />Looks like I had the 32-Bit Java and 64-Bit Eclipse. Thanks!<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=69055">PedroChurro</a> — Sun Nov 11, 2012 5:05 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Petunien]]></name></author>
<updated>2012-11-11T16:48:26+00:00</updated>
<published>2012-11-11T16:48:26+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11687&amp;p=70078#p70078</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11687&amp;p=70078#p70078"/>
<title type="html"><![CDATA[LÖVE-Android • Re: Eclipse Error/Some questions about this]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11687&amp;p=70078#p70078"><![CDATA[
I remember that error, I had it too. I was using a wrong version of JDK.<br /><br />Like other guys say, installing the right 32-/64-Bit version of JDK/Eclipse should solve the error.<br />They have to match each other.<br /><br /><!-- m --><a class="postlink" href="http://stackoverflow.com/questions/10585135/eclipse-failed-to-load-jni-shared-library">http://stackoverflow.com/questions/1058 ... ed-library</a><!-- m --><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=28519">Petunien</a> — Sun Nov 11, 2012 4:48 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PedroChurro]]></name></author>
<updated>2012-11-11T11:44:05+00:00</updated>
<published>2012-11-11T11:44:05+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11687&amp;p=70064#p70064</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11687&amp;p=70064#p70064"/>
<title type="html"><![CDATA[LÖVE-Android • Re: Eclipse Error/Some questions about this]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11687&amp;p=70064#p70064"><![CDATA[
<blockquote><div><cite>T-Bone wrote:</cite><br />Not sure about the error, but in order to use the touch screen, you can simply use love.mousepressed etc.<br /></div></blockquote><br /><br /><br />Wow, didn't remember of that. Thanks!<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=69055">PedroChurro</a> — Sun Nov 11, 2012 11:44 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[T-Bone]]></name></author>
<updated>2012-11-11T11:33:09+00:00</updated>
<published>2012-11-11T11:33:09+00:00</published>
<id>https://love2d.org/forums/viewtopic.php?t=11687&amp;p=70063#p70063</id>
<link href="https://love2d.org/forums/viewtopic.php?t=11687&amp;p=70063#p70063"/>
<title type="html"><![CDATA[LÖVE-Android • Re: Eclipse Error/Some questions about this]]></title>

<category term="LÖVE-Android" scheme="https://love2d.org/forums/viewforum.php?f=11" label="LÖVE-Android"/>
<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=11687&amp;p=70063#p70063"><![CDATA[
Not sure about the error, but in order to use the touch screen, you can simply use love.mousepressed etc.<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=3355">T-Bone</a> — Sun Nov 11, 2012 11:33 am</p><hr />
]]></content>
</entry>
</feed>