[android-developers] Images at different resolutions

2013-06-28 Thread Tiago Braga
Hi,

I have a picture of "cover" with the play button in the middle. In this
image has several elements "objects" at the top of the page, at the bottom of
the page, etc..

I have two options to develop the image in existing resolutions:

1 - Having a single image and place as background, we will have the right to
view all the elements regardless of the resolution. But it will cut the
sides in small resolutions, and also the small elements will be very small and
may be bad for viewing. This item, the development is simple and fast.

2 - The image elements would be dismembered, and depending on the resolution
, remove items that have a good quality and good viewing. This item would
take longer to develop, because I have to develop layout for each resolution
and would also have to lose image elements. On the other hand, the quality
was excellent!

Do you think it's worth taking some elements of the page to give good
quality at all resolutions or just take all the elements of all resolutions
regardless of display quality?

Excuse me if I could not explain well, if they have questions, let me know
that I try to explain better.

-- 
Atenciosamente,
Tiago Braga Machado

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Images storage

2012-07-10 Thread Sandeep Venkat
we can save in both internal memory and external memory!!!storing
image in external memory is better than internal memory...

On 7/7/12, pinicius  wrote:
> It is recommended in any situation save images in a database? Or it is
> always best done in the sd card?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en


-- 
Thanks&Regards

*Sandeep MNVVB*
*
**Mobile Application Developer
Believe Creative
**sand...@believecreative.in
*
M: 0091 8019585636
W: www.believecreative.in

First Floor, Plot 1 Silicon Valley, Image Garden Lane, Madhapur, Hyderabad,
500081


**ConfidentialNote*
Please
do not print this email unless it is absolutely necessary. *

*The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments. *

*
*

WARNING*: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email. *

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Images storage

2012-07-07 Thread pinicius
It is recommended in any situation save images in a database? Or it is 
always best done in the sd card?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] [images] Two animations top of one another

2012-06-11 Thread Isuru Madusanka



I have to create two animations one for snowing and other for countdown. 
Just like above image. I could make snow flowing, but I don't know how to 
put the countdown. If you have any idea please post here. 

Here is the source for SnowFall.java http://pastie.textmate.org/4066924

Thank you!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Images in a list..

2012-04-30 Thread Justin Anderson
Umm... what does your code look like?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Apr 29, 2012 at 7:22 PM, alv  wrote:

> I have a ListActivity with my own ListView class and Adapter to add
> data to the list.. I also have a unique rowitem latyout that defines a
> TextView and 2 ImageView items:
>   xmlns:android="http://schemas.android.com/apk/res/android";
>  android:layout_width="wrap_content"
>  android:layout_height="wrap_content"
>  android:orientation="horizontal">
>
>
>android:id="@+id/textView1"
>android:layout_width="258dp"
>android:layout_height="wrap_content"
>android:onClick="@string/myClickHandler"
>android:text="@+id/label"
>android:textAppearance="?android:attr/textAppearanceMedium" />
>
>android:id="@+id/imageView1"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"
>android:src="@android:drawable/ic_menu_edit"
> android:onClick="@string/myClickHandler"/>
>
>android:id="@+id/imageView2"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"
>android:src="@android:drawable/ic_menu_delete"
> android:onClick="@string/myClickHandler"/>
>
> 
>
>
> I am able to drag and drop rows, as well as respond to clicks of the
> images of the rows.. My question is, how can I figure out what row a
> clicked ImageView object is in?  The images are used to edit and
> delete row data... I can see the click but I cant seem to reconcile
> what row the image is in?  Thanks!!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Images in a list..

2012-04-30 Thread alv
I have a ListActivity with my own ListView class and Adapter to add
data to the list.. I also have a unique rowitem latyout that defines a
TextView and 2 ImageView items:
http://schemas.android.com/apk/res/android";
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:orientation="horizontal">











I am able to drag and drop rows, as well as respond to clicks of the
images of the rows.. My question is, how can I figure out what row a
clicked ImageView object is in?  The images are used to edit and
delete row data... I can see the click but I cant seem to reconcile
what row the image is in?  Thanks!!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] images

2012-03-09 Thread Knutsford Software


- Original Message - 
From: Kostya Vasilyev

To: android-developers@googlegroups.com
Sent: Friday, March 09, 2012 3:53 PM
Subject: Re: [android-developers] images


On 03/09/2012 07:36 PM, Knutsford Software wrote:

Is there a reasonable amount of space on there then? I was thinking there 
was more in the database I am new to this which must be obvious


As I already wrote, databases, by default, are stored in the same old 
internal memory, so I don't see any benefit to using a database to store the 
actual image bits. Besides the space issue, manipilating files is just 
easier than shuffling byte[] arrays.


The size of internal storage varies greatly, but as far as I can tell, users 
tend to get nervious if an app uses more than, say, 5-10-15 megabytes.


The external storage comes in two shapes: a real physical memory card, whose 
size can also vary greatly, and pseudo-external storage, such as that on 
tablets, Samsung's Galaxy phones including the Nexus (and maybe others).


The API is the same for both types of external memory.

As far external storage goes, consider using Context#getExternalCacheDir so 
that it integrates with Android's application management features.


http://developer.android.com/guide/topics/data/data-storage.html#filesExternal






Thanks that has helped a lot





--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] images

2012-03-09 Thread Kostya Vasilyev

On 03/09/2012 07:36 PM, Knutsford Software wrote:


Is there a reasonable amount of space on there then? I was thinking 
there was more in the database I am new to this which must be obvious 


As I already wrote, databases, by default, are stored in the same old 
internal memory, so I don't see any benefit to using a database to store 
the actual image bits. Besides the space issue, manipilating files is 
just easier than shuffling byte[] arrays.


The size of internal storage varies greatly, but as far as I can tell, 
users tend to get nervious if an app uses more than, say, 5-10-15 megabytes.


The external storage comes in two shapes: a real physical memory card, 
whose size can also vary greatly, and pseudo-external storage, such as 
that on tablets, Samsung's Galaxy phones including the Nexus (and maybe 
others).


The API is the same for both types of external memory.

As far external storage goes, consider using Context#getExternalCacheDir 
so that it integrates with Android's application management features.


http://developer.android.com/guide/topics/data/data-storage.html#filesExternal

-- K

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] images

2012-03-09 Thread Knutsford Software

From: "Kostya Vasilyev" 
To: 
Sent: Friday, March 09, 2012 3:22 PM
Subject: Re: [android-developers] images



On 03/09/2012 07:08 PM, Knutsford Software wrote:


Having an external database or space on a server somewhere you mean?


I meant the external memory card or the space returned by 
Environment.getExternalStorageDirectory (and its newer counterparts).


As far as the server goes - well, perhaps, if there are really a lot of 
images, with the obvious availability / performance implications.








Is there a reasonable amount of space on there then? I was thinking there 
was more in the database I am new to this which must be obvious







--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] images

2012-03-09 Thread Kostya Vasilyev

On 03/09/2012 07:08 PM, Knutsford Software wrote:


Having an external database or space on a server somewhere you mean? 


I meant the external memory card or the space returned by 
Environment.getExternalStorageDirectory (and its newer counterparts).


As far as the server goes - well, perhaps, if there are really a lot of 
images, with the obvious availability / performance implications.


-- K

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] images

2012-03-09 Thread Knutsford Software


- Original Message - 
From: Kostya Vasilyev

To: android-developers@googlegroups.com
Sent: Friday, March 09, 2012 2:15 PM
Subject: Re: [android-developers] images


Since the original question was motivated by the limited amount of internal 
device storage


... using a SQLite database wouldn't help, since databases are stored in 
internal memory, and although it's possible to put databases on the memory 
card, it seems failure-prone.


So, using regular image files on the memory card / "external storage", 
perhaps indexed as necessary in a database, is what I'd recommend.






Having an external database or space on a server somewhere you mean? 


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] images

2012-03-09 Thread Kostya Vasilyev
Since the original question was motivated by the limited amount of 
internal device storage


... using a SQLite database wouldn't help, since databases are stored in 
internal memory, and although it's possible to put databases on the 
memory card, it seems failure-prone.


So, using regular image files on the memory card / "external storage", 
perhaps indexed as necessary in a database, is what I'd recommend.


-- K

On 03/09/2012 05:52 PM, Guilherme Utrabo wrote:

Knutsford,
I'm not sure, but I think you should store it directly on SD and save 
the references to these files.
Even on larger databases in Oracle and SQL Server people still use 
this pratice to not overload the database.
Only make sure you're checking the file existence before using it. On 
SD the file can be deleted out of your application.

Regards,
Guilherme
On 9 March 2012 10:45, Knutsford Software 
mailto:i...@knutsford-software.co.uk>> 
wrote:


Depends on the size of your images and how you're using them.
 Back it up, tell us what the problem you're trying to solve is
and why you're looking at your current approach and then people
can chip in.





I was just a general question about what do people do if they want
to write an App that needs lot of images or some other data as you
only have limited capacity on a phone. How much would you think
would be reasonable to store in an sqlite database before it would
cause a problem? I don't have anything particular in mind
-- 
You received this message because you are subscribed to the Google

Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com

To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] images

2012-03-09 Thread Guilherme Utrabo
Knutsford,

I'm not sure, but I think you should store it directly on SD and save the
references to these files.
Even on larger databases in Oracle and SQL Server people still use this
pratice to not overload the database.
Only make sure you're checking the file existence before using it. On SD
the file can be deleted out of your application.

Regards,
Guilherme

On 9 March 2012 10:45, Knutsford Software wrote:

> Depends on the size of your images and how you're using them.  Back it up,
> tell us what the problem you're trying to solve is and why you're looking
> at your current approach and then people can chip in.
>
>
>
>
>
> I was just a general question about what do people do if they want to
> write an App that needs lot of images or some other data as you only have
> limited capacity on a phone. How much would you think would be reasonable
> to store in an sqlite database before it would cause a problem? I don't
> have anything particular in mind
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to 
> android-developers@**googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+**unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/**group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] images

2012-03-09 Thread Knutsford Software
Depends on the size of your images and how you're using them.  Back it up, 
tell us what the problem you're trying to solve is and why you're looking at 
your current approach and then people can chip in.






I was just a general question about what do people do if they want to write 
an App that needs lot of images or some other data as you only have limited 
capacity on a phone. How much would you think would be reasonable to store 
in an sqlite database before it would cause a problem? I don't have anything 
particular in mind 


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] images

2012-03-09 Thread Oli Wright
Depends on the size of your images and how you're using them.  Back it up, 
tell us what the problem you're trying to solve is and why you're looking 
at your current approach and then people can chip in.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] images

2012-03-09 Thread Knutsford Software


- Original Message - 
From: TreKing

To: android-developers@googlegroups.com
Sent: Thursday, March 08, 2012 10:14 PM
Subject: Re: [android-developers] images


On Thu, Mar 8, 2012 at 10:35 AM, Knutsford Software 
 wrote:


If you write an app that uses a lot of images where do you store them?


In the app? On the SD card? In "the cloud"? It would depend on various 
factors.


I would imagine that sqllite won't have room to hold too many.


Define "too many". I would imagine Sqlite would have as much room as disk 
space would allow.



I am curious as what the best practice is

I doubt there is a "best practice" for something as vague as image storage. 
There are many, many use cases for the generic "image storage" problem and, 
as such, many different solutions.








Say a thousand. I would image that might be too many for sqlite on a phone 
as you wouldn't want an app to take up too much room and definately too much 
as an ordinary image file?








--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] images

2012-03-08 Thread TreKing
On Thu, Mar 8, 2012 at 10:35 AM, Knutsford Software <
i...@knutsford-software.co.uk> wrote:

> If you write an app that uses a lot of images where do you store them?


In the app? On the SD card? In "the cloud"? It would depend on various
factors.


> I would imagine that sqllite won't have room to hold too many.


Define "too many". I would imagine Sqlite would have as much room as disk
space would allow.

I am curious as what the best practice is


I doubt there is a "best practice" for something as vague as image storage.
There are many, many use cases for the generic "image storage" problem and,
as such, many different solutions.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] images

2012-03-08 Thread Knutsford Software
If you write an app that uses a lot of images where do you store them? I would 
imagine that sqllite won't have room to hold too many. I am curious as what the 
best practice is



Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Images _display_name is changed in external db at com.android.provider.media/external.db

2012-01-26 Thread Ajay Sharma
-- 

I am using MediaStore.Images.Media.EXTERNAL_CONTENT_URI(External DB ::
data/data/com.android.provider.media/external.db)) in my app to save images
with my own _display_name for example : image_101.jpg but after some time
the display name is change into long no. like 1327392947034.jpg. and next
time when i fetch the image with my _display_name(image_101.jpg) it found
nothing in external db. can anyone tell me why it happens ?

Thanks

Regards,

Ajay M Sharma

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Images _display_name is changed in external db at com.android.provider.media/external.db

2012-01-26 Thread @45
Hello Everyone ,


I am using

MediaStore.Images.Media.EXTERNAL_CONTENT_URI(External DB :: data/data
/com.android.provider.media/external.db))

in my app to save images with my own _display_name for example :
image_101.jpg but after some time the display name is change into long
no. like 1327392947034.jpg. and next time when i fetch the image with
my _display_name(image_101.jpg) it found nothing in external db. can
anyone tell me why it happens ?


Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] images for multiple screen sizes/densities

2011-11-01 Thread Christopher Van Kirk

HTC desire has a 3.7 inch screen and a resolution of 480x800.
Galaxy S 2 has a 4.3 inch screen and a resolution of 480x800.
Dell Streak has a 5 inch screen and a resolution of 480x800.

The resolution has little to do with the size of the screen.

On 11/2/2011 4:10 AM, DanielleM wrote:

Hello all:

I'm trying to create proper images for the different screen size/
density combinations so my app looks good across devices. I've read
the documentation here:

http://developer.android.com/guide/practices/screens_support.html

However, I'm a little confused on some of it. For instance, down near
the bottom of the document there is a nice little chart giving
dimensions and densities for different screen configurations, but I
don't see how it's physically possible to have a normal size screen
with a high density with the same exact dimensions as a large size
screen with both low and medium densities.

Wouldn't that make the so-called normal size screen be a large screen
if it's the same exact dimensions as what's considered a large size
screen? Maybe I'm missing something here.

Also the 480x800 size that is stated for Large Screens seems awfully
big...is this considered to be the size of screen for say, a 7"
tablet? And so, would the XLarge screen be considered to be a 10"
tablet?

My assumption is that I would create my comps in Photoshop with
documents that are WxH and then either 120, 160, 240, or 300 for the
different densities (which is labeled as resolution in Photoshop).

If anyone can clarify these things for me and just let me know if I'm
even on the right track that would be great.

This seems harder than it needs to be.

Thanks,
DM



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] images for multiple screen sizes/densities

2011-11-01 Thread DanielleM
Hello all:

I'm trying to create proper images for the different screen size/
density combinations so my app looks good across devices. I've read
the documentation here:

http://developer.android.com/guide/practices/screens_support.html

However, I'm a little confused on some of it. For instance, down near
the bottom of the document there is a nice little chart giving
dimensions and densities for different screen configurations, but I
don't see how it's physically possible to have a normal size screen
with a high density with the same exact dimensions as a large size
screen with both low and medium densities.

Wouldn't that make the so-called normal size screen be a large screen
if it's the same exact dimensions as what's considered a large size
screen? Maybe I'm missing something here.

Also the 480x800 size that is stated for Large Screens seems awfully
big...is this considered to be the size of screen for say, a 7"
tablet? And so, would the XLarge screen be considered to be a 10"
tablet?

My assumption is that I would create my comps in Photoshop with
documents that are WxH and then either 120, 160, 240, or 300 for the
different densities (which is labeled as resolution in Photoshop).

If anyone can clarify these things for me and just let me know if I'm
even on the right track that would be great.

This seems harder than it needs to be.

Thanks,
DM

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Images captures via Camera api exits in the Sd card but not dispalyed in the galary

2011-08-30 Thread chadnan gupta
Hi..

>From last few days i m trying to develop an application in which
takes multiple images(say 10 images ) , after a user clicks the start button
I have successfully done that , but the problem which i m getting right now
is that ,

1. the images which are captured are not listed(or say displayed) in
the gallery
2.the images are listed in the "My Files->DCIM"(this is the path where i
have stored my captured images ) , but when when i try to open any of the
images it takes some time to open (10 secs)

i think i have done some mistake while storing the images in the memory
card

the code for saving the images i like


PictureCallback jpegCallback = new PictureCallback() {
public void onPictureTaken(final byte[] data, Camera camera) {
   new Thread(new Runnable() {
 public void run() {
  String state = Environment.getExternalStorageState();
  if (Environment.MEDIA_MOUNTED.equals(state)) {
// We can read and write the media
mExternalStorageAvailable = mExternalStorageWriteable = true;
} else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {
// We can only read the media
mExternalStorageAvailable = true;
mExternalStorageWriteable = false;
} else {
// Something else is wrong. It may be one of many other states, but all
we need
//  to know is we can neither read nor write
mExternalStorageAvailable = mExternalStorageWriteable = false;
}
 if(mExternalStorageWriteable)
{
  FileOutputStream outStream = null;
  try {
 path =String.format("/sdcard/DCIM/%d.jpg",
System.currentTimeMillis());
// Write to SD Card
outStream = new FileOutputStream(path);
outStream.write(data);
outStream.close();

  } catch (FileNotFoundException e) {
e.printStackTrace();
  } catch (IOException e) {
e.printStackTrace();
  } finally {
  }
}
}
  }).start();

 }
};


waiting for a solution

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] images overlay on layout

2011-08-07 Thread Eyal Berman
Hi,

I trying to implement a image as background and put images on top of it.
this is my layout. 
Code:

http://schemas.android.com/apk/res/android";
android:layout_width="wrap_content"
android:layout_height="wrap_content">



and my class
Code:

import android.app.Activity;
import android.os.Bundle;
import android.view.View.OnClickListener;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.Toast;

public class myActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

FrameLayout rv =(FrameLayout)findViewById(R.id.my_ph);
   
ImageButton im1 = new ImageButton(this);
im1.setBackgroundResource(R.drawable.lamp_off_x);
im1.setMinimumHeight(50);
im1.setMinimumWidth(50);
im1.setOnClickListener(OnLampClickListener());
im1.layout(50,50, 0, 0);
   
rv.addView(im1);
 }

OnClickListener OnLampClickListener(){
  Toast.makeText(getBaseContext(), "Lamp",Toast.LENGTH_LONG);
  return null;
}
}

my questions:
1. how to put the images im1 in specific place(x,y) on top of my ImageView.
2. how to implement the click event on the image im1 (i will have more 
images like that) 
3. if i will dynamic load images on my ImageView how to know which image i 
clicked (where and how to save the image id that came from db).

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] images not scaled to screen size

2010-11-29 Thread Kumar Bibek
Well, the device/emulator you are running your application should register
as a "L" device. Only then, is will pick up the corresponding resources.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Tue, Nov 30, 2010 at 9:48 AM, Vinay  wrote:

> Hai All,
>
> I did go through the Multiple screen support document:
> http://developer.android.com/guide/practices/screens_support.html
>
> I'm using freescale imx51 board connected to a DELL 17" TFT monitor.
> The default applications do appear full screen. But when I port my
> custom application it renders in compatibility mode. I have observed
> that the images that are in the folder "mdpi" are being used by the
> application for the above said display.. I have also tried using
> support screen and any density parameters in the manifest file.
>
> I have all the three folders (hdpi, ldpi, mdpi) holding density
> specific images. First I tested my application on the emulator (Medium
> Density / Normal Screen). Hence my image size were specific to 480X320
> (Landscape
> mode). I generated hdpi and ldpi images accordingly:
> hdpi = 1.5 x mdpi
> ldpi = 0.75 x mdpi
>
> Please help understand why the custom application not being rendered
> full screen like all other default pplication. Why are images not
> being scaled to fit the DELL 17" monitor connected to the imx51
> board.
>
> Also what exactly should be values of support screen and any-density
> fields in the manifest file when above said display's are being used
>
> Thanks in advance
>
> Vinay.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] images not scaled to screen size

2010-11-29 Thread Vinay
Hai All,

I did go through the Multiple screen support document:
http://developer.android.com/guide/practices/screens_support.html

I'm using freescale imx51 board connected to a DELL 17" TFT monitor.
The default applications do appear full screen. But when I port my
custom application it renders in compatibility mode. I have observed
that the images that are in the folder "mdpi" are being used by the
application for the above said display.. I have also tried using
support screen and any density parameters in the manifest file.

I have all the three folders (hdpi, ldpi, mdpi) holding density
specific images. First I tested my application on the emulator (Medium
Density / Normal Screen). Hence my image size were specific to 480X320
(Landscape
mode). I generated hdpi and ldpi images accordingly:
hdpi = 1.5 x mdpi
ldpi = 0.75 x mdpi

Please help understand why the custom application not being rendered
full screen like all other default pplication. Why are images not
being scaled to fit the DELL 17" monitor connected to the imx51
board.

Also what exactly should be values of support screen and any-density
fields in the manifest file when above said display's are being used

Thanks in advance

Vinay.


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Images in app

2010-11-17 Thread stymie
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?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] images in android

2010-10-28 Thread alok upadhyay
hi nena!!!
 i am also trying to do something like this
i am also having three images and i am trying something like this
i have all the images in my drawable folder.till now i am successful to get
all three imagebuttons on the screen.
my code is something like this:

package com.example.Trial;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class Trial extends Activity implements OnClickListener
{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

ImageButton o1 = (ImageButton) findViewById(R.id.btnSequence);
o1.setOnClickListener(this);

ImageButton o2 = (ImageButton) findViewById(R.id.btnVideo);
o2.setOnClickListener(this);

ImageButton o3 = (ImageButton) findViewById(R.id.btnInfo);
o3.setOnClickListener(this);
}
 @Override
 public void onClick(View v)
 {
  switch (v.getId()) {
  case R.id.btnSequence:
   //here i want to write code so that a new intent open and on clicking
this imagebutton a new image got opened
//means on clicking this button a new image should be open in new screen

   break;
  case R.id.btnVideo:
   //here i want to write code so that a new intent open and on clicking
this imagebutton a new video got opened
   break;

  case R.id.btnInfo:
   here i want to write code so that a new intent open and on clicking
this imagebutton a new video got opened
   break;
  }

 }


}

i am thinking something like i have to call seperate activities after
clicking on each button ! is it so??please correct me if i am wrong
any kind of help will be appreciated!!!
thanks

On Fri, Oct 29, 2010 at 9:55 AM, nena joy  wrote:

> Hello,
>
>  I want to display 3 images one by one from drawable folder.
> I did it using   seperate intents.Means when click the first image,itwill
> go the next intent and that loads second image and so on.
> As the no of images increasing it should be very complecated.
> So I want to show it in single intent.
> Any one have an idea please help.
> Thank you
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks & Regards
Alok Upadhyay
9555758721

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] images in android

2010-10-28 Thread nena joy
Hello,

 I want to display 3 images one by one from drawable folder.
I did it using   seperate intents.Means when click the first image,itwill go
the next intent and that loads second image and so on.
As the no of images increasing it should be very complecated.
So I want to show it in single intent.
Any one have an idea please help.
Thank you

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Images/ContentProvider? problem on HTC Evo

2010-08-16 Thread RMK
Hi all,

I wrote small app for blogging on Blogger from Android called
Bloggeroid.
App works perfect on my G1, and on other phones, but from this what I
know it have some big problems on HTC Evo.

It seems that problem is connected with images/pictures.

App works in this way that it got image URI by
android.intent.action.SEND (so sharing of images from Galler/Camera)
and by intent Intent.ACTION_GET_CONTENT with mimeType set to image/
jpeg and category Intent.CATEGORY_OPENABLE.
Those URIs are stored by app in memory, and when user decide to
publish blog post my service tries to get stream from URI using code
like this:
InputStream is =
getContentResolver().openInputStream(Uri.parse(uriStr));

And somewhere something goes wrong. My first idea is that maybe on Evo
URIs passed for images are temporary?
Second is that maybe on Evo intent.getType() returns empty string or
null?
Third is that mimeType is different than image/jpeg.

Any suggestions which option may be a source of problem? ;-)

If you want to check app search for Bloggeroid on Android Market or
use QRCode from here 
http://www.androidpit.com/en/android/market/apps/app/pl.przemelek.android.blogger/Bloggeroid.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


RE: [android-developers] Images in ListView in wrong places

2010-06-09 Thread 楊健
I meet the same problem when I used a class inherit from  BaseAdapter ,
My solution is set the image every time in BaseAdapter.getView().
I think this is the same of 
if(null!=iv)
iv.setImageBitmap(bmp);
try to comment out the if(null!=iv)

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of julius
Sent: Thursday, June 10, 2010 8:19 AM
To: Android Developers
Subject: [android-developers] Images in ListView in wrong places

Hi,

I have a ListView which has rows that include an ImageView. I am
populating the ImageView with the following code (getting the image
from the SDCard if available):

Bitmap bmp = BitmapFactory.decodeFile(filename);
ImageView iv = getCoverImageView();
if(null!=iv)
iv.setImageBitmap(bmp);

However when I scroll and the images are loaded they seem to turn up
in the wrong places.

The ListView is populated through a CursorAdapter:

@Override
public void bindView(View row, Context ctxt, Cursor c) {
SDIReleaseWrapper wrapper = (SDIReleaseWrapper) row.getTag();
wrapper.populateFrom(c);
}

@Override
public View newView(Context ctxt, Cursor c,
ViewGroup parent) {
LayoutInflater inflater = getLayoutInflater();
View row = inflater.inflate(R.layout.release_row, parent, 
false);
SDIReleaseWrapper wrapper = new SDIReleaseWrapper(row);
row.setTag(wrapper);
wrapper.populateFrom(c);

return row;
}

and the rows are populated with information from the database through
the wrapper. The TextViews in the rows show up fine, but the
ImageViews seem to have random effects.

I'm not really understanding the process of populating an ImageView in
the row or why the ImageView doesn't know which row to populate with
the image.

If someone could point me in the right direction that would be great.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Images in ListView in wrong places

2010-06-09 Thread Mark Murphy
Julius Spencer wrote:
> Would you recommend filling the images via an AsyncTask given they are coming 
> from the SDCard?

Flash reads are relatively quick, so unless you are perceiving scrolling
as being "janky" (to use Brad Fitzpatrick's term), I wouldn't worry
about it.

If you were fetching images on the fly off the Web, that you should do
in an AsyncTask or other form of work queue.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Images in ListView in wrong places

2010-06-09 Thread Julius Spencer
> Well, all I can tell you is that the symptom of "images seem randomized
> when I scroll" usually points to some sort of binding problem.
> 
> Julius Spencer wrote:
>>> Are you sure your SDIReleaseWrapper is pointing to the right
>>> ImageView?
>> Yes I performed a search and the only layout (or xml file for that
>> matter) with release_icon in it is release_row, which I am trying to
>> populate.
> 
> Actually, that doesn't strictly answer my question.
> 
> For example, when you are looking up that ImageView, are you calling
> findViewById() on the row View, or on the Activity? You need to look it
> up on the row -- otherwise, the Activity will return to you the first
> instance of your ImageView with that name it finds in the list.
Genius. (on your behalf - stupidity on mine...)

I had missed out "row."

Sorry for such a silly question...

Thank you once again!

Would you recommend filling the images via an AsyncTask given they are coming 
from the SDCard?

Regards,
Julius.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Images in ListView in wrong places

2010-06-09 Thread Mark Murphy
Well, all I can tell you is that the symptom of "images seem randomized
when I scroll" usually points to some sort of binding problem.

Julius Spencer wrote:
>> Are you sure your SDIReleaseWrapper is pointing to the right
>> ImageView?
> Yes I performed a search and the only layout (or xml file for that
> matter) with release_icon in it is release_row, which I am trying to
> populate.

Actually, that doesn't strictly answer my question.

For example, when you are looking up that ImageView, are you calling
findViewById() on the row View, or on the Activity? You need to look it
up on the row -- otherwise, the Activity will return to you the first
instance of your ImageView with that name it finds in the list.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 2.2 Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Images in ListView in wrong places

2010-06-09 Thread Julius Spencer
Hi Mark,

Thank you for the reply.

> You could use iv.setImageURI(Uri.fromFile(...)).
Oh great, yes I did read that. :)

>> However when I scroll and the images are loaded they seem to turn up
>> in the wrong places.
> 
> Are you doing the image loading in the main application thread, or a
> background thread (e.g., AsyncTask)?
I believe I am using the main application thread - perhaps this would be better 
using a background thread. For the moment though the list is small.

> If you are using a background thread, bear in mind that you may have
> scrolled before the image gets put into the list.
I'll keep this in mind when moving to this method.

> Are you sure your SDIReleaseWrapper is pointing to the right ImageView?
Yes I performed a search and the only layout (or xml file for that matter) with 
release_icon in it is release_row, which I am trying to populate.

> Is your above bitmap-loading code part of populateFrom()?
Yes that is correct:
void populateFrom(Cursor c) {...

There is a unique id in the Cursor (result) I can use to reference the file.

I omitted that the adapter (SDIReleaseAdapter) implements SectionIndexer 
although I'm assuming this won't affect things.

Regards,
Julius.


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Images in ListView in wrong places

2010-06-09 Thread Mark Murphy
julius wrote:
> Hi,
> 
> I have a ListView which has rows that include an ImageView. I am
> populating the ImageView with the following code (getting the image
> from the SDCard if available):
> 
>   Bitmap bmp = BitmapFactory.decodeFile(filename);
>   ImageView iv = getCoverImageView();
>   if(null!=iv)
>   iv.setImageBitmap(bmp);

You could use iv.setImageURI(Uri.fromFile(...)).

> However when I scroll and the images are loaded they seem to turn up
> in the wrong places.

Are you doing the image loading in the main application thread, or a
background thread (e.g., AsyncTask)?

If you are using a background thread, bear in mind that you may have
scrolled before the image gets put into the list.

> The ListView is populated through a CursorAdapter:
> 
>   @Override
>   public void bindView(View row, Context ctxt, Cursor c) {
>   SDIReleaseWrapper wrapper = (SDIReleaseWrapper) row.getTag();
>   wrapper.populateFrom(c);
>   }
> 
>   @Override
>   public View newView(Context ctxt, Cursor c,
>   ViewGroup parent) {
>   LayoutInflater inflater = getLayoutInflater();
>   View row = inflater.inflate(R.layout.release_row, parent, 
> false);
>   SDIReleaseWrapper wrapper = new SDIReleaseWrapper(row);
>   row.setTag(wrapper);
>   wrapper.populateFrom(c);
> 
>   return row;
>   }
> 
> and the rows are populated with information from the database through
> the wrapper. The TextViews in the rows show up fine, but the
> ImageViews seem to have random effects.

Are you sure your SDIReleaseWrapper is pointing to the right ImageView?

Is your above bitmap-loading code part of populateFrom()?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Images in ListView in wrong places

2010-06-09 Thread julius
Hi,

I have a ListView which has rows that include an ImageView. I am
populating the ImageView with the following code (getting the image
from the SDCard if available):

Bitmap bmp = BitmapFactory.decodeFile(filename);
ImageView iv = getCoverImageView();
if(null!=iv)
iv.setImageBitmap(bmp);

However when I scroll and the images are loaded they seem to turn up
in the wrong places.

The ListView is populated through a CursorAdapter:

@Override
public void bindView(View row, Context ctxt, Cursor c) {
SDIReleaseWrapper wrapper = (SDIReleaseWrapper) row.getTag();
wrapper.populateFrom(c);
}

@Override
public View newView(Context ctxt, Cursor c,
ViewGroup parent) {
LayoutInflater inflater = getLayoutInflater();
View row = inflater.inflate(R.layout.release_row, parent, 
false);
SDIReleaseWrapper wrapper = new SDIReleaseWrapper(row);
row.setTag(wrapper);
wrapper.populateFrom(c);

return row;
}

and the rows are populated with information from the database through
the wrapper. The TextViews in the rows show up fine, but the
ImageViews seem to have random effects.

I'm not really understanding the process of populating an ImageView in
the row or why the ImageView doesn't know which row to populate with
the image.

If someone could point me in the right direction that would be great.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Images being squashed...

2010-03-06 Thread Coffee
The launcher and icon size dimensions are restricted, if over a
certain resolution, it is squashed down. How dod I remove this
restriction? I'm trying to skin the launcher bar.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Images in listview

2010-02-17 Thread ls02
I have listview with about a hundred rows. Each row has an imageview
and two textviews. Images are set dynamically from the BaseAdapter
derived class' getView method.

The problem is that if I scroll the listview the images get messed up,
wrong images are displayed for wrong items. And the faster I scroll
the more images are messed up. I do not have any problems with text. I
tried caching images in holder class, in a separate array, it does not
help.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Images from Xml

2010-02-15 Thread Eosproject
Hi everyone! Can somebody help wih such problem.
I need to take out of XML file images to view it on display using XML
parser.
I proclaimed in xml file passes to images.

Using something like it:

res/xml/game.xml












Is it clear??

So in java class I need to use XmlResourseParser

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Images are unsharp/blurry

2010-02-11 Thread MobDev
Hi,
I have been developing on a ADP2 (Google Ion) with a "standard" screen
size (with a resolution of 320x480)...
Our designer made some pretty neat Images with which to create the
GUI, and when placing everything within the layout XML files it looks
pretty good... That is, on the Eclipse renderer, the one who shows you
how it will look like on the device... Thus not the emulator itself...
Unfortunately when run on the real device the supercrisp and beatifull
images become blurry and unsharp...
I actually do'nt see why this should happen ? Everything has been
designed whilst keeping the target devices resolution into account...
Is this because most probably the dpi of the screen on which the
Images were (big 24 inch screen) is different that the devices ? And
if so how can this be corrected (maybe within the designers
application as well, I think he uses Photoshop)...
Thanks in advance for any help !

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Images can run in emulator version1.11, but not in version1.12

2009-12-10 Thread Zacard Xu
I can run my images in emulator version1.11, but it failed in version
1.12. I have found their source code is so different. what wrong
images? Can somebody take a look at bellow logs?

emulator version 1.11's log(this success):

emulator: qemud_serial_read: normal qemud detected.
emulator: qemud_serial_read: channel= 0 len= 26 'connect:boot-
properties:01'
emulator: qemud_multiplexer_connect: registered client channel 1 for
'boot-properties' service
emulator: qemud_serial_send: channel= 0 len= 13 'ok:connect:01'
emulator: qemud_serial_read: channel= 1 len=  8 '0004list'
emulator: qemud_serial_send: channel= 1 len= 23
'qemu.sf.lcd_density=160'
emulator: qemud_serial_send: channel= 0 len= 13 'disconnect:01'
emulator: qemud_serial_read: channel= 0 len= 14 'connect:gsm:02'
emulator: qemud_multiplexer_connect: registered client channel 2 for
'gsm' service
emulator: qemud_serial_send: channel= 0 len= 13 'ok:connect:02'
emulator: qemud_serial_read: channel= 2 len=  9 'ATE0Q0V1\r'
<< ATE0Q0V1
>> OK
emulator: qemud_serial_send: channel= 2 len=  2 'OK'
emulator: qemud_serial_send: channel= 2 len=  1 '\r'
emulator: qemud_serial_read: channel= 2 len=  9 'ATE0Q0V1\r'
<< ATE0Q0V1
>> OK
emulator: qemud_serial_send: channel= 2 len=  2 'OK'
emulator: qemud_serial_send: channel= 2 len=  1 '\r'
emulator: qemud_serial_read: channel= 2 len=  7 'ATS0=0\r'
<< ATS0=0
>> OK
emulator: qemud_serial_send: channel= 2 len=  2 'OK'
emulator: qemud_serial_send: channel= 2 len=  1 '\r'
emulator: qemud_serial_read: channel= 2 len= 10 'AT+CMEE=1\r'
<< AT+CMEE=1
>> OK
emulator: qemud_serial_send: channel= 2 len=  2 'OK'
emulator: qemud_serial_send: channel= 2 len=  1 '\r'
emulator: qemud_serial_read: channel= 2 len= 10 'AT+CREG=2\r'



emulator version 1.12's log(this fails)

emulator: qemud_serial_read: normal qemud detected.
emulator: qemud_serial_read: channel= 0 len= 26 'connect:boot-
properties:01'
emulator: qemud_multiplexer_connect: registered client channel 1 for
'boot-properties' service
emulator: qemud_serial_send: channel= 0 len= 13 'ok:connect:01'
emulator: qemud_serial_read: channel= 1 len=  4 '0004'
emulator: qemud_serial_read: channel= 1 len=  4 'list'
emulator: qemud_serial_send: channel= 1 len= 23
'qemu.sf.lcd_density=160'
emulator: qemud_serial_send: channel= 1 len= 22
'dalvik.vm.heapsize=16m'
emulator: qemud_serial_send: channel= 0 len= 13 'disconnect:01'
12-09 15:59:09.3652727 I DEBUG   : *** *** *** *** *** *** ***
*** *** *** *** *** *** *** *** ***
12-09 15:59:09.3652727 I DEBUG   : Build fingerprint: '1.6/
DRC92/1:eng/debug,test-keys'
12-09 15:59:09.3652727 I DEBUG   : pid: 28, tid: 45  >>> /
system/bin/rild <<<
12-09 15:59:09.3652727 I DEBUG   : signal 4 (SIGILL), fault
addr 3fe0d4a4
12-09 15:59:09.3652727 I DEBUG   :  r0 0002  r1 600fff00
r2 600fff00  r3 0001
12-09 15:59:09.3752727 I DEBUG   :  r4 600fff00  r5 600fff00
r6   r7 3fe39dd4
12-09 15:59:09.3752727 I DEBUG   :  r8 beaf3848  r9 3fe39dd4
10 3e405445  fp 0001
12-09 15:59:09.3752727 I DEBUG   :  ip 0045  sp 600ffed0
lr 3fe0ea54  pc 3fe0d4a4  cpsr a010
12-09 15:59:09.4552727 I DEBUG   :  #00  pc d4a4  /
system/lib/libc.so
12-09 15:59:09.4742727 I DEBUG   :  #01  pc ea50  /
system/lib/libc.so
12-09 15:59:09.4862727 I DEBUG   : stack:
12-09 15:59:09.4862727 I DEBUG   : 600ffe90  
12-09 15:59:09.4862727 I DEBUG   : 600ffe94  
12-09 15:59:09.4862727 I DEBUG   : 600ffe98  
12-09 15:59:09.4862727 I DEBUG   : 600ffe9c  
12-09 15:59:09.4862727 I DEBUG   : 600ffea0  
12-09 15:59:09.4962727 I DEBUG   : 600ffea4  
12-09 15:59:09.5052727 I DEBUG   : 600ffea8  
12-09 15:59:09.5052727 I DEBUG   : 600ffeac  
12-09 15:59:09.5052727 I DEBUG   : 600ffeb0  
12-09 15:59:09.5052727 I DEBUG   : 600ffeb4  
12-09 15:59:09.5052727 I DEBUG   : 600ffeb8  
12-09 15:59:09.5052727 I DEBUG   : 600ffebc  
12-09 15:59:09.5052727 I DEBUG   : 600ffec0  
12-09 15:59:09.5152727 I DEBUG   : 600ffec4  
12-09 15:59:09.5252727 I DEBUG   : 600ffec8  df002777
12-09 15:59:09.5252727 I DEBUG   : 600ffecc  e3a070ad
12-09 15:59:09.5252727 I DEBUG   : #00 600ffed0  600fff00
12-09 15:59:09.5252727 I DEBUG   : 600ffed4  
12-09 15:59:09.5252727 I DEBUG   : #01 600ffed8  3e405445  /
system/lib/libril.so
12-09 15:59:09.5252727 I DEBUG   : 600ffedc  0078
12-09 15:59:09.5252727 I DEBUG   : 600ffee0  beaf3848
[stack]
12-09 15:59:09.5252727 I DEBUG   : 600ffee4  3fe39dd4  /
system/lib/libc.so
12-09 15:59:09.5252727 I DEBUG   : 600ffee8  3e405445  /
system/lib/libril.so
12-09 15:59:09.525

[android-developers] Images not loading on the phone

2009-07-29 Thread Pulkit

Hi All,

In my app I am downloading images from a remote server and putting it
into a gallery and displaying it. The problem is that when i do it on
the emulator it works absolutely fine but when i do it on the phone
few of the images come and a few are null. I tried many ways but I am
not able to find the perfect way. The images on my server are of 50 kb
max. But still some are downloaded and rest are not. it would be
really great if someone could help me asap coz i need to make this app
live by this weekend.

Here is the code snippet to download the images from the server.

public Bitmap getImage(String photoUrl) {
Bitmap image = null;
if (!photoUrl.equals("")) {
if(photoUrl.contains(" ")) {
photoUrl = photoUrl.replaceAll(" ", "%20");
}
try {
URLConnection conn = new 
URL(photoUrl).openConnection();
conn.connect();
InputStream inStream = 
conn.getInputStream();
BufferedInputStream bis = new 
BufferedInputStream(inStream);

image = BitmapFactory.decodeStream(bis);

bis.close();
inStream.close();
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
image = 
BitmapFactory.decodeResource(getResources(),
R.drawable.image_not_available);
}
} else {
image = BitmapFactory.decodeResource(getResources(),
R.drawable.image_not_available);
}
return image;
}


Also is there any other way of loading the images in a seperate thread
like it happens in the android market.
please reply.

Thanks
Pulkit

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Images in internal storage

2009-07-23 Thread KFB

I've been all over the internet and I can't figure out what's going
on.  I know I've got a user of my app with an image bucket that gets
returned when querying INTERNAL_CONTENT_URI, but I have no idea how it
got there.  I can't get any images to show up when I query there.

When I try to use a ContentResolver to insert into internal storage, I
get an unsupported exception.

Any help would be greatly appreciated.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] images render very differently

2009-05-31 Thread Nate

I am using OpenGL ES and drawing a triangle strip with 4 vertices. The
texture I'm drawing was loaded from a PNG using
BitmapFactory.decodeStream. I'm confused as to why my images look so
bad. I took a screenshot and made the following image, which shows the
on-device rendering on top and the actual image on bottom:

http://n4te.com/temp/imgDiff.png

Any idea why there is a difference? I have tried a bunch of different
settings but I can't keep it from looking bad.

Thanks!
-Nate
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] images on my list view mess when i scroll down to bottom

2009-05-01 Thread zeeshan

Hi Experts,


i have a list view which renders some images on it.
it words alryt untill there is no scroll but mess when i scroll down
till bottom.
if i restart my app again it works ok.


any solution?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Images in a Context Menu - how to?

2009-01-20 Thread hmmm

Hello,

Does someone know how to display images in an activity's context menu?
I've tried setIcon(resId) and it doesn't work (although it does work in the 
Options Menu).

Thank you




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] images sent via text

2008-12-05 Thread rangouno

Hi, I would like to know why I can't save any images sent via text.
There should be an option to save an image on the phone. The majority
of phones have this option and the G1 does not have it. Otherwise, the
phone is awsome, keep up the good work.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Images and Layout Questions

2008-09-18 Thread Mark Hansen

I'm making a fairly simple application, but I'd like to dress it up
with some custom buttons and backgrounds.  The problem is I'd like to
control the layout of them to make sure it looks a certain way.  I'm
not really sure what to do resolution wise to make sure this will work
once the actual phones come out.

I know for textSize there's a few different settings, one of which
seems to be resolution independent, but in the case of something with
images and buttons how will I know my layout will look consistent from
phone to phone?

Is there a best practice for layouts with images and buttons to make
sure the look is consitent or is there a standard size I can rely
on?

Thanks for any tips..

Mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Images from Google Chart API

2008-08-22 Thread dai

Ciao, can anyhone get image files from Google Chart API?
I'm trying to get image from 
http://chart.apis.google.com/chart?chs=460x230&chd=t:62&cht=p&chl=Google,
but I could not do well..

Any hints on this...?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Images Cursor Problem

2008-08-21 Thread Gil

My code launches the image picker to select a photo from external
media. In the onActivityResult I call extra.getData() to obtain the
image Uri. I know that it is valid because I can obtain a bitmap from
the Uri. However, when I try to get a cursor for this item for the
purpose of getting the photo information (description, ...) I get an
exception:

Cursor cursor = MediaStore.Images.Media.query( getContentResolver(),
extras.getData(), null);

ERROR/AndroidRuntime(1463): Caused by:
android.database.sqlite.SQLiteException: no such column: name: , while
compiling: SELECT * FROM images WHERE (_id = 40) ORDER BY name ASC
ERROR/AndroidRuntime(1463): at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
143)
ERROR/AndroidRuntime(1463): at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
111)
ERROR/AndroidRuntime(1463): at
android.content.ContentProviderProxy.bulkQuery(ContentProviderNative.java:
259)
ERROR/AndroidRuntime(1463): at
android.content.ContentProviderProxy.query(ContentProviderNative.java:
278)
ERROR/AndroidRuntime(1463): at
android.content.ContentResolver.query(ContentResolver.java:146)
ERROR/AndroidRuntime(1463): at android.provider.MediaStore$Images
$Media.query(MediaStore.java:186)
ERROR/AndroidRuntime(1463): at
com.multiplefacets.blogger.PostActivity.onActivityResult(PostActivity.java:
493)
ERROR/AndroidRuntime(1463): at
android.app.Activity.dispatchActivityResult(Activity.java:3413)
ERROR/AndroidRuntime(1463): at
android.app.ActivityThread.deliverResults(ActivityThread.java:2826)

Any idea what is causing this? Does the column "name" actually exist?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Images

2008-08-21 Thread [EMAIL PROTECTED]

I apologize if this double posts. I posted this a half hour ago and it
never went up so I assume something went wrong.

1) Is it possible to extract the icons as PNGs
and
2) are the Backgrounds also extractable?

(From the SDK)/Emulator.

Thanks,
   Gavin Greenwalt

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---