Re: [android-developers] How to draw button on canvas?

2011-06-03 Thread Yorgos X
Has anyone found a solution to this? I am struggling, using the same code,
but still the button is always drawn on the top left corner of the parent
view.

please help on this,

regards
Yorgos

On Wed, Jan 19, 2011 at 8:35 AM, sach  wrote:

> I am using a class "BoardView" which extends to View class.In onDraw()
> I want to positioned two buttons with image on them.
> I searched on forum,but not clearly got the answer.Right now I am able
> to draw a button on canvas but can't positioned it on desire
> location.This is code I am using.
>
> public BoardView(Context context) {
>
>   Bitmap  image
> =((BitmapDrawable)imageDrawable).getBitmap();
>   Button  undo_Btn = new Button(context);
>undo_Btn.measure(150, 75); //size of view
>int width = undo_Btn.getMeasuredWidth();
>int height = undo_Btn.getMeasuredHeight();
>int left = 100;
>int top = 100;
>   undo_Btn.layout(left, top, left + width, top +
> height); //
> position relative to parent
>
>
> undo_Btn.setBackgroundDrawable(getResources().getDrawable(R.drawable.icon));
>undo_Btn.setVisibility(VISIBLE);
>undo_Btn.setId(10);
>undo_Btn.setPadding(50,250,0,0); //Not getting this
> padding;no
> effect of this
> }
>
> @Override
>protected void onDraw(Canvas canvas) {
>// TODO Auto-generated method stub
>super.onDraw(canvas);
>Drawable board =
> getResources().getDrawable(R.drawable.board);
>Bitmap bitmap2 =
> ((BitmapDrawable)board).getBitmap();
>canvas.drawRect(0, 0, getWidth(), getHeight(), new
> Paint());
>canvas.drawBitmap(bitmap2, 0, 0, new Paint());
>
>  //Here drawing the button on canvas,it shows on top left
> corner not on desired location
>undo_Btn.draw(canvas);
>invalidate();
>}
>
>
> @Override
>protected void onMeasure(int widthMeasureSpec, int
> heightMeasureSpec) {
>// TODO Auto-generated method stub
>super.onMeasure(widthMeasureSpec,
> heightMeasureSpec);
>setMeasuredDimension(measureWidth(widthMeasureSpec),
>measureHeight(heightMeasureSpec));
>}
> private int measureWidth(int measureSpec){
>  int preferred = image.getWidth()*3 ;
>  return getMeasurement(measureSpec, preferred);
> }
>
> private int measureHeight(int measureSpec){
> int preferred = image.getHeight()+20 ;
> return getMeasurement(measureSpec, preferred);
>  }
>
> private int getMeasurement(int measureSpec, int preferred){
>// System.out.println("in getMeasurement");
>// System.out.println("measureSpec:->"+measureSpec +
> "preferred:->"
> + preferred);
> int specSize = MeasureSpec.getSize(measureSpec);
>   //  System.out.println("specSize:->"+specSize);
> int measurement = 0;
>  switch(MeasureSpec.getMode(measureSpec))
>  {
>  case MeasureSpec.EXACTLY:
>  // This means the width of this view has been
> given.
>  measurement = specSize;
>  break;
>  case MeasureSpec.AT_MOST:
>  // Take the minimum of the preferred size and what
> // we were told to be.
> measurement = Math.min(preferred, specSize);
> break;
> default:
> measurement = preferred;
> break;
> }
>
> return measurement;
> }
>
>}
>
>
> How to place it on desired position on canvas.When we use   Button
> undo_Btn = new Button(context); does this button require any extra to
> set its dimension so that it will get proper view when screen
> dimension changes.?
>
> --
> 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 ema

Re: [android-developers] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Yorgos X
it is in menu -> settings -> applications

there are the five below options there:
- unknown sources
- manage applications
- running services
- development
- fast boot


On Fri, Feb 4, 2011 at 3:30 PM, Mark Murphy  wrote:

> Egad.
>
> Can you tell me where in the Settings app (or elsewhere) this checkbox
> resides?
>
> Thanks!
>
> On Fri, Feb 4, 2011 at 7:06 AM, Yorgos X  wrote:
> > HTC Desire HD
> >
> > On Fri, Feb 4, 2011 at 1:54 PM, Marcin Orlowski <
> webnet.andr...@gmail.com>
> > wrote:
> >>
> >> On 4 February 2011 12:31, Yorgos X  wrote:
> >> > Mysteriously enough (new phone, haven't explored it much), a setting
> was
> >> > preset to fast boot the device (is called "Fast boot - turn off to use
> >> > some
> >> > Market apps") and this apparently causes the device to start after a
> >> > power
> >> > off without sending the BOOT_COMPLETED action. Can any of you test
> this
> >> > on
> >> > their devices to confirm it is happenning for a fact? I unchecked this
> >> > setting and my receiver works on both power off/startup and restart.
> >>
> >> That would be really silly "feature". What device is it?
> >>
> >> --
> >> 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
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in Atlanta: http://bignerdranch.com/classes/android
>
> --
> 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] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Yorgos X
HTC Desire HD

On Fri, Feb 4, 2011 at 1:54 PM, Marcin Orlowski wrote:

> On 4 February 2011 12:31, Yorgos X  wrote:
> > Mysteriously enough (new phone, haven't explored it much), a setting was
> > preset to fast boot the device (is called "Fast boot - turn off to use
> some
> > Market apps") and this apparently causes the device to start after a
> power
> > off without sending the BOOT_COMPLETED action. Can any of you test this
> on
> > their devices to confirm it is happenning for a fact? I unchecked this
> > setting and my receiver works on both power off/startup and restart.
>
> That would be really silly "feature". What device is it?
>
> --
> 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] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Yorgos X
Mysteriously enough (new phone, haven't explored it much), a setting was
preset to fast boot the device (is called "Fast boot - turn off to use some
Market apps") and this apparently causes the device to start after a power
off without sending the BOOT_COMPLETED action. Can any of you test this on
their devices to confirm it is happenning for a fact? I unchecked this
setting and my receiver works on both power off/startup and restart.

On Fri, Feb 4, 2011 at 1:15 PM, Yorgos X  wrote:

> yeah, i have checked the logs and thre is no indication of the app starting
> or the action boot_completed received. the sd is not mounted neither when
> the app is installed or at anytime during the testing process. As I've said
> before, on other devices that only provide "power off" functionality and not
> bot power off and restart, when I power off and then start up again, the
> action is received normally. On my phone it works well on restarting but not
> when powering off and then starting.
>
>
> On Fri, Feb 4, 2011 at 1:09 PM, Marcin Orlowski 
> wrote:
>
>> 2011/2/4 Yorgos X :
>> > well, i run it from eclipse to install it and then restart and power off
>> the
>> > phone to test if it works. Are the apps run straight from eclipse stored
>> on
>> > the SD card? i don't know about that to be honest. I haven't done that
>> > explicitly though
>>
>> No, they are run from internal memory, so that shall be fine.
>>
>> --
>> 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] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Yorgos X
yeah, i have checked the logs and thre is no indication of the app starting
or the action boot_completed received. the sd is not mounted neither when
the app is installed or at anytime during the testing process. As I've said
before, on other devices that only provide "power off" functionality and not
bot power off and restart, when I power off and then start up again, the
action is received normally. On my phone it works well on restarting but not
when powering off and then starting.

On Fri, Feb 4, 2011 at 1:09 PM, Marcin Orlowski wrote:

> 2011/2/4 Yorgos X :
> > well, i run it from eclipse to install it and then restart and power off
> the
> > phone to test if it works. Are the apps run straight from eclipse stored
> on
> > the SD card? i don't know about that to be honest. I haven't done that
> > explicitly though
>
> No, they are run from internal memory, so that shall be fine.
>
> --
> 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] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Yorgos X
I basically start an activity which is the main activity of my app on
startup (I want the app to appear straight when you turn on the phone). So
my main activity is declared as launcher in the manifest and in my receiver
class I start an intent that launches it as well:

.














2011/2/4 Yorgos X 

> well, i run it from eclipse to install it and then restart and power off
> the phone to test if it works. Are the apps run straight from eclipse stored
> on the SD card? i don't know about that to be honest. I haven't done that
> explicitly though
>
> 2011/2/4 Kostya Vasilyev 
>
> Is the app installed on the memory card?
>>
>> --
>> Kostya Vasilyev -- http://kmansoft.wordpress.com
>> 04.02.2011 13:55 пользователь "Yorgos X"  написал:
>>
>> > nope, not even rooted or anything. just a phone off a shop shelf,
>> untouched
>> > :)
>> >
>> > On Fri, Feb 4, 2011 at 12:51 PM, Marcin Orlowski
>> > wrote:
>> >
>> >> > I am using a receiver to handle the receipt of the BOOT_COMPLETED
>> action.
>> >> It
>> >> > works well when I am restarting my phone (an HTC Desire HD) but not
>> when
>> >> I
>> >> > use power off and then start it up. The receiver is never called and
>> it
>> >> > seems as if the BOOT_COMPLETED action is never sent. I also noticed
>> that
>> >> > some other services that run on boot don't run as well after powering
>> off
>> >> > and starting up again. I have noticed that some handsets don't
>> provide
>> >> both
>> >> > the power off and restart functionality.
>> >> >
>> >> > Any ideas?
>> >>
>> >> Custom ROM by any chance?
>> >>
>> >> --
>> >> 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
>>
>
>

-- 
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] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Yorgos X
well, i run it from eclipse to install it and then restart and power off the
phone to test if it works. Are the apps run straight from eclipse stored on
the SD card? i don't know about that to be honest. I haven't done that
explicitly though

2011/2/4 Kostya Vasilyev 

> Is the app installed on the memory card?
>
> --
> Kostya Vasilyev -- http://kmansoft.wordpress.com
> 04.02.2011 13:55 пользователь "Yorgos X"  написал:
>
> > nope, not even rooted or anything. just a phone off a shop shelf,
> untouched
> > :)
> >
> > On Fri, Feb 4, 2011 at 12:51 PM, Marcin Orlowski
> > wrote:
> >
> >> > I am using a receiver to handle the receipt of the BOOT_COMPLETED
> action.
> >> It
> >> > works well when I am restarting my phone (an HTC Desire HD) but not
> when
> >> I
> >> > use power off and then start it up. The receiver is never called and
> it
> >> > seems as if the BOOT_COMPLETED action is never sent. I also noticed
> that
> >> > some other services that run on boot don't run as well after powering
> off
> >> > and starting up again. I have noticed that some handsets don't provide
> >> both
> >> > the power off and restart functionality.
> >> >
> >> > Any ideas?
> >>
> >> Custom ROM by any chance?
> >>
> >> --
> >> 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
>

-- 
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] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Yorgos X
nope, not even rooted or anything. just a phone off a shop shelf, untouched
:)

On Fri, Feb 4, 2011 at 12:51 PM, Marcin Orlowski
wrote:

> > I am using a receiver to handle the receipt of the BOOT_COMPLETED action.
> It
> > works well when I am restarting my phone (an HTC Desire HD) but not when
> I
> > use power off and then start it up. The receiver is never called and it
> > seems as if the BOOT_COMPLETED action is never sent. I also noticed that
> > some other services that run on boot don't run as well after powering off
> > and starting up again. I have noticed that some handsets don't provide
> both
> > the power off and restart functionality.
> >
> > Any ideas?
>
> Custom ROM by any chance?
>
> --
> 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] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Yorgos X
Hi,

I am using a receiver to handle the receipt of the BOOT_COMPLETED action. It
works well when I am restarting my phone (an HTC Desire HD) but not when I
use power off and then start it up. The receiver is never called and it
seems as if the BOOT_COMPLETED action is never sent. I also noticed that
some other services that run on boot don't run as well after powering off
and starting up again. I have noticed that some handsets don't provide both
the power off and restart functionality.

Any ideas?

thanks in advance!

Yorgos

-- 
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] supporting more devices - minSDKversion, support-screens

2010-12-15 Thread Yorgos X
Thanks for the prompt reply!

The only reason I had this setting and was building with Android 1.5 SDK so
far was that having only a single code and layout xml file, somehow the app
was visually working perfectly on all devices (even the ones that hadnt the
app shown on the market, when I was manually installing the app on them).
All I want now is to somehow keep the same code and the way my app is shown
at the moment and just have the app appearring to more devices on the
market. I noticed that after adding the support-screens setting and
targetSDKversion and compiling with 1.6, the app's layout is now broken and
strangely looking on the same device, on which was showing perfectly when
compiling with 1.5 and just minSDKversion=3. Doesn't this seem absurd?

On Wed, Dec 15, 2010 at 12:12 PM, Kostya Vasilyev wrote:

> 15.12.2010 12:57, Yorgos X пишет:
>
>
>>
>> I have noticed that some devices couldn't see it on the market and
>> recently that mainly all low end devices with small screens can't see it.
>>
>
> Right, low-res (ldpi) devices filter out applications that are not marked
> as compatible.
>
>
>
>> I thought that this would be because I don't have the support-screens
>> setting. I added this, but realised that I had to use SDK 1.6 in order to
>> use this, so I did. I also set all parameters to true in this setting :
>> small screens, medium and large, plus density to true. I tried the app in a
>> few devices and some views seem distorted and different than before (it was
>> working on all screens and resolutions perfectly before).
>>
>
> You need to build with at least Android 1.6 to get support for multiple
> resolutions. Only starting with Android 1.6 can you provide "alternate
> resources" to account for variations in display sizes and densities:
> typically, images, at least the mdpi and hdpi versions.
>
> Two ways to do it: either add supports-screens, or set minSdk to 4.
>
> If you wish to retain compatibility with 1.5, use supports-screens (and be
> careful to not use any Java classes / methods new with 1.6).
>
>
>
>> Is this because of the density? Should it be set to false?
>>
>>
> Start by reading this, see if your application follows these guidelines:
>
> http://developer.android.com/guide/practices/screens_support.html
>
>
>
>  Also, is there a way to keep building with Android SDK 1.5 and still have
>> the app appear to all the devices in the android market??
>>
>
> No (see above).
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget --
> http://kmansoft.wordpress.com
>
> --
> 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] supporting more devices - minSDKversion, support-screens

2010-12-15 Thread Yorgos X
Hello all, please provide your feedback on this:

I have had an android app for a good while now o the market, which I was
building using SDK 1.5 and only having set minSDKVersion = 3, no
targetSDKVersion and no support-screens.

I have noticed that some devices couldn't see it on the market and recently
that mainly all low end devices with small screens can't see it.

I thought that this would be because I don't have the support-screens
setting. I added this, but realised that I had to use SDK 1.6 in order to
use this, so I did. I also set all parameters to true in this setting :
small screens, medium and large, plus density to true. I tried the app in a
few devices and some views seem distorted and different than before (it was
working on all screens and resolutions perfectly before).

Is this because of the density? Should it be set to false?

Also, is there a way to keep building with Android SDK 1.5 and still have
the app appear to all the devices in the android market??

thank you in advance!

-- 
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] Google Maps App

2010-07-07 Thread Yorgos X
Hi there, I have experienced the same behaviour on my device. Have you
figured out a way to overcome this issue? please let me know if you have?.

cheers!

On Thu, Jun 10, 2010 at 3:50 PM, zohar lerman  wrote:

> Hi,
>
> I have several Android devices and each of them has different version
> of Google Maps:
> 3.0 in HTC G1, 3.1.1 in HTC Dream and 3.4 in Nexus one and Motorola
> Droid.
>
> When i use the following code:
> Intent myIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("geo:0,0?
> q=Starbucks"));
>
> I get different behavior on the devices:
> On the latest versions of Google Maps application I see a map the term
> centered around my current location with a reasonable zoom radius
> while in Google Maps 3.0 I see list of results and button to the map.
>
> Is there a way to get the same behavior on all devices? of course i
> prefer the behavior of the latest versions
>
> 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] show map intent shows my location first, take a look

2010-07-06 Thread Yorgos X
Hi, I have found this erroneous behaviour on my phone, please let me know if
you have any idea how to resolve it:

I am trying to open a google maps intent using the following URI:

geo:latitude,longitude?z=zoom

However, when I open this intent, the gps on the device starts and google
maps first displays my location instead of the location in the URI. This
happens only the first time you open google maps. If I go back to my app and
make the same selection , then the correct position on the map appears.

I tried using something like this: geo:0,0?q=*business+near+city, however
this doesnt centers the map on a position, but in the nearest address.*
**
*Any ideas?*

-- 
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] Downloads & Active installs numbers frozen on Developer Console?

2010-05-31 Thread Yorgos X
Hello,

For at least 5 days now the number of downloads and active installs have
remained the same, surprisingly since it was changing day by day. I still
see through my server that new people are registering, so definitely the
counters are broken or the numbers dont get refreshed.

Has anyone had a similar problem?

-- 
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] Re: App not visable on a 1.5 device

2010-03-29 Thread Yorgos X
i am having the same problem, did you eventually figure out the cause of it?
cheers!

On Wed, Feb 24, 2010 at 3:20 PM, Namrata  wrote:

> Following works for me try with removing android:targetSdkVersion="4"
>
> 
>
> --
> Namrata
>
> On Feb 24, 4:51 pm, rackham  wrote:
> > Hello all.
> >
> > I have recieved feedback that my app is not visible to a user on a 1.5
> > device, 30% of my users use 1.5 according to my analytics, and the
> > relavent line in my manifest is as below
> >
> > 
> >
> > the app is free so i cant see any paid market location issues being
> > the cause. Is there any other reason this user would not be able to
> > see my app?
> >
> > If anyone out there has a 1.5 device they can check this on i would be
> > much appreciated,
> >
> > the app is called Goigo
> >
> > thanks for any help
> >
> > Dori
>
> --
> 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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] minSdkVersion set to 3, but device with 1.5 firmware doesnt recognize the app

2010-03-29 Thread Yorgos X
Hi there,

I have set my in my application's manifest minSdkVersion="3" (I havent set
any targetSdkVersion).

A friend purchased an HTC Magic with firmware 1.5 and he can't view the app
in the market or download the app from a market url. It seems as if the app
is not compatible with the device even though it should, right?
Any ideas why this happens?

any thoughts are welcome!!

cheers!!!

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] updating app on android market using different name

2010-03-11 Thread Yorgos

hi

i have an app on the android market that currently has a "Trial"  
postfix in its name. I would like to update this app with one that  
doesnt have "Trial" in its name. Can i do this by only keeping the  
same package in the new app, thus by updating with using a different  
app name? Or do i have to retain the same app name as well, for the  
update to take place?


please let me know if anyone has any idea on this

cheers!!

--
Georgios Galyfos

--
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] Re: Nexus One - Geocoder causes IOException - works perfectly with other devices and emulator

2010-01-26 Thread Yorgos X
same thing happens for me, only it never works so far...has anyone
found out why this happens?

On Jan 22, 6:01 pm, Stefan Klumpp  wrote:
> Okay. The weird thing is now: sometimes it works. Sometimes it
> doesn't. Anyone a clue?
>
> On Jan 18, 5:20 pm, Stefan Klumpp  wrote:
>
> > The code below works perfectly for real devices running on 1.5, 1.6
> > and 2.0 as well as the emulator running on 2.1. However, executing it
> > on the Nexus One (running 2.1) raises an IOException:
>
> > java.io.IOException: Unable to parse response from server
> > at android.location.Geocoder.getFromLocation(Geocoder.java:124)
>
> > That's the code snippet where it happens:
>
> > Double myLatitude = AppObject.myLocation.getLatitude();
> > Double myLongitude = AppObject.myLocation.getLongitude();
> > Geocoder geocoder = new Geocoder(MainActivity.this);
> > java.util.List addressList;
> > try {
> >         addressList = geocoder.getFromLocation(myLatitude, myLongitude, 5);
> >         if(addressList!=null && addressList.size()>0) {
> >                 currentAddress = new String();
> >                 currentAddress = addressList.get(0).getAddressLine(0) + ", "
> >                 + addressList.get(0).getAddressLine(1) + ", "
> >                 + addressList.get(0).getAddressLine(2);
>
> >         }
> >         return true;
>
> > } catch (IOException e) {
>
> >         e.printStackTrace();
> >         return false;
>
> > }
>
>

-- 
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] Re: Add Contact not working

2009-07-21 Thread Yorgos

Hi, has anyone find how to deal with this issue?

cheers!!

On 18 Ιούλ, 01:11, jats1234  wrote:
> I am having the same issue. Hope it gets fix soon...
>
> On Jun 11, 2:45 pm, John Seghers  wrote:
>
> > I followed the documentation to start the Show or Create Contact
> > activity.  Since my app asks the user if they want to add a contact, I
> > don't want the activity asking this as well.  Thus I used 
> > theEXTRA_FORCE_CREATEflag.
>
> > If I do not use this flag, the code below works fine. It asks the user
> > if they want to add the contact, brings up a selection list where they
> > can choose an existing contact or create a new one, and then shows the
> > add contacts UI.
>
> >     Intent intent = new Intent();
> >     intent.setAction(Contacts.Intents.SHOW_OR_CREATE_CONTACT);
> >     intent.addCategory(Intent.CATEGORY_DEFAULT);
> >     intent.setData(Uri.fromParts("tel", "2065551234", null));
> >     intent.putExtra(Contacts.Intents.EXTRA_FORCE_CREATE, true); //
> > << this is the problem line
> >     intent.putExtra(Contacts.Intents.Insert.NAME, "Cequint");
> >     intent.putExtra(Contacts.Intents.Insert.NOTES, "test");
> >     intent.putExtra(Contacts.Intents.Insert.PHONE_TYPE,
> > Contacts.PhonesColumns.TYPE_WORK);
> >     startActivity(intent);
>
> > Using theEXTRA_FORCE_CREATEflag, the activity does not start and the
> > logcat output shows that the intent forwarded by the
> > ShowOrCreateActivity fails:
>
> > 06-11 19:00:33.198: INFO/ActivityManager(583): Starting activity:
> > Intent { action=com.android.contacts.action.SHOW_OR_CREATE_CONTACT
> > categories={android.intent.category.DEFAULT} data=tel:2065551234 comp=
> > {com.android.contacts/com.android.contacts.ShowOrCreateActivity} (has
> > extras) }
> > 06-11 19:00:33.369: INFO/ActivityManager(583): Starting activity:
> > Intent { action=android.intent.action.INSERT
> > type=vnd.android.cursor.dir/person comp={com.android.contacts/
> > com.android.contacts.EditContactActivity} (has extras) }
> > 06-11 19:00:33.459: DEBUG/UserLaunch:(992): onRestart()
> > 06-11 19:00:33.479: DEBUG/UserLaunch:(992): onStart()
> > 06-11 19:00:33.709: ERROR/EditContactActivity(862): Cannot resolve
> > intent: Intent { action=android.intent.action.INSERT
> > type=vnd.android.cursor.dir/person comp={com.android.contacts/
> > com.android.contacts.EditContactActivity} (has extras) }
>
> > Looking at the Contacts Manifest, I found that sending this Intent
> > would take me directly to the add contacts UI, but will always create
> > a new contact even if there is already one for that number:
>
> >     Intent intent = new Intent(Intent.ACTION_INSERT,
> > People.CONTENT_URI);
> >     intent.putExtra(Contacts.Intents.Insert.PHONE, "2065551234");
> >     intent.putExtra(Contacts.Intents.Insert.NAME, "Cequint");
> >     intent.putExtra(Contacts.Intents.Insert.NOTES, "test");
> >     intent.putExtra(Contacts.Intents.Insert.PHONE_TYPE,
> > Contacts.PhonesColumns.TYPE_WORK);
> >     startActivity(intent);
>
> > Am I doing something wrong with the first example? Or is there a bug
> > in the Contacts app? This is with SDK 1.5 r2.
>
>
--~--~-~--~~~---~--~~
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] Storing data in the APK after creating it

2009-02-04 Thread Yorgos

Hello,

This issue has troubled me a lot, please help if you have any ideas.

- I am accessing an xml file from withing the apk, (stored in /res/
raw). The xml is read succesfully. My goal is to use this xml file as
data that can be changed in the apk.

- I tried unpacking and packing the apk file with ZIP compression and
the newly packed apk worked on the phone.

- I changed the xml file and packed the contents of the apk into a new
apk

- "install was unsuccesful" was the result of installing the new apk

As I see it, for every file stored into the apk, there are equivalent
references stored in the manifest and cert files:

for example:
SHA1-Digest: YS8iSCii71WMNrK7CHy5XLXBo+k=

Do you have any other ideas of how I can store/alter information into
the APK?

Please help, this is urgent

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---