android-image

Images get pixelated when the screen is touched

早过忘川 提交于 2019-12-04 06:28:34
I'm building a little game in HTML/JS on Android. I'm running into a problem on my HTC Desire (Android 2.2). When I touch the screen, all the images look pixelated and they get un-pixelated when the touch ends. Here is a screenshot: On the right it's when the screen is being touched. Can someone help me figure out what's causing this issue? Notes: No problems during the animations if the screen is not touched I don't have this problem on my LG 540 Android 2.1 it seems images get a restricted number of colors when it's being touched I'm using Phonegap As far as I can tell, that "pixelated"

Animating all items in Animation-list

有些话、适合烂在心里 提交于 2019-12-04 05:26:20
问题 I have a list of images(around 10) in my "image_list.xml" under "animation-list" specified with "item". And I have made one "fade_in.xml" file for fade in effect of the imgaes. The code works fine without errors. The only problem I have is that the fade in effect appears in the first image but not in the other items of the image_list. Please tell me a way to make this possible so that all the images have fade in effect when they appear.My code is: image_list.xml <?xml version="1.0" encoding=

Can Picasso queue for me?

陌路散爱 提交于 2019-12-04 02:52:59
问题 Here's a critical point I don't know concerning the behavior of Picasso. Imagine you are, say, showing a slide-show of ten items. Say, they are on-screen for ten seconds each. The ideal behavior would be this: at the start of the slide show, I simply perform following: picasso.get( url1 ) picasso.get( url2 ) picasso.get( url3 ) picasso.get( url4 ) picasso.get( url5 ) picasso.get( url6 ) picasso.get( url7 ) picasso.get( url8 ) picasso.get( url9 ) picasso.get( url10 ) And, in fact, Picasso

How do I make an image shake/wiggle when clicked?

帅比萌擦擦* 提交于 2019-12-04 02:44:32
I have an imagebutton that I would like to make shake/wiggle when it is touched. I would like it to wiggle in a manner similar to iPhone app icons do when they are pressed for a very long time. Thanks! try to use this one: <set xmlns:android="http://schemas.android.com/apk/res/android"> <rotate android:duration="70" android:fromDegrees="-5" android:pivotX="50%" android:pivotY="50%" android:repeatCount="5" android:repeatMode="reverse" android:interpolator="@android:anim/linear_interpolator" android:toDegrees="5" /> <translate android:fromXDelta="-10" android:toXDelta="10" android:repeatCount="5

Using image from street view

拥有回忆 提交于 2019-12-04 02:03:57
问题 I want to get a picture of streetview (stating latitude and longitude) and display in a dialog, is this possible? I saw some examples here, but not found one that show me how to display the image in dialog. Sorry if already exists this question in the site, but I not found when I search. 回答1: Yes you can, as a URL root you can use this one http://cbk0.google.com/ or maps.google.com and this is a example where you use above mentioned URL by providing location: http://cbk0.google.com/cbk?output

Weird animation on Gallery when a invalidate is requested from it's children

大兔子大兔子 提交于 2019-12-04 01:38:32
问题 This is the adapter of my Gallery on which I display ImageViews (thumb of a page) I want to load the images ASync (some times this can come from Network), so I did that code: public View getView(int position, View convertView, ViewGroup parent) { final ImageView image = convertView != null ? convertView : new ImageView(getContext()); final PageInfo page = getItem(position); image.setBackgroundColor(Color.WHITE); image.setLayoutParams(new Gallery.LayoutParams(96, 170)); new AsyncTask<Void,

Android development: how to open a .dcm file as a bitmap?

流过昼夜 提交于 2019-12-03 21:44:23
I'm currently trying to make an android dicom app Following code opens pictures drom res/drawable in "ussual" image formats, but it doesn't work with .dcm public class BitmapView extends View { public BitmapView(Context context) { super(context); } @Override public void onDraw(Canvas canvas) { Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.test); canvas.drawColor(Color.BLACK); canvas.drawBitmap(bmp, 10, 10, null); } } in the main activity: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new BitmapView(this)); }

Syncing photos in Android gallery

放肆的年华 提交于 2019-12-03 21:28:59
I've seen a few apps that can sync photos with the Android gallery (such as Picasa), and I'm wanting to create something similar myself, where I would have a remote server with the photos and the users would be able to access these from within separate albums in the gallery (as the aforementioned apps). However, I do not know how this could be achieved, or even where do begin. Does anyone know how I should go about doing this? My Facebook photos in the synced stock gallery app on my Galaxy Note 10.1 来源: https://stackoverflow.com/questions/14906081/syncing-photos-in-android-gallery

How to get path of a captured image in android

↘锁芯ラ 提交于 2019-12-03 21:05:51
I am working on an android application. It has a functionality that captured image should display on screen and I need to get that image path, so that I can send that image to server. I am able to display image on screen, but unable to get absolute image path. I am getting path like: content://media/external/images/media/1220 content://media/external/images/media/1221 How can I get actual image path? Here is my code: mintent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); mintent.putExtra(MediaStore.EXTRA_OUTPUT, MediaStore.Images.Media.EXTERNAL_CONTENT_URI.toString());

Android - Efficient way to load multiple images from remote server

ぐ巨炮叔叔 提交于 2019-12-03 20:33:47
问题 I have an Android application that would retrieve data (images+text) from a php remote server and display them in a GridView. I am doing the operation in the background using Loaders. I have separate connections for images and texts since retrieving images would take longer and I want to display the texts immediately. The texts are encoded with Json on the server after being retrieved from MySQL. On the app, I am parsing the Json Objects and displaying the texts as I need. The problem is with