Android :: SecurityException / Permission Denial Requires Null
May 20, 2010
I would like to launch the market from a preference screen but when I try to do this I obtain a java.lang.SecurityException: Permission Denial: starting Intent { cmp=com.action.test/.ui.activities.Test } from ProcessRecord{44db1300 3697:com.pippo.pluto/10067} (pid=3697, uid=10067) requires null.
This is my code:
startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse("market://search?q=pname:com.action.test")));
what am I doing wrong?
View 1 Replies
Jun 21, 2010
I use Instrumentation to test PhoneApp I wrote my test application via Instrumentation
I created apk and installed it on Nexus One - Android Phone - this passed In my code I am using internal classes that are not a part of standard SDK. I build it not in Eclipse but in my embedded env. I am eng in company that developing for Android so I have and Android tree with all internals libraries.
I use appropriate permissions in my manifest. my apk created probably signed with some signature! But probably this signature not good enough.
Now I run test via adb and got this error immediately:
CODE:...........................
View 1 Replies
View Related
Jul 5, 2010
I am getting this error on my log
CODE:.......................
I used like this in activity file
CODE:.........
in manifest file
CODE:.................
Why it is giving error.
View 2 Replies
View Related
Oct 21, 2013
motorola Atrix 2 " Requires ROOT permission" how to change it and give permissions...
View 3 Replies
View Related
Nov 23, 2009
I have as an example, this provider information from the PackageManager. Code...
View 2 Replies
View Related
Nov 13, 2009
I use Android 1.5 on HTC Hero. I've a mapapp that needs GPS functionality. Sometimes when I start up the application I get the following error.I check that "Enable GPS sateliites" setting is checked. One more piece of information. Whenever I get the error, I reinstall the application, it works ok. Google Maps works fine. What is wrong with my code?
View 2 Replies
View Related
Jun 9, 2010
I've been working on an application for the past week or so, and when I went to test it the other day, my console read the following to me:
CODE:............
The icon for the program is present in my emulator, and I have added android.permission.ACCESS_CHECKIN_PROPERTIES to my Manifest.
For some reason the emulator tells me that the program is not installed "on this phone" when I try to run the program using the icon in the emulator. Which I find interesting considering that the console says it was installed successfully..
View 1 Replies
View Related
Nov 3, 2009
I've been doing Android application development for Android 1.5 on Debian etch (4.0), and things were going okay. I then tried upgrading the SDK to support more recent platforms. The problem is that the vast majority of the tools that are executables (I'm not counting shell scripts) seem to now depend on glibc >= 2.4. When trying to execute them, or passing them to ldd, I get an error like:
./aapt: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.4' not found (required by ./aapt)
On Debian, the file /lib/tls/i686/cmov/libc.so.6 is provided by the libc6-i686 package, which on etch is version 2.3.6.ds1-13etch7, but on lenny I see that the version has increased to 2.7-18.
I can think of a few workarounds: - Copy the required libraries from a supported platform and point to them with LD_LIBRARY_PATH when using the affected executables. - Download the sources for the tools (e.g. http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;...) and build my own local versions for Debian etch. - Give up using Debian etch and switch to another platform.
All of these are potentially viable alternatives for me, so this isn't a show stopper, and indeed http://developer.android.com/sdk/requirements.html says that it's only tested for GNU/Linux on Ubuntu Hardy Heron, which uses version 2.7-10ubuntu5. Nevertheless, it's somewhat annoying, and I'm wondering if anyone has any thoughts, or if the Android team even knows of the issue. I'm guessing that sometime in the transition from 1.5 to 1.6, they switched from an earlier Ubuntu version (I have to go back to Dapper, which uses 2.3.6-0ubuntu20.5, to find a pre-2.4 version) to Hardy, and this was just a side effect. But I'd be surprised if there was anything specific in the source that really required libc 2.4, and it's possible that if they were just building with an appropriate compiler flag that backwards compatibility could be maintained.
This affects all platform-specific tools for platforms >= android-1.6 (so aapt, aidl, and dexdump), and it affects all platform-agnostic tools (except for hprof-conf and mksdcard; so adb, dmtracedump, emulator, sqlite3, and zipalign) installed with the new modular sdk download (android-sdk_r3-linux.tgz) available starting in the android 1.6 timeframe (the corresponding tools from the android 1.5 timeframe in the monolithic SDK download of android-sdk-linux_x86-1.5_r3.zip work fine).
View 2 Replies
View Related
Apr 21, 2010
I had to reload XP and Eclipse + android of course. I am using the 2.0.1 SDK version/ API 6.Everything was fine before, Now the project doesn't load- I get:
[2010-04-21 09:59:24 - LatLonQ] Android requires .class compatibility set to 5.0. Please fix project properties.
View 2 Replies
View Related
Oct 15, 2010
I have a question about a simple application, the only permission that i have set is Internet, because it's a simple application that reads something on the net. Anyway, the app requires to me (when i install it) three permissions, Internet, SD Storage and Phone usage.
Anyone knows why happens this?
View 2 Replies
View Related
May 1, 2010
I am trying to port my usage meter from a JavaScript Gadget (win) / Widget (OSX) to Android. Total newbie when comes to JAVA + Eclipse + Android 2.1 SDK. Essentially what I want to do is load a page, pass through a username and password and load the resulting page into a array that I can then run some regular expressions through.
My code from JavaScript (I've replace the actual URL with a dummy one) is:
xmlhttp.open("post","https://acme.com.au/your_account/index.php?function=login",false);
xmlhttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send("check_username=" + username + "&password=" + password);
I need to know the Android equivalent to the above please. I've played around with WebView but that loads the page in a web browser which isn't what I want.
View 2 Replies
View Related
Aug 7, 2010
I'm working on an app for a client that requires streaming of an AAC audio stream. Unfortunately, there's nothing I can do about the stream format on the server. I'm working on Android and have discovered that Android's media player does not support raw AAC streams (which is what I'm getting). I found a project on Google Code that supports it (I tested it with the stream) but it's GPL'ed and that doesn't work for my client. I don't have much experience with this sort of thing so forgive me if my ideas aren't great. I know Android can play AAC encoded content if it is in an MP4 wrapper so I had thought about creating an MP4 wrapper on the fly on the client-side or perhaps even just doing some conversion to another format on the fly. Are these reasonable options? Does anybody have better suggestions?
Edit To rephrase, is it possible to put a raw AAC stream from a web server in an MP4 container in real time? If so, does anybody know of resources to help me with the process?
View 1 Replies
View Related
May 27, 2009
I have Android Dev 1 phone. I try to install my app to phone. But error is occurred. How can I solve this problem? I use SDK 1.5 version. but when I made app, I use API 1.1.
View 3 Replies
View Related
Mar 13, 2010
I am putting top-notch security on my phone. I have mobile defense where i can see where my phone is and do a bunch of stuff with that app. But everything can go wrong if they turn my phone off. So is there an app where I can add a passcode or some password for when I shutoff my phone.
View 6 Replies
View Related
Dec 15, 2009
My old development process allowed me to make any change in the java code and use eclipse's Run button to install the updated package to the emulator.
Now I get [2009-12-15 11:51:55 - Scoopful]Application already deployed. No need to reinstall. even though the code has changed.
I realize the manifest version Code is used to determine if the app has changed and it works fine if I bump up that number. This did not used to be necessary and it slows down development when I have to enter AndroidManifest and make a change with every deploy to the emulator. Is there a way around this?
View 4 Replies
View Related
Jan 29, 2009
For launching a camera from appl which action requires?
If start a camera from my appl and captured image, how should I pick-up (retrieve) that current image to my appl from camera provider. what is process for this(which Uri).
View 4 Replies
View Related
Apr 9, 2009
I have a main activity class that launches a couple of my subordinate activities from a tabHost.
Periodically (actually when I receive an incoming message on a socket), I want to inform the subordinate activities that application state has changed so that they can refresh their views.
In Swing I could wire this together using something like a PropertyChangeListener. As far as I can see, the Android design philosophy requires creating an Intent and broadcasting to (as far as I can tell all) other activities that are running.
This strikes me as overkill considering that I'm only trying to notify my own views of a model change. Am I missing something?
View 2 Replies
View Related
May 20, 2010
I'm trying to create class with generics that will have ability to serialize its state using Parcelable interface.
The problem is that class has to contain constructor with single parameter - Parcel, but in my case I need to create class with additional parameters.
Besides, Parcelable.Creator doesn't allow to use generics.
Here is an example:
public class Sample<T> { ...
public Sample(Context ctx, SomeInterface iface, Parcel parcel) {...}
...}
What is the best practice to do it?
View 1 Replies
View Related
Jan 5, 2010
I will try to modify native Camera package in Eclipse. So, I make Camera project in Eclipse and try to compile it. But, "Platform Eclair is a preview and requires application manifests to set minSdkVersion to 'Eclair'" error message is shown. Does it mean minSdkVersion information should be inclused in Camera manifests.xml file as "Eclair"? If there are anyone know this, please share your valuable information.
View 2 Replies
View Related
Sep 21, 2010
I tried to create a edittextbox, and button next to it, in the status bar.! I created it and tried to launch the browser activity, when somebody enters a URL in the textbox & click that button.
I get runtime exception as below.Can anyone please help what is the issue with this exception ? I know that Status bar is not a seperate activity. It is part of 'PhoneWindow'.
CODE:.............................
View 7 Replies
View Related
Jun 20, 2012
I have been working for transplanting apps, but I couldn't know what libraries the app requires. So, isn't there any way to know the necessary libraries? SHW-M110S
View 4 Replies
View Related
Mar 2, 2010
I just got my eris today. it says that i need to do an OTA update that requires 40% of battery, and that i will not be able to use my phone for the duration of it.is that the first update that messed up the you tube app? and what does that update give to me that i dont already have?
View 12 Replies
View Related
Sep 19, 2010
Work staff planner is a programe called Kronos, this requires Java to run fully. Can I get Java on the Desire so that it will allow me to run Kronos? Any thoughts would be appreciated as I need to be able to access this from the phone.
View 2 Replies
View Related
Nov 21, 2010
Been complaining about my moment something terrible. Went Friday spent the money and renewed my contract to get the EVO. The guy warned me about the battery on the Evo being bad. I didn't listen since my friend in work plays with his for 3 hours before getting a low battery. Got the Evo and charged it friday from 11am till 4pm. Light turned green full battery. Didn't mess with it much cause I got busy. Had 3 calls about 5 minutes each. Got on the internet for 10 minutes. Phone had gone down 1 bar at 8pm and didn't use it after that. Went to work at midnight to work overtime to pay for the phone, pulled it out at 2am "RECHARGE BATTERY". Ok, charged the battery from 2am till 5:30am. "full charge". Played with the phone about 10 minutes setting it up, made a 10 minute call, 8am when I got home played with it for 5 minutes. Took a nap, woke up at 1pm, RECHARGE BATTERY. Ok, charged it from 1am till 6pm. Green light, battery charged. Made 3 calls, looked on facebook for 10 minutes, sent 5 text messages, went down 1 bar. From 8pm till 3am I slept. Woke up at 3am, grabbed the phone, it was turned off. Turned it back on, powered up, "RECHARGE BATTERY", phone shut back off. THIS IS RIDICULOUS WITH THESE PHONE BATTERY.......
View 10 Replies
View Related
Apr 28, 2010
I ordered my Incredible today, online and received my shipment notice within an hour. I noticed on the shipment notification that FedEx requires a signature upon delivery. I'm not too familiar with FedEx so i was wondering if anyone has had experience with this. I will not be home so i was wondering if i can leave a note for the FedEx person to leave the package on my doorstep or if they'll leave a note saying they were there and will try again the next day. (Like UPS) Another day won't kill me, but i'd like to charge it and play with it tomorrow when i WILL be home.
View 15 Replies
View Related
May 5, 2010
I was wondering if there is a good app like TCPMP for windows based smart phones that can be used for streaming video that launch video in MediaPlayer.
Also, for some reason I have trouble watching HULU on my droid, even in the Skyfire2.0.
View 1 Replies
View Related
Jun 30, 2010
Alrighty so im very tempted to go to Zenexp and have my nandroid backups and everything, does the nandroid backup my apps too? I also have my ext. backed up can i wipe and do factory reset and still be able to go back to my old image? Also do I have to partition my SD card again?
View 4 Replies
View Related
Mar 13, 2010
my wife's BH2 is having connection problems. When using 3G/Edge/etc... she's unable to access anything that requires a connection. Facebook, her weather widgets, gmail, browser, etc...
I assumed a factory reset would work, but is there anything I can before resetting?Nevermind. Apparently I can get connection now. Facebook for Android is still giving me that connection prob.
View 1 Replies
View Related
Apr 8, 2013
I've just published an app to Google Play. It is an app that allows people (mostly tourists) in my area to easily find businesses around them. One functionality that my app offers is to make a phone call to these companies by tapping a button in the app, including emergency numbers.
Google Play says that the app requires "direct phone access, it can call phone numbers without your intervention, which can lead to a high phone bill, but not emergency numbers". This doesn't completely fit my intention.
My app would work just fine if it had to ask the user every time it wanted to make a call, and it doesn't call anything when no buttons are tapped, plus I DO want the app to be able to call emergency numbers (with the user's consent off course).
View 4 Replies
View Related
Oct 22, 2010
Running a Bell Galaxy-S with 2.1 and the OCLF. Recently when I lock my phone or it just goes to sleep (screen shuts off) I can't unlock it. The screen just stays blank and it requires me to pull the battery and replace to boot it back up. There doesn't appear to be any consistency with this error and I haven't installed any new apps in recent time that would have changed the phone around.
View 2 Replies
View Related