flashlight app error - Android Studio

Anyone can fix it?
Incompatibe type:
Required =android.graphics.camera
Found=android.hardware.camera

prince palash said:
Anyone can fix it?
Incompatibe type:
Required =android.graphics.camera
Found=android.hardware.camera
Click to expand...
Click to collapse
Cant help without seeing the Code.
But I can find android.graphics.camera in the java. Maybe you are missing some files from install?

Related

Downloading zip files

After hours of no help from searching, please tell me how I can download zip files with my 8925 Tilt! I continuously get a message stating Central directory could not be found denying me the download. Will some one help myself and others with this?
THX!
8925 Tilt
You can try this.
Edit: found your name asking same question in ppcgeeks with no answer.
Update: Probably it's a problem caused by web-server, nothing to do with client browaer side, check here:
http://forum.maxthon.com/viewthread.php?tid=6217&extra=&page=3
wg5566 said:
You can try this.
Edit: found your name asking same question in ppcgeeks with no answer.
Update: Probably it's a problem caused by web-server, nothing to do with client browaer side, check here:
http://forum.maxthon.com/viewthread.php?tid=6217&extra=&page=3
Click to expand...
Click to collapse
Thanks for trying to help me, but no go. Isn't there a tweak for the command line of zip file in the registry?
Can you open a zip file from local, ones already in your phone?
wg5566 said:
Can you open a zip file from local, ones already in your phone?
Click to expand...
Click to collapse
Yes, ones I already had on my SD card from my previous device -Wizard.
What if you install pocketrar (or another zip tool other than current default) and set it as default app to open zips?
I still think it's server side probs. Especissially if it not happens to all site. How many web-sites you tried?

Problem with Eclipse

Ok I tried looking on the forum for a similar problem with Eclipse but I can't seem to find anything of interest.
Basically I'm trying to start a new Android Project, the menu that pops out is missing the list of target sdks, and therefore I cant proceed with the setup of the project. Anyone had a similar case?I ll try to provide you with some screen caputres.
Im running Ubuntu 9.10 and the latest updates. Thanks for all the advice
Not to be annoying but this is in the wrong sect.
Post in Q&A sect when you have a question.
I've gotta say, it is pretty misleading with the whole "development" section, just remember that development is for publishing and the rest goes in the other subforums.
Did you try to -
Buy it?
Use it?
Break it?
Fix it?
Trash it?
Change it?
Mail - upgrade it?
Charge it?
Pawn it?
Zoom it?
Press it?
Snap it?
Work it?
Quick - erase it?
Write it?
Cut it?
Paste it?
Save it?
Load it?
Check it?
Quick - rewrite it?
Plug it?
Play it?
Burn it?
Rip it?
Drag and drop it?
Zip - unzip it?
Lock it?
Fill it?
Call it?
Find it?
View it?
Code it?
Jam - unlock it?
Surf it?
Scroll it?
Pause it?
Click it?
Cross it?
Crack it?
Switch - update it?
Name it?
Rate it?
Tune it?
Print it?
Scan it?
Send it?
Fax - rename it?
Touch it?
Bring it?
Pay it?
Watch it?
Turn it?
Leave it?
Start - format it?
pk198105 said:
Ok I tried looking on the forum for a similar problem with Eclipse but I can't seem to find anything of interest.
Basically I'm trying to start a new Android Project, the menu that pops out is missing the list of target sdks, and therefore I cant proceed with the setup of the project. Anyone had a similar case?I ll try to provide you with some screen caputres.
Im running Ubuntu 9.10 and the latest updates. Thanks for all the advice
Click to expand...
Click to collapse
have you installed the Android Plugin (ADT) via Help --> install software
then the Android SDK via Window --> Preferences --> Android
some instructions here
http://developer.android.com/guide/developing/tools/adt.html
Moved as not Android Development.
Firerat said:
have you installed the Android Plugin (ADT) via Help --> install software
then the Android SDK via Window --> Preferences --> Android
some instructions here
http://developer.android.com/guide/developing/tools/adt.html
Click to expand...
Click to collapse
yes i did , not sure what else im missing if any

[Q] Cannot Install Framework, get message Application not Installed

I cannot Install Framework, I download the apk, click on it, accept the permissions and then get message Application not Installed and nothing else. This is a fairly new phone with stock ROM. Rooted LG G3. Any ideas?
Can you post a logcat?
GermainZ said:
Can you post a logcat?
Click to expand...
Click to collapse
I am really new at trying to debug on Android. What is the easiest way to get a logcat? I searched a little but it looks a little complicated and I am not sure what process will give the best results.
Thank you!
christcb said:
I am really new at trying to debug on Android. What is the easiest way to get a logcat? I searched a little but it looks a little complicated and I am not sure what process will give the best results.
Thank you!
Click to expand...
Click to collapse
You can use an app like CatLog.
GermainZ said:
You can use an app like CatLog.
Click to expand...
Click to collapse
I am not sure how to use it. looks like a lot of crazy extraneous info, the only thing I can find about installing is this :
InstallAppProgress D Installation error code: -24
InstallAppProgress I Finished installing de.robv.android.xposed.installer
Edit : found a little more
cannot chmad dir '...xposed...' Operation not permitted
OK from that log into I did more digging, it seems somehow there was a orphaned folder that was blocking the install. I deleted the folder and now it has installed fine. Thank you so much for the help!!!
Good to know you got it fixed. Which directory was it?
GermainZ said:
Good to know you got it fixed. Which directory was it?
Click to expand...
Click to collapse
I forget the exact location but it was something like /data/data/de.robv.android.xposed.installer
christcb said:
OK from that log into I did more digging, it seems somehow there was a orphaned folder that was blocking the install. I deleted the folder and now it has installed fine. Thank you so much for the help!!!
Click to expand...
Click to collapse
Please help me how did u do this step by step I'm using an lg Optimus f3 and I'm having the same problem thnx

Give system service permission to external storage

Hi,
I'm studying how PackageManagerService works, and i noticed that if an application was downloaded to /data/app i can access the file and open inputstream .
but if APK was downloaded to SD card, i can't access the file from PackageManagerService.
is there something i can do?
I want to be able to read the APK before it get installed...
Thanks,
pi.publicSourceDir = apk file path
pyler said:
pi.publicSourceDir = apk file path
Click to expand...
Click to collapse
not sure i follow you.
I'm in the packageManagerService context, i don't have PackageInfo (the application is still not installed)
You could hook PermissionGranter and give the process extra permissions, or see where the system is actually parsing the APK's manifest before installing it.
GermainZ said:
You could hook PermissionGranter and give the process extra permissions, or see where the system is actually parsing the APK's manifest before installing it.
Click to expand...
Click to collapse
Thanks, what I don't understand is, if i give my xposed module permissions to read external storage, why does it still can't read it?
shnapsi said:
Thanks, what I don't understand is, if i give my xposed module permissions to read external storage, why does it still can't read it?
Click to expand...
Click to collapse
They're different processes.
http://forum.xda-developers.com/showpost.php?p=55332926&postcount=9
http://forum.xda-developers.com/showpost.php?p=55186575&postcount=2
GermainZ said:
They're different processes.
http://forum.xda-developers.com/showpost.php?p=55332926&postcount=9
http://forum.xda-developers.com/showpost.php?p=55186575&postcount=2
Click to expand...
Click to collapse
So just to make sure I understand, I can create a service and run it from the hooked method and it should work?
if so, i have another question
How can i stop the original method from running until a point i allow it to continue?
Thanks GermainZ !
shnapsi said:
So just to make sure I understand, I can create a service and run it from the hooked method and it should work?
Click to expand...
Click to collapse
I don't understand how you read that from my reply, to be honest. Here's what I meant:
Hooked code *is not* run as your app. The hooked code is run as the hooked app.
If the hooked app can't do X, then the hooked code can't do X either.
Your app's permissions do not affect the hooked code in any way, only normal (not hooked) code.
shnapsi said:
How can i stop the original method from running until a point i allow it to continue?
Click to expand...
Click to collapse
Using the normal ways you'd normally use if it weren't an Xposed module, in the beforeHookedMethod hook. I'm not familiar with the exact methods, you can look that up. Just be aware that blocking it for too long will cause an ANR.

Lollipop: initZygote() has no access to /data/data/<module package> files

In the initZygote() of a module, it is not possible anymore to access files under /data/data/<module package>.
For example, my module needs to load a native library in /data/data/<module package>/lib, with System.loadLibrary().
It fails with an error, as no file is visible under /data/data/<module package>.
Is there any workaround ? Is it possible to restore the pre-Lollipop behavior in Xposed ?
The comment for
Code:
SELinuxHelper.getAppDataFileService()
tells
Retrieve the service to be used when accessing files in /data/data/*
Click to expand...
Click to collapse
dont know how it works
defim said:
The comment for
Code:
SELinuxHelper.getAppDataFileService()
tells
dont know how it works
Click to expand...
Click to collapse
Thanks for the pointer.
I could fix my problem trivially by moving some code from initZygote() to handleLoadPackage() which has permissions to access its own data directory.

Categories

Resources