Its okay. I did the research but I didn't find what I'm looking for exactly.
I'm still looking though, btw do other mobiles that support android have
the same problem when loading an image?
On Tue, May 8, 2012 at 7:10 PM, Justin Anderson wrote:
> Ha, I thought you were talking to me (Justin) and
Ha, I thought you were talking to me (Justin) and that you just got my name
wrong... Didn't notice the post from Jason. But still... you should do
your own research first.
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
On Tue, May 8, 2012 at 9:10 AM, Just
>
> Can you provide me with a link that could hlp me find the correct
> orientation of Bitmap image, then upon finding this orientation i will
> rotate the image.
>
Nope, sorry... I've never done that before and I'm not going to do your
homework for you... I would just be using google to find answ
Hi Jason,
Can you provide me with a link that could hlp me find the correct
orientation of Bitmap image, then upon finding this orientation i will
rotate the image.
Thanks
On Sun, May 6, 2012 at 11:52 PM, Jason Teagle wrote:
> I don't think my rotation is code is executing very well, because I w
I don't think my rotation is code is executing very well, because I was
testing now.
I took a picture in an Upright Position and when i loaded it it was
sideways and
stretched.
Oh dear! Hopefully the image without manipulation will be a good point to
re-start figuring it out.
One other thi
Alright I will try what you told me. I don't think my rotation is code is
executing very well, because I was testing now. I took a picture in an
Upright Position and when i loaded it it was sideways and stretched. One
other thing is that when I load the picture I can't move any of the
handlers. Whe
Believe it or not the project is running again :S,
I've seen plenty of weird stuff - I believe you {:v)
Check the attachment, what I'm trying to do for my project works perfectly
in the emulator but not the Samsung S2 Galaxy. I'm basically trying to load
One possible answer for this (workin
I have to suggest that line 23 as you indicate is incorrect; there's no
executable code there, not even if we assume it refers to the onCreate()
definition.
In the sample you gave us, possibilities for the problem reference include
R, R.layout, 'enter', 'moe' and the result of new Intent(moe).
Code:
package project.moe;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.view.View.OnClickListener;
import android.os.Bundle;
public class Pro
so i did restart everything and still it doesn't want to run. And no i
didn't change
anything in my code.
Very odd! Are you relying on any external resources, such as phone hardware,
memory cards, etc.? Something that might have changed its state suddenly
(thus, your code remains the same but
What is this error, my project suddenly doesn't want to execute,
j"ava.lang.
RuntimeException: Unable to start activity ComponentInfo{project.moe/
project.moe.ProjectActivity}: java.lang.NullPointerException".. I didn't
change anything
First, I suggest you restart Eclipse, disconnect your phon
What is this error, my project suddenly doesn't want to execute,
j"ava.lang.RuntimeException: Unable to start activity
ComponentInfo{project.moe/project.moe.ProjectActivity}:
java.lang.NullPointerException".. I didn't change anything
On Sun, May 6, 2012 at 4:26 PM, Jason Teagle wrote:
> For test
For testing purposes, I would suggest you temporarily put the camera code
aside, and do some testing on a simply image loaded from resources. My
reason for saying this is to remove any possible outside issues, and just
concentrate on the scaling of an image. I see your code, which seems like it
displaypicture.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent();
//startActivityForResult(i, PICK_IMAGE_REQUEST_CODE);
startActivityForResult(new Intent(Intent.ACTION_PICK,
android.provider.Medi
After using the code, still if i take a picture sideways or in an upright
position its not rotated.
When I take a picture sideways and load, it shows up in an upright position
but stretched.
Like I said, show us the code where you take that picture from the camera,
put it into an object, and t
After using the code, still if i take a picture sideways or in an upright
position its not rotated. When I take a picture sideways and load, it shows
up in an upright position but stretched.
On Sun, May 6, 2012 at 3:53 PM, Mohamed ElSanousi wrote:
>
> This is the code im using to rotate an image
This is the code im using to rotate an image,
All that code does is determine the angle in degrees to rotate by - it
doesn't actually try and rotate an image. Show us the code where you
actually load / set the image into an object, and then how you attempt to
apply the rotation angle you obta
This is the code im using to rotate an image,
public static float rotationForImage(Context context, Uri uri) {
if (uri.getScheme().equals("content")) {
String[] projection = { Images.ImageColumns.ORIENTATION };
Cursor c = context.getContentResolver().query(
uri, projec
So I have been trying to the give the user the ability to the rotate a
picture, but still i
haven't found much about it. Can you plz explain more to me. Thanks
http://lmgtfy.com/?q=rotate+image+android
--
You received this message because you are subscribed to the Google
Groups "Android Devel
Hi Justin,
So I have been trying to the give the user the ability to the rotate a
picture, but still i haven't found much about it. Can you plz explain more
to me. Thanks
On Wed, May 2, 2012 at 12:10 AM, Mohamed ElSanousi wrote:
> Okay I will try doing that. Thanks
>
>
> On Tue, May 1, 2012 at
Okay I will try doing that. Thanks
On Tue, May 1, 2012 at 11:59 PM, Justin Anderson wrote:
> Oh okay. The other problem is that I need to take a picture sideways so
>> that when I load it will be in an upright position. When I capture an image
>> in an upright position, then load it sideways..
>>
>
> Oh okay. The other problem is that I need to take a picture sideways so
> that when I load it will be in an upright position. When I capture an image
> in an upright position, then load it sideways..
>
Why not just provide the ability for the user to rotate the image?
This is becoming very hec
Oh okay. The other problem is that I need to take a picture sideways so
that when I load it will be in an upright position. When I capture an image
in an upright position, then load it sideways.. This is becoming very
hectic, why is that hard to deal with pictures??
Thanks
On Tue, May 1, 2012 at
>
> The returned pictured is stretched.
>
But it now fits the screen? If you want the image to take up the whole
screen and the aspect ratio of the image doesn't exactly match the aspect
ratio of the image then it is going to get stretched. There is no way
around that if you are dead set on makin
The returned pictured is stretched.
On Tue, May 1, 2012 at 11:04 PM, Justin Anderson wrote:
> What do you mean by distorted?
> On May 1, 2012 12:41 PM, "Mohamed ElSanousi" wrote:
>
>> I'm doing a facial parameter software that doctors could use to extract
>> angles and ratios of the nose. Thi
What do you mean by distorted?
On May 1, 2012 12:41 PM, "Mohamed ElSanousi" wrote:
> I'm doing a facial parameter software that doctors could use to extract
> angles and ratios of the nose. This is what i have so far, I even tried to
> rotate the picture and still the returned image is distorted.
I'm doing a facial parameter software that doctors could use to extract
angles and ratios of the nose. This is what i have so far, I even tried to
rotate the picture and still the returned image is distorted.
Code:
Bitmap b = BitmapFactory.decodeFile(getIntent().getStringExtra("imagePath"
));
One point here: the assumption I'm making is that this is for a
wallpaper.
On Mon, Apr 30, 2012 at 03:46:37PM -0600, Justin Anderson wrote:
> >
> > And if you're about to question that, I got this directly from Dianne
> > Hackborn in a thread I
> > started over a year ago (maybe two...I'm not eve
>
> Your joking, my whole project is depending. I need to resize this bitmap
> to fit the screen size, because I want to do calculation on the picture :(
>
What kind of calculations are you doing? You should be able to do that
without having to have the image fit the screen size.
Thanks,
Justin A
>
> And if you're about to question that, I got this directly from Dianne
> Hackborn in a thread I
> started over a year ago (maybe two...I'm not even sure now).
>
Do you happen to have a link to said thread? I have done image scaling
before and have never run into this... My constraints were slig
Your joking, my whole project is depending. I need to resize this bitmap
to fit the screen size, because I want to do calculation on the picture :(
On Tue, May 1, 2012 at 1:21 AM, Jim Graham wrote:
> On Tue, May 01, 2012 at 01:01:01AM +0400, Mohamed ElSanousi wrote:
> > On Tue, May 1, 2012 at 1
On Tue, May 01, 2012 at 01:01:01AM +0400, Mohamed ElSanousi wrote:
> On Tue, May 1, 2012 at 12:16 AM, Justin Anderson wrote:
> > On Mon, Apr 30, 2012 at 1:56 PM, Mohamed ElSanousi
> > wrote:
> >
> > I want the selected picture that is passed to the new activity to fit the
> > > screen size. I want
http://lmgtfy.com/?q=android+get+pixel+dimensions+of+screen
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
On Mon, Apr 30, 2012 at 3:01 PM, Mohamed ElSanousi wrote:
>
>
> Oh ok. And how will I get the actual pixel dimensions of the screen? I
> really nee
Oh ok. And how will I get the actual pixel dimensions of the screen? I
really need your help
Thanks
On Tue, May 1, 2012 at 12:16 AM, Justin Anderson wrote:
> I want the selected picture that is passed to the new activity to fit the
>> screen size. I want to resize the bitmap to fit the screen e
>
> I want the selected picture that is passed to the new activity to fit the
> screen size. I want to resize the bitmap to fit the screen exactly.
>
Well, then you would need some code to get the actual pixel dimensions of
the screen... right now you have hardcoded values of 750. Keep in mind
tha
I want the selected picture that is passed to the new activity to fit the
screen size. I want to resize the bitmap to fit the screen exactly.
Thanks
On Mon, Apr 30, 2012 at 11:10 PM, Justin Anderson wrote:
> What exactly are you trying to accomplish? You said "the returned image
> is stretched
What exactly are you trying to accomplish? You said "the returned image is
stretched and doesn't fit the mobile screen size" but I don't see anywhere
in your code where you are doing anything with the screen size of the
device... What exactly are you expecting and what exactly are you seeing?
Th
No.
On Mon, Apr 30, 2012 at 10:53 PM, Justin Anderson wrote:
> Are you putting the Bitmap in an ImageView?
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Mon, Apr 30, 2012 at 12:44 PM, Mohamed ElSanousi
> wrote:
>
>>
>>
>> Code:
>> I h
Are you putting the Bitmap in an ImageView?
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
On Mon, Apr 30, 2012 at 12:44 PM, Mohamed ElSanousi wrote:
>
>
> Code:
> I have this code in the Activity result, when the user hits load, it will
> open the gall
Code:
I have this code in the Activity result, when the user hits load, it will
open the gallery allow him to choose a picture. The selected pictured is
passed to another activity, here is where i'm facing the problem. The
picture doesn't fit the screen.
Uri selectedimage= data.
What have you tried so far? How are you loading the image?
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
On Mon, Apr 30, 2012 at 1:55 AM, Mohamed ElSanousi wrote:
> Hi!!
>
> I'm trying to load a picture from the gallery and display, everything
> works
Hi!!
I'm trying to load a picture from the gallery and display, everything
works fine except that the returned image is stretched and doesn't fit
the mobile screen size? I need help, thanks alot :)
--
You received this message because you are subscribed to the Google
Groups "Android Developers"
42 matches
Mail list logo