Android :: Modified ACTION_VIEW Intent?
Jul 15, 2010
I execute the following code:
CODE:....................
Which opens the image viewer activity but I don't want to see the navigation arrows as well as the items in the menu. I only want the zoom controls. Is it possible to have it like that ?
View 2 Replies
Aug 5, 2009
I have an image file on my sdcard and the path to the file is: /sdcard/apps/MyPath/1249487966270.png
When a user clicks a button on my application I want to display this image to the user. Inside of the click listener I'm using the following code:
CODE:........
The button click event happens, the activity is started and then it is ignored. Nothing appears!
Watching the log through DDMS I see the following entries:
CODE:...........
What am I doing wrong? Why am I getting "Window already focused"? I want to use the default activity for viewing the image (the camera's ViewImage class). But this is not working.
View 2 Replies
View Related
Mar 23, 2009
I have an application that needs to have a user visit a web page to authorize it. After spending time in the Browser the user should return the my application.
Currently, I'm launching the Browser with:
CODE:................
After using the browser, I can go back home and launch my application, which stacks a new Activity on top of the previous stack of Activities that were being used in the application. For example. If the user launches the app, they have Activity A in the stack. From there we navigate to Activity B which then launches the Browser. Then, the next time we enter the app, we launch Activity A, which is pushed onto the stack that already contains an A and B.
My question is then, how can I just go back to the previous stack? Basically, do I have to create a new Activity? Is there a better way to launch the Browser, and then come back to my application?
Also, I've been using the Intent.FLAG_ACTIVITY_NEW_TASK when I start the Browser activity so that my app stays running.
View 2 Replies
View Related
Sep 22, 2010
I try and open up a new activity, pointing to the market, with the following code:
CODE:......
It works fine on the device, but the Emulator throws an Exception:
CODE:....
I'm not sure if this is just an emulator thing, or whether this could replicate on a real device?
View 4 Replies
View Related
Nov 13, 2009
I have a folder on sd-card in which I keep photos edited in my application. Im trying to force deafult android image viewer to see all pictured in that folder. Unfortunately I am able to see only one picture. The "next" and "previous" arrows are disabled.
The code i use to see only one picture:
CODE:.....
How to activate the browsing option? how to call the intent so that every picture in that folder would be visible?
View 2 Replies
View Related
Oct 9, 2009
I would like to run an ACTION_VIEW with memory data.
The first solution is to write data in a file on sdcard but ... it does not seem so efficient. I was thinking to implement my own content provider, but as far as I understand I need to return an ParcelFileDescriptor. I found a MemoryFile implementation in SDK, however I don't know how to get a ParcelFileDescriptor for a MemoryFile.
View 2 Replies
View Related
Jul 27, 2010
I have an application that sends messages to a specified contact. Right now I use
CODE:..............
To send messages, and it works great on the emulator and on my N1. I got complaints from users with HTC incredible that they get force close from android.mms application when they use it. I did more digging and I see there are many ways for sending messages.
For example
CODE:........
And also
CODE:....................
They all seem to work exactly the same on the emulator and on my device, and I could not find anything official about the correct, generally supported way.
View 2 Replies
View Related
Jun 2, 2010
I have an app that downloads a pdf from a server and tries to open it with an itent:
Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); File file = new File(filepath+filename); intent.setDataAndType(Uri.fromFile(file), "application/pdf"); try { startActivity(intent); } catch (ActivityNotFoundException e) {
View 2 Replies
View Related
Aug 25, 2010
I've been using the ActivityGroup class in my project for some time now but today I encountered a bug in the framework (http:// code.google.com/p/android/issues/detail?id=10083) that's preventing me from using the destroyActivity method. The fix for the bug is simple and I'm wondering if its safe to just fix the bug and copy the ActivityGroup (and dependent classes) into my project and use it locally instead of from the Android frameworks?In general, would modifying Android frameworks and using them locally in a project break future compatibility or backfire in other ways?
View 4 Replies
View Related
Jun 9, 2010
is there a way to find out the last time a contact was modified?I can't seem to find a variable for it. The reason I'm asking is because I'd like to do a sync of the contacts to my web server and I don't feel like checking for each contact with a HTTP request if it needs updating.So I was thinking to check the date of the last update to the date of the last sync.
View 1 Replies
View Related
Aug 5, 2012
Downloaded worldpay.apk available from their site. I have a rooted sanei n10 and updated ICS os. Anytime I try and open app it says ' the operating system of this device has been modified. Due to credit card security measures this app has been disabled' or a message very similar to this. I know some people had similar issue with barclaycard pingit but the fix for that doesn't work in this case. Ie install superSU, uninstall superuser, install hide my root. Hide my root always fails to hide su binary and says there is no su app to hide.
View 1 Replies
View Related
Jul 6, 2010
I am using a gutted version of the Snake Android sample. Pretty much I am using the TileView class verbatim and am only trying to display a few tiles on the screen. Instead of the SnakeView class I am using a GameView class in which I only included the code I thought necessary to display a tile on the screen.
Here is the class
CODE:...............
Now what is happening is that when the updateWalls() method is called, the tiles are placed within the View and comes up like this:
Now when I uncomment out the updateCellularArray() method and comment out the updateWalls() the program force closes and throws a NullPointerException. After some debugging I figured out that when the updateCellular array method is called, the mTileGrid array in the TileView class is not initialized, but it is when updateWalls() is called. I am completely baffled as to why this is happening. It doesn't matter if i replace the for loop with a simple setTile(GREEN_STAR, 3, 3); it still force closes.
Here is the TileView class I am using (again this is the same one in the Snake sample that comes with the Android SDK):
CODE:.......
simplified GameView class
Alright after modifying the updateCellularArray() method to the following:
CODE:........
It finally placed the tile where I wanted it to...
I'm starting to wonder if it has something to do with the RefreshHandler. Possibly when the RedrawHandler's sleep method is called in the update method of the GameView class. I'm not quite sure how it works so I am going to try playing around with it and see what I can come up with.
View 1 Replies
View Related
Mar 1, 2010
In my android app, I have a preferenceScreen with some checkboxes defined in a xml file and a class that implements "SharedPreferences.OnSharedPreferenceChangeListener". What I want to do is to select a checkbox and all the others to be selected as well. In the above listener I am able to modify the other checkboxes's state to selected, but my view remains unchanged. What should/could I do to achieve this ?
View 1 Replies
View Related
Jul 23, 2010
This is by far the most awesome, modified default music Android player, created by Eliot Stocker. This is version 1.6, which is an older version, but his newest that supports Eclair 2.1 (all the newer ones require Froyo).
View 10 Replies
View Related
Oct 4, 2013
After sending my tablet to a maintenance service I need to verify if the current ROM is not modified and injected malware.How to do it?Anyway to check the checksum of something like that?
View 5 Replies
View Related
Sep 30, 2013
I modified the resources for a Google app - Keep. Resigning the APK doesn't work, because it breaks access to Google Drive API, but just replacing resources.arsc in the device (I have root access - CM10.1) with rebuilt one worked. The result works fine, however after day or so Keep is uninstalled from device automatically. I guess that's because the signature of resources.arsc is obviously broken. But is there a way to avoid this automatic uninstall?
View 4 Replies
View Related
Jul 24, 2010
I installed a boot animation per the instructions here (http://androidforums.com/tips-tricks-evo-4g/109120-how-install-new-boot-animation-without-root.html. I left the "Droid" mp3 in the localdata folder, and did not alter the config file. I'm using Pseudoram's boot file from [Collection] Custom Boot Animations and Splash Screens - xda-developers.It plays the sound sometimes, and sometimes not. Anyone know why?
View 3 Replies
View Related
Dec 4, 2013
I am trying to update my phone's software up to 4.2 but it says "not possible because the device is modified" is it normal or is it my phone? GT-S5310
View 2 Replies
View Related
Oct 6, 2009
Hero newbie here. I'm currently a Blackberry user (the Pearl, smallest BB made, had it for 2 years), and have decided I want a larger screen and better browsing capability. I use the Blackberry "BIS" service, which means that I don't have wireless sync w/my company's exchange server - I sync contacts/calendar/notes via bluetooth with Outlook on my PC, and get email OTA of course. So I've been thinking about the Blackberry Storm2 to get a larger screen, etc., but when I saw the news today that the Hero is coming to Verizon I did a double-take. I've done some research and the interface and user customization available on the Hero look just great, best I've seen to date.My biggest concern is how it will work for managing my Outlook email/contacts/calendar/notes, and multiple gmail accounts. So what I'm curious about...
1. I have four gmail email accounts - I assume I can set up all four on the Hero, correct? What is the max number of email accounts I can set up on the Hero?
2. I can not sync my Outlook calendar/contacts to Google due to company security issues, so I can't use the Hero's Google wireless sync capability. Will the Hero Sync app allow me to sync Contacts/Calendar/Notes from Outlook to the Hero via USB?
3. If I modify a contact, calendar event, or outlook note on the Hero will Hero Sync the modified back the update to Outlook?
4. If I receive an Outlook meeting invite on my BB, it automatically appears on my BB calendar, meeting reminders appear, etc. Does the Hero have the ability to automatically add new meetings to my Hero calendar when meeting invite emails arrive on the phone?
5. Any issues w/setting up a work email account (Exchange) on the Hero? (I do have IMAP access to my work email account.)
6. The BB provides an individual email folder for each account, as well as an aggregate email folder that displays all messages received from all email accounts in date order. Does the Hero also offer a way to view all emails received from all accounts in a single folder?
View 10 Replies
View Related
Jul 4, 2010
I was trying to install a modified theme musicgoogle.apk. The stock musicgoogle.apk is now gone from my phone. I backed up the stock apk first of course, but I cannot install it, or the modified theme apk.
View 2 Replies
View Related
Nov 26, 2012
If u still don't understand what I am trying to ask here is the full story
Brother I am on stock jellybean I have never rooted never flashed my device it says this after the official jellybean 310 mb update and I have already has a fight with Samsung over this 5 months back approx whenever I got the phone it so happens that this piece is a replaced one the previous one I had had problems with it so I got it replaces and as soon I got it replaced and opened it (it came sealed like a new one) sir I let the Samsung care guy update the firmware via Odin and I never saw what the status was when it came so I had a fight with Samsung I said they gave me a modded phone out of the box and they're fuse to accept saying that the piece was new and whatever happened just have been done by me... They refused me another replacement and since then the status of my device fluctuates between modified and normal once every few boots.. But it never gave me this dialog saying that my device is modified and I will not be able to update ..
In download mode
It said custom binary downloads no
Current binary Samsung official
Custom binary downloads no.
Current status custom
And in kyu phone setting.also ur is said status as custom Why is this so I have never modified my device nor rooted The above is one half of my story the other half is when.I open download.mode.it says
#manuak mode #
Apply multi csc
Applied csc code INU
Successfully applied multi csc
And when I try to check software upte via settings it shows this
So what he he'll is wrong with ny device i only ran the official update... Will I get warranty I have never hacked nor modded And this screen which I am getting in download mode is bit the normal one
View 3 Replies
View Related
Mar 13, 2014
I'm getting this error when trying to update my system on my Samsung Galaxy Grand GT-I9082.
My current version is 4.1.2 and I want to update to 4.2.2, but I keep getting that error. I tried wiping the cache. My device has never been rooted. I bought my phone new and packaged and I did not root it. The status says that it's custom and I can't figure out how to solve this. I've read around that removing the SD card and updating works, but I don't have a SD card in my phone.I go to the Settings -> About Device -> Software Update -> Update.
View 2 Replies
View Related
Dec 18, 2012
I'm asking this because HBO Nordic which recently became available in Scandinavia won't allow me to use my rooted ASUS TF101 for streaming. The HBO Nordic app says "Service is not available on this device because it has been modified."
I'm thinking one of two options might work:
1. Revoke one or more permissions
2. Modify build.prop
Permissions list can be seen here: [URL] .....
I should add that HBO Nordic works on my Galaxy Nexus which is currently unrooted but has an unlocked bootloader.
View 6 Replies
View Related
Dec 16, 2013
My photos all at once disappeared from my gallery. If you look in the folders they are all still there but all of the old photo's have the same Authored Date (7/23/2003 6:36 PM) and the same Date Created (5/9/1970 11:20 PM) the Date Modified is unique as it is the actual date the pictures were taken... These files are not hidden. I do not remember exactly what day I upgraded to 4.3 but it would have been right around the time that the issue started. I tried Scan Media and Rescan Media apps with no success.
Galaxy S4
SGH-I337
Jelly Bean 4.3
View 8 Replies
View Related
Aug 21, 2013
I own a Xiaomi MI2S, running MIUI-3.8.16 @ Android version 4.1.1.JRO03L with Baseband version CEFWMAZM-2.0.128 017.
From my phone provider (Tele2) i have to dial a 1 (one) before my PIN-code when traveling abroad.
The code is accepted, I can be called and i can send and receive SMS messages.
However i cannot make phone-calls...
The error (?) is "DIAL request modified to SS request" and (very short) "not connected"
View 2 Replies
View Related
Aug 25, 2010
I know this has been asked a lot of times in StackOverflow already, but I haven't quite found a solution yet. My app sends an email with a link in it that when clicked should launch the app. According to @hackbod, the best way to do it is to make use of the Intent URI (see this). Here's my code that sets the intent and puts it in the email body: Code...
View 1 Replies
View Related
Feb 17, 2010
Please clarify me What is Pending Intent with an example.
View 2 Replies
View Related
May 11, 2010
I am newbie to Android. I read the Android documents. Can anyone tell me what "Pending Intent" is?
View 1 Replies
View Related
Oct 6, 2010
I am using the following code to play video..
View 4 Replies
View Related
May 12, 2009
I would like to know how can I determine the value to put in an ACTION tag in AndroidManifest....
We have some defined intent at http://developer.android.com/reference/android/content/Intent.html...... ok.
I tried to do some stuff with receiver. I found an example SMS_RECEIVED. This example work when I use android.provider.Telephony.SMS_RECEIVED in the action. If I try to find these constant in android.provider.Telephony I've a problem...It doesn't exist...So where is it defined?
View 2 Replies
View Related