Android :: Multiple Images Using ACTION_VIEW
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
Jul 28, 2009
I build an email application using intents. I can send a email with one image attachment. I tried to attach multiple images using "putExtra ()" method.But it still send only a single image.
View 7 Replies
View Related
Oct 14, 2010
I need to include multiple images in my Android app. It's like an image viewer/slideshow. Currently I switch between pictures from /drawable-mdpi dir simply with ImageView and adapter, using gestures to left/right. Works but nothing impresive :/
Basically I could use something like Android (2.1) gallery with some image show animation.
1st question: what's the best way to include many (50-100) fullscreen images in App?
2nd: is it possible to use ViewFlipper animations directly to images? or do i have to somehow populate Views?
View 1 Replies
View Related
Aug 22, 2010
During my game loop I am constantly loading images using BitmapFactory.decodeResource(getResources(), R.drawable.objectx); Most of the time I'm calling images that have already been decoded earlier. Am I slowing down execution by decoding the resource every time? Is it better to store every image into a Map (or Dictionary) at the beginning of the program? If so, how do you get the resource IDs for all images in the drawable folder?
View 1 Replies
View Related
Jun 17, 2010
I was just wondering if Android had built in code so that I could select multiple images in a gallery-view and then have those images exported as filenames in a string array(ex /sdcard/~f1.jpg, /sdcard/~f2.jpg,...).
View 1 Replies
View Related
Oct 12, 2010
i want to create a bitmap / image which has many images like "Collage" which has more then one images in a single picture. I have stored all my images in a grid view but now i want to create a single image from all those images. And even i want to make few images click able so what can be the road map to do this ? any sort of help / example will be helpful. search for a for collage image image in google . one can see what it is exactly.
View 2 Replies
View Related
Jan 23, 2012
I'm creating an app that allows the user to zoom in and out and pan around the screen.
My question is this, how would I allow this to be done with multiple images? Lets say I have a background grid image and 3 market bag images. Is there away of doing this neatly and efficiently in Java?
Here's the code I've got so far:
DesignBoard.java
Code:
import android.app.Activity;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.os.Bundle;
[Code]...
For those interested in pinch zoom, visit this link.
View 1 Replies
View Related
Jun 16, 2010
I need a small help on rotating one image around its center of axis among multiple images which are drawn to canvas in android.
I am loading images to canvas like below.
canvas.drawBitmap(mMachineBackground, 0, 0, null);
canvas.drawBitmap(mMachineRotator, 0, 0, null);
I want to rotate only the second bitmap around its center of axis instead of rotating the entire canvas(which includes first bitmap also).
View 2 Replies
View Related
Feb 4, 2009
Here is the problem, I am building an application and have multiple images that need to switch when the user touches the screen, doesn't matter where the users touches. The press the screen and the images switch randomly. I purchased the ebook "Professional Android Application Development" and have torn though it. I am stumped. I'm thoroughly confused at this point. Any ideas on where I can go or how I can accomplish this?
View 11 Replies
View Related
Jun 1, 2010
I want do display some images that I load from a remote source in a gallery. The gallery should let the user do the following things:
-zoom the image (preferably also by pinch-zoom) -pan the image -switch between the different images
Of course most built-in gallery applications can do all of that. So my first idea was to use an ACTION_VIEW intent in order to delegate the task to some gallery application. This however won't work for me since you can only pass the URI of the image you want to display but not the actual bitmap data itself. I can't just pass the URL of the remote image because I need to manage the loading and caching of the data myself. A way around this would be to write the data to a local file and then pass the URI of that file (and deleting the file again afterward). Besides this being less than elegant it won't even do the trick because with an intent like this you can only pass one image at a time.
The built-in Facebook application on the Nexus One actually does exactly what I have in mind for displaying photo albums. It looks like a custom gallery activity they built into their application. Does anyone know whether there are templates available for something like this somewhere that one could reuse? Building something like this from scratch by myself seems too time consuming.
View 2 Replies
View Related
Sep 9, 2010
I am basically trying to send more then one image at once through text message is that possible? I know of slideshows but how do i go about creating one and sending it through text message.
I also tried using the search engine on this forum and not a great one in my opinion compare to other search engines i have used in car forums. So if there is already a thread just like the one i have create please redirect me and close my thread Mods.
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
Jul 19, 2012
Does the built in sms app fix the receiving 1 or multiple images as a slideshow? I know it isn't really a bug and is just how the app works, but I was wondering if there were any changes to the sms app in Jelly Bean for those who may not want that feature.
I am currently using Handcent but sometimes I still get images as a slideshow. I'm also having to click on the message to download it before I can view the slideshow.
View 3 Replies
View Related
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
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
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
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
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
Nov 2, 2009
I'm basically using the same method of loading bitmaps in OpenGL that the SpriteMethodTest example uses and have been unable to get rid of an annoying outline that appears around all of my images.
For example, If I were to load an image of a white circle on a white background, I would expect to see nothing. Instead, I would see my circle because its edge would be gray. In SpriteMethodTest, I replaced the background image with white and was able to see that the edges of the android images flying around also don't seem to be rendered correctly.
Does anyone know how to load images in OpenGL without having a thin outline appear around the images?
View 4 Replies
View Related
Apr 6, 2010
I'm working to convert some background images to nine patch so they scale better on different phones.
The problem is that if I have the following resource structure: drawable-hdpi/background.png drawable-hdpi/button.png drawable-mdpi/background.png drawable-mdpi/button.png drawable-ldpi/background.png drawable-ldpi/button.png and then I drop a new drawable-hdpi/background.9.png file into the mix, it breaks button.png during the pre-compile. The error is "No resource found that matches the given name (at 'background' with value '@drawable/button').Simply removing that one nine patch file fixes the build. Should I be able to have some nine patch images and some normal ones, or to have nine patch only in hdpi but not mdpi or ldpi? This is Eclipse 3.5.1 with the latest ADT.
View 3 Replies
View Related
Jul 18, 2010
Just curious how many have this issue.If you are unsure select the link below and find out pls.
View 30 Replies
View Related
Jun 23, 2010
1.myJpegFile = new File("images/jpegImage.jpg");
2.output = new BufferedOutputStream(new FileOutputStream(myJpegFile));
3.encoder = JPEGCodec.createJPEGEncoder(output);
4.encoder.encode(myJpegImage); Please could you give me the equivalent code for line no. 3 and 4 in Android?
View 1 Replies
View Related
Aug 16, 2010
Are there design guidelines to help decide if an application with multiple views should be designed with multiple activities or just one activity and control the back button itself.
I've tried both. My most complex applications using one activity per screen. However, now that I'm successfully written an app with just one activity and handling the back button myself, I don't see any compelling reason to use multiple activities. The one activity application is much simpler and more straightforward.
What advantages of multiple activities am I missing?
View 8 Replies
View Related
Feb 18, 2010
I'm working on an application using xml layouts.
I wish to know which is better:
1. Use few activities and change its contentview
2. Use an activity for each 'view' needed
If both works, in which case which option would be better?
View 1 Replies
View Related
Jul 1, 2010
I'm planning to develop and app that presents the users with several different screens (of different information).
Was wondering what would be the best way to implement this?
Is it better to have separate XML layouts and an activity to display and allow the user to interact with each screen of data?
OR would handling all of these in the same activity be more efficient (and dynamically load / unload each layout)?
View 2 Replies
View Related
Feb 2, 2009
I am trying to launch an activity from another activity .. Within the com.android.SingleLauncher..
I have activity launch code as ..
CODE:...........
I have set the android:multiprocess="true" in the AndroidManifest.xml of TargetSL I don't seem to see the multiple instances of TargetSL, which i am expecting ..
All i see is 2 process, where i was hoping to see an instance of TargetSL, for each launch that was invoked by the singleLauncher!
View 3 Replies
View Related
Nov 15, 2010
I see three folders drawable-hdpi,mdpi,ldpi. Do I need to duplicate my images in all of these folders?Or can I just place my images in one or the other and it does not matter?
View 2 Replies
View Related
Jul 28, 2009
There are images provided in android-sdk-windows-1.5_r2platforms android-1.5data esdrawable folder of SDK. Is there any way that we can use those directly in appliation. (without local copy)?
View 6 Replies
View Related
Feb 14, 2009
I don't see a place to upload an app icon or photos. Is there now way for users to see screens of your app before they buy it?
View 2 Replies
View Related