Re: [android-developers] Consumer closed input channel

2011-10-17 Thread Marco Bernasocchi
Hi Dianne, what do you mean by fd? (sorry if I miss a super clear 
abbreviation).
I just got this error, do you have any hints on how to interpret it?
thanks a lot

I/Qt  ( 1402): qt start
D/Qt  ( 1402): startQtApp 
D/Qt  ( 1402): environmentString HOME=/data/data/ch.myapp/files 
TMPDIR=/data/data/ch.myapp/files 
MINISTRO_SSL_CERTS_PATH=/data/data/eu.licentia.necessitas.ministro/files/qt/ssl 
QT_IMPORT_PATH=/data/data/eu.licentia.necessitas.ministro/files/qt/imports 
QT_PLUGIN_PATH=/data/data/eu.licentia.necessitas.ministro/files/qt/plugins 
(HOME=/data/data/ch.myapp/files, TMPDIR=/data/data/ch.myapp/files, 
MINISTRO_SSL_CERTS_PATH=/data/data/eu.licentia.necessitas.ministro/files/qt/ssl,
 
QT_IMPORT_PATH=/data/data/eu.licentia.necessitas.ministro/files/qt/imports, 
QT_PLUGIN_PATH=/data/data/eu.licentia.necessitas.ministro/files/qt/plugins) 
D/Qt  ( 1402): paramsString QtApp -platform android 
W/Qt  ( 1402): WARNING: QApplication was not created in the main() 
thread.
D/dalvikvm( 1402): GC_EXTERNAL_ALLOC freed 27K, 50% free 2742K/5379K, 
external 1K/513K, paused 72ms
D/Qt  ( 1402): QAndroidPlatformIntegrationPlugin::create android 
D/Qt  ( 1402): QFbScreen::setPhysicalSize QSize(81, 133) 
D/Qt  ( 1402): QFbScreen::setGeometry QRect(0,0 480x762) 
D/Qt  ( 1402): 
QAndroidPlatformScreen::QAndroidPlatformScreen():QFbScreen() 
D/dalvikvm(  300): GC_EXPLICIT freed 124K, 58% free 3575K/8391K, external 
8781K/10829K, paused 442ms
I/DEBUG   (  110): *** *** *** *** *** *** *** *** *** *** *** *** *** *** 
*** ***
I/DEBUG   (  110): Build fingerprint: 
'google/soju/crespo:2.3.4/GRJ22/121341:user/release-keys'
I/DEBUG   (  110): pid: 1402, tid: 1420   ch.myapp 
I/DEBUG   (  110): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 
0004
I/DEBUG   (  110):  r0 44eab908  r1   r2 44eab90c  r3 44eab90c
I/DEBUG   (  110):  r4   r5 44eab908  r6 44eabb0c  r7 001c3bb8
I/DEBUG   (  110):  r8 83bc15b8  r9   10 0010  fp 44eab92c
I/DEBUG   (  110):  ip 83d6c354  sp 44eab8c8  lr 83ba228c  pc 808d50d6  cpsr 
8030
I/DEBUG   (  110):  d0  00790070006f0043  d1  0001
I/DEBUG   (  110):  d2  0068  d3  
I/DEBUG   (  110):  d4    d5  
I/DEBUG   (  110):  d6    d7  45b3a04146642000
I/DEBUG   (  110):  d8    d9  
I/DEBUG   (  110):  d10   d11 
I/DEBUG   (  110):  d12   d13 
I/DEBUG   (  110):  d14   d15 
I/DEBUG   (  110):  d16 01010100  d17 42515c6103e2c000
I/DEBUG   (  110):  d18 408f4000  d19 eb00aa00c700ef00
I/DEBUG   (  110):  d20 ebaac7efc3d2e740  d21 ea55a8fbc5ecee11
I/DEBUG   (  110):  d22 ebaac7efbccbdf3e  d23 ebaac7efc3d2e740
I/DEBUG   (  110):  d24 bba7ca97de323d9e  d25 ea55a8fbc5ecee11
I/DEBUG   (  110):  d26 00c200d100e60040  d27 00ea00a900c600ee
I/DEBUG   (  110):  d28 c617d699e73b4207  d29 ef5dad55c638ef7d
I/DEBUG   (  110):  d30 00bc00cb00de003e  d31 00ea00a900c600ee
I/DEBUG   (  110):  scr 2010
I/DEBUG   (  110): 
I/DEBUG   (  110):  #00  pc 808d50d6 
 /datadata/eu.licentia.necessitas.ministro/files/qt/lib/libQtCore.so
I/DEBUG   (  110):  #01  lr 83ba228c 
 /mnt/asec/ch.myapp-1/lib/libmyapp.so
I/DEBUG   (  110): 
I/DEBUG   (  110): code around pc:
I/DEBUG   (  110): 808d50b4 001425c2 0009a324 0009a2e5 0009a274 
I/DEBUG   (  110): 808d50c4 04e0 05ec 0009a098 b085b530 
I/DEBUG   (  110): 808d50d4 68494605 230c4668 fdd6f7ff 46694628 
I/DEBUG   (  110): 808d50e4 f00a466c e006ffbd 46684605 fdeef008 
I/DEBUG   (  110): 808d50f4 f02c4628 4668fa33 fde8f008 b0054628 
I/DEBUG   (  110): 
I/DEBUG   (  110): code around lr:
I/DEBUG   (  110): 83ba226c e1a01003 ebf46fbb e24b2024 e24b3020 
I/DEBUG   (  110): 83ba227c e1a2 e1a01004 e1a02003 ebf463a3 
I/DEBUG   (  110): 83ba228c ea09 e1a03000 e1a02001 e1a05002 
I/DEBUG   (  110): 83ba229c e1a06003 e1a4 ebf45cc7 e1a03006 
I/DEBUG   (  110): 83ba22ac e1a02005 e1a3 ebf46899 e24b3024 
I/DEBUG   (  110): 
I/DEBUG   (  110): stack:
I/DEBUG   (  110): 44eab888  83bfa928 
 /mnt/asec/ch.myapp-1/lib/libmyapp.so
I/DEBUG   (  110): 44eab88c  001f  
I/DEBUG   (  110): 44eab890    
I/DEBUG   (  110): 44eab894  001c3bb8  
I/DEBUG   (  110): 44eab898  83bc15b8 
 /mnt/asec/ch.myapp-1/lib/libmyapp.so
I/DEBUG   (  110): 44eab89c  afd1494d  /system/lib/libc.so
I/DEBUG   (  110): 44eab8a0  83bfa928 
 /mnt/asec/ch.myapp-1/lib/libmyapp.so
I/DEBUG   (  110): 44eab8a4  808543f3 
 /datadata/eu.licentia.necessitas.ministro/files/qt/lib/libQtCore.so
I/DEBUG   (  110): 44eab8a8  83bfa928 
 /mnt/asec/ch.myapp-1/lib/libmyapp.so
I/DEBUG   (  110): 44eab8ac  8087c909 
 /datadata/eu.licentia.necessitas.ministro/files/qt/lib/libQtCore.so
I/DEBUG   (  110): 44eab8b0    
I/DEBUG   (  110): 44eab8b4  83bfa928 
 

[android-developers] isDirectory from assets manager

2011-08-19 Thread Marco Bernasocchi
Hi all is it possible to find out if a path retourned by 
AssetsManager.list() is a directory? I'm trying to recursively copy a 
directory tree from my apk to getFilesDirectory.


Thanks a lot
Marco

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] isDirectory from assets manager

2011-08-19 Thread Marco Bernasocchi
Yes it gives back folders as well, I solved it this way:

private void copyDir(AssetManager assetManager, String path) {
if (hasChildren(assetManager, filepath)) {
Log.d(QtTAG, DIR FOUND at:  + filepath);
copyDir(assetManager, filepath);
} else {
Log.d(QtTAG, FILE FOUND at:  + filepath);


private boolean hasChildren(AssetManager assetManager, String path)
{
try {
if (assetManager.list(path).length  0){
return true;
}
} catch (IOException e) {
e.printStackTrace();
}
return false;
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] external files to

2011-08-18 Thread Marco Bernasocchi

Hi all,
I got a pretty big Qt application (QGIS.org) to start running  in 
android [0]. Awesome work on the necessitas and the NDK side, thanks a lot!


I've a question, qgis needs stuff (sqlite databases, svg files, xml 
config,...) that normally is in $PREFIX/share/resources what is the best 
strategy (I've looked into assets but i'd like to get the real files on 
the filesystem so that qgis can handle them natively) to get this files 
on the (unrooted) device? it wolud be nice if everything is in one apk 
only but other suggestions are welcome as well.


thanks a lot marco

[0] 
http://www.bernawebdesign.ch/byteblog/2011/08/18/qgis-on-android-has-a-proper-gui/ 


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] external files to

2011-08-18 Thread Marco Bernasocchi

On 08/18/2011 01:39 PM, Appaholics wrote:
If the apk is getting to big you could download them at runtime. 
Otherwise just bundle everything and copy id to the SD Card if you 
need to.
the apk is installed on external storage, for the size problem, but how 
do I get the assets from the apk to appfolder/org.qgis.qgis/files ? 
sometihing like this [0] or there is a shorter way?


thanks
[0] 
http://stackoverflow.com/questions/3851712/android-how-to-create-a-directory-on-the-sd-card-and-copy-files-from-res-raw-to 



Thanks

On Thu, Aug 18, 2011 at 5:01 PM, Marco Bernasocchi 
ma...@bernawebdesign.ch mailto:ma...@bernawebdesign.ch wrote:


Hi all,
I got a pretty big Qt application (QGIS.org) to start running  in
android [0]. Awesome work on the necessitas and the NDK side,
thanks a lot!

I've a question, qgis needs stuff (sqlite databases, svg files,
xml config,...) that normally is in $PREFIX/share/resources what
is the best strategy (I've looked into assets but i'd like to get
the real files on the filesystem so that qgis can handle them
natively) to get this files on the (unrooted) device? it wolud be
nice if everything is in one apk only but other suggestions are
welcome as well.

thanks a lot marco

[0]

http://www.bernawebdesign.ch/byteblog/2011/08/18/qgis-on-android-has-a-proper-gui/

-- 
You received this message because you are subscribed to the Google

Groups Android Developers group.
To post to this group, send email to
android-developers@googlegroups.com
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en




--

Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles 
required to have complete control)

http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] apk/libs tree structure

2011-08-17 Thread Marco Bernasocchi
Hi, I'm porting QGIS to android and the code (native all crosscompiled 
with ndk) should dinamically load .so from a specific folder 
(lib/plugins). is there a way to preserve such a structure in the lib 
folder? If i just pur my plugins folder into libs and run ant debug the 
apk has only the top level shared objects. If I generate with ant 
release, then add the files to the apk, sign, zipalign and install, the 
lib/plugin folder still does not exist.
any suggestions? (I'd rather not change the code since it is a big qt 
based project and less hacks are better)


ciao Marco

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: apk/libs tree structure

2011-08-17 Thread Marco Bernasocchi

Hi Xavier, all,

On 08/17/2011 08:53 PM, Xavier Ducrohet wrote:

the lib folder must be in the format /lib/abi/*.so

My issue would be is it possible to have /lib/abi/MyCustom/Path/*.so instead of 
/lib/abi/*.so


This is because, at install time, only the *.so for the supported abi
of the given device are extracted from the apk and put in the app
install folder where they can be loaded from.

thanks a lot
MArco

On Wed, Aug 17, 2011 at 7:00 AM, Marco Bernasocchi
ma...@bernawebdesign.ch  wrote:

Hi, I'm porting QGIS to android and the code (native all crosscompiled with
ndk) should dinamically load .so from a specific folder (lib/plugins). is
there a way to preserve such a structure in the lib folder? If i just pur my
plugins folder into libs and run ant debug the apk has only the top level
shared objects. If I generate with ant release, then add the files to the
apk, sign, zipalign and install, the lib/plugin folder still does not exist.
any suggestions? (I'd rather not change the code since it is a big qt based
project and less hacks are better)

ciao Marco

--
You received this message because you are subscribed to the Google Groups
android-ndk group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to
android-ndk+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/android-ndk?hl=en.







--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en