07-28-2012 10:08 PM - edited 07-28-2012 10:09 PM
Using the NDK, is there a way to determine if an app was loaded via AppWorld (vs side loaded) on the PB (os 2.x)?
07-29-2012 03:40 AM
07-29-2012 04:17 AM
07-29-2012 11:05 PM
Yes, I am trying to determine a method in C++ (NDK) to determine if my app was installed via AppWorld or via sideloaded. In this way I can stop the app from running if it was sideloaded.
There is talk of using "/pps/system/installer/registeredapps/applications
Any other ideas?
07-30-2012 09:21 AM
07-30-2012 09:39 AM
When I said it "does not seem to work" I mean the following
1) Open the file with a QFile, with and without using both a QTextStream or a QDataStream. The file opends (with read permissions). call read() readline(), readdataline() all return 0. No error just 0, and the pos() of the file does not move. I even tried using seek() to move the file position pointer ahead one byte at a time and still no bytes are ever written.
2) Open the file with a FILE (pure C), all of the above is still true.
So, I am at a total loss.
Here is one sample of code:
if (InFile.open(QIODevice::Text | QIODevice::ReadOnly) == false)
while (InFile.atEnd() == false)
LineIn = InFile.readLine();
(prints "" for ever as the position pointer is not moved in that example as it is always reading 0 chars)
08-30-2013 05:08 PM