Hello Android Developers,
The following code allows me to pick an image only from /sdcard/DCIM/
Camera/, using the following lines:
Intent myIntent = new Intent(Intent.ACTION_PICK,
android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);
startActivityForResult( myIntent, 475);
How can I make it look in a different directory, to pick an image from
there? I have searched for the solution for a full day, could not find one...
Thanks in advance,
FalcoApps
help requested, anyone?
Last chance anyone?, otherwise, I'll need to rewrite the code to use another method, less intelligent...
Hello,
Sorry for my bad english...
I try to build a native application but i get a linkage problem.
Code:
...
/usr/src/android-ndk-r5/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-gcc -c -g -I/usr/src/android-ndk-r5/build/platforms/android-r5/arch-arm/usr/include test.c -o test.o
In file included from test.c:1:
/usr/src/android-ndk-r5/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/../lib/gcc/arm-eabi/4.4.0/include-fixed/stdio.h:50:23: error: sys/cdefs.h: No such file or directory
/usr/src/android-ndk-r5/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/../lib/gcc/arm-eabi/4.4.0/include-fixed/stdio.h:51:24: error: sys/_types.h: No such file or directory
...
I don't found sys/cdefs.h or sys/_types.h, there is juste sys/types.h exists, no other standard lib...
Can someone help me to clarify this situation ?
* Does Google forgot to put include on NDKr5 zip ?
* Or it's normal and so where can i found thems (cdefs.h & co) ?
Thanks a lot
Molux
Did you ever get an answer to this post. I have the same issue
A little late but these are outside of the actual toolchain, I found mine here...
-I/../AndroidNDK/android-ndk-r6/platforms/android-9/arch-arm/usr/include
why i no found folder 'arm-eabi-4.4.0' in ndk/toolchains ?
It's an old question, but it ranked high on Google searches, so the answer below may help a frustrated programmer or two:
Assume you just want to build a simple hello world application, and don't want to bother yourself with Makefiles.
Or maybe you do want to bother yourself with makefiles, but just want to build the same thing for Linux and Android, and just replace the toolchain. An easy going recipe is below. Versions numbers will change, principles will probably remain the same.
Assume you also got tired about figuring where the hell those crt* files are at, why the cross compiler insists on refusing to find your include files, and you are minutes away from doing the right thing and create a proper Android.mk file (or Gradle... see source link below for my personal thought about it [hint: they are not very positive]).
Then do the following, live long and prosper:
Host: linux-x86_64 . Target: ARM (thumb).
# Adding GCC wrapper for "stand alone" NDK:
$ export SYSROOT=$NDK/platforms/android-21/arch-arm
$ export CC_NDK="$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc-4.8 --sysroot=$SYSROOT"
Then you can build by invoking $CC_NDK ...
Use your own version of course. A similar method can be done with the AOSP/CM/whatever platform base you have itself, but that should get you going.
Source: http://ronubo.blogspot.co.il/2016/01/standalone-gcc-clang-cross-compiling.html
Thanks @ronubo. Helpful blog post on lkm debugging too.
sorry for my english, i´m a kraut
some people will remember my snooper i published in the ICS/JB-Thread.
I wrote a php-script the crawls the lg-servers for firmware. short introducing for a long time work
you can test it in action at: LG-Firmwarescanner Beta
what my script can do for you:
- search for fw´s for your LG-model (LGP920, LGP880, LGP920H, LGP925, LGP970, LGSU760 for now)
- search for specific version (froyo, gb & ics, ics only)
- search for final and beta firmwares, custom-folder needed for beta (useless until no folders a know so far)
- search for VxxA-VxxN & VxxA-VxxP (VxxN is quicker)
- write every found file to a txt-file
- zip&mail the txt-files
- upload the txt-files to a ftp
- write the results to mysql
- list the results from mysql
- download the kdz when a V29x is found
a readme and an english-version will follow.
note: the script runs "for me" in my own home-server/xamp. if somebody finds the reason for non-working on hosted-server, pleas let me know.
screenshots in attachment
requires a php5-environment, unrar the content to a folder with 777 permissions
beta6:
bugfix
example added, rename config.example.php to config.php
NEW SERVER ! [EDIT: old server again, script killed the 3rd server in a row
I don't see why we need more than one person running this script.
Sent from my phone.
Configuration
sorry for my english, I need an example configuration of your script on xampp, you can?
make sure the folder you put the files is has permissions 0777.
click the three boxes "deaktivieren" and click "Speichern"
here is an example-config, extract the two files and start index.php
thank you
thank you very much for your help! another thing on your site: http://wittgenstein.homeserver.com/P920 not performing the scan of the beta versions.
Edit 13:09 : sometimes does not work scan for beta ! anyway good job really !!!
fabersantucci said:
thank you very much for your help! another thing on your site: http://wittgenstein.homeserver.com/P920 not performing the scan of the beta versions.
Edit 13:09 : sometimes does not work scan for beta ! anyway good job really !!!
Click to expand...
Click to collapse
when you scan for beta you need a custom folder, without folder no scan
Do you know some folder ? Is there a tip to find there folders ?
Sent from my LG-P920 using xda app-developers app
fabersantucci said:
Do you know some folder ? Is there a tip to find there folders ?
Sent from my LG-P920 using xda app-developers app
Click to expand...
Click to collapse
No custom-folder for the 920 is known so far. bruteforce ist useless
I know this will be an exteme solution and would literally take days and not even sure if it will work, but can you make a script which automatically runs generated custom-folder to try and find a beta file, ie from aaaaaa to zzzzzz and 1-9, and it saves what it has already searched by any user . so it starts from aaaa and then moves aaab , but it saves that its already searched aaaa and so if someone else tries it starts from aaac, if that makes sense. Then as a community we can continue running the script
let me triy to explain with an example below
so the script starts at custom-folder
aaaa --then completes the set (28,29,30,31) then moves to
aaab --then completes the set moves to
aaac --then completes the set moves to
aaad---and lets say that user decides to close the script. but another user comes along and wants to run the script, instead of starting from
aaaa ---the script saves the folders which have been serached and its starts from
aaae
rezzsha said:
I know this will be an exteme solution and would literally take days and not even sure if it will work, but can you make a script which automatically runs generated custom-folder to try and find a beta file, ie from aaaaaa to zzzzzz and 1-9, and it saves what it has already searched by any user . so it starts from aaaa and then moves aaab , but it saves that its already searched aaaa and so if someone else tries it starts from aaac, if that makes sense. Then as a community we can continue running the script
let me triy to explain with an example below
so the script starts at custom-folder
aaaa --then completes the set (28,29,30,31) then moves to
aaab --then completes the set moves to
aaac --then completes the set moves to
aaad---and lets say that user decides to close the script. but another user comes along and wants to run the script, instead of starting from
aaaa ---the script saves the folders which have been serached and its starts from
aaae
Click to expand...
Click to collapse
great idea, but already done
http://weiko.mygigahost.de/LG/brute.php
all custom-folders seems to be 10 caracters, capital letters mixed with numbers
well ive got it running lol, but does this look for the folder only, or the whole file like a kdz, because i think if its searching just the folder it will never be found, since it still shows a "connection" when you try to look for a folder that you can download a kdz from , i could be wrong,
ie: lets say when you try this link it'll download the file http://csmg.lgmobile.com:9002/swdata/WEBSW/LGP920/AHASML/V20e_00/V20E_00.kdz
but when you try link below, it always shows not found
http://csmg.lgmobile.com:9002/swdata/WEBSW/LGP920/AHASML/
or is that how it works with the beta folder?
Try again: http://weiko.mygigahost.de/LG/brute.php
when my script tries to access an existing folder, answer is: HTTP/1.1 405 Method Not Allowed, because indexing is off
when it tries to access an unexisting folder: HTTP/1.1 404 Not found
my script dies, when it gets an 405-answer.
[edit]
the script writes every folder to database and take another folder when its found in database
but, i said it already, it´s useless.
26 possible letters + 10 possible numbers = 36
10 letters per folder = 36*36*36*36*36*36*36*36*36*36 =
3.656.158.440.062.976 combinations
rezzsha said:
well ive got it running lol, but does this look for the folder only, or the whole file like a kdz, because i think if its searching just the folder it will never be found, since it still shows a "connection" when you try to look for a folder that you can download a kdz from , i could be wrong,
ie: lets say when you try this link it'll download the file http://csmg.lgmobile.com:9002/swdata/WEBSW/LGP920/AHASML/V20e_00/V20E_00.kdz
but when you try link below, it always shows not found
http://csmg.lgmobile.com:9002/swdata/WEBSW/LGP920/AHASML/
or is that how it works with the beta folder?
Click to expand...
Click to collapse
http://csmg.lgmobile.com:9002/swdata/WEBSW/LGP920/AHASML
try this
delete latest slash
oh right, and then we can then plug it into the "custom-folder" and search it there , that makes sense. So do you, as in you , actually see if there is a 405-answer, or is it recorded, if it ever finds one?? you know just in case someone does run the script and comes across a 405-answer, but doesnt know where to go from there
i got 405 on http://csmg.lgmobile.com:9002/swdata/RNDTESTSW/LGP920/NEU/ , but it doesnt show which cutom- folder it came from
rezzsha said:
oh right, and then we can then plug it into the "custom-folder" and search it there , that makes sense. So do you, as in you , actually see if there is a 405-answer, or is it recorded, if it ever finds one?? you know just in case someone does run the script and comes across a 405-answer, but doesnt know where to go from there
Click to expand...
Click to collapse
for now, it writes every 405-folder in database too, marked as 405 .
yeah it would be ridiculouslytime consuming, but theres no other way..yet
Are you able to put it onto a online server which continues the process, so its always running??
rezzsha said:
yeah it would be ridiculouslytime consuming, but theres no other way..yet
Are you able to put it onto a online server which continues the process, so its always running??
Click to expand...
Click to collapse
no, afaik php needs a browser to run.
any chance you can add the P870? My wife just got this phone for free and i'm trying to find a backup kdz just in case
Markyzz said:
any chance you can add the P870? My wife just got this phone for free and i'm trying to find a backup kdz just in case
Click to expand...
Click to collapse
Post the result of this:
csmg.lgmobile.com:9002/csmg/b2c/client/auth_model_check2.jsp?esn=IMEI
replace IMEI with.... your IMEI but delete your IMEI from the results before posting
<?xml version="1.0" encoding="utf-8" ?>
<response req_cmd="auth_model_check" status="FAIL" />
didnt work
do i need to activate the device first?