Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-25 Thread Kostya Vasilyev

Abduaziz,

Does your Windows home directory have non-English characters? 
(C:\Users\your name)?


I found that in this case (mine has Russian characters), the emulator 
has various problems. I use the command line to create the emulator in 
some other directory that has only English characters (e.g. android 
create avd -p D:\Android\emulators\avd_1.6_qvga).


-- Kostya

25.07.2010 1:24, Abduaziz Hasan ?:

Dear DanH

Thank you for your reply.

When I first started my AVD I waited for some time until it was 
initialzed and I was at the home screen. The problem is that my app 
didn't deploy as I did the same on Ubuntu and it started the once the 
AVD was initialized.


As for the second comment, it actually popped up once the AVD started 
under Ubuntu but not Windows. So this might be a Windows case.


Thanx and regards,

On Sat, Jul 24, 2010 at 11:26 PM, DanH danhi...@ieee.org 
mailto:danhi...@ieee.org wrote:


First off, the first time you start an AVD after creating it you have
to wait a VERY LONG TIME for it to configure itself completely.

Secondly, I have found that, contrary to the docs, the application
does not pop up of its own accord once loaded, but instead you have
to press the Menu (I think) button.  This may be something peculiar to
my config, but I suspect it's dependent on the particular AVD you
choose.

On Jul 24, 1:35 pm, Abduaziz Hasan affa...@gmail.com
mailto:affa...@gmail.com wrote:
 Hi all,

 I am new to Android development and have a very long experience
in Java
 technology development. When trying to develop for Android,
using Eclipse
 and Android SDK, I have had a problems with deploying the apps, or
 simulating them, using the AVD. The problem is when I run the
application,
 through Eclipse, the AVD device booted normally but my
applications don't
 get deploy.

 I have tried to solve it by changing almost everything in the run
 configuration and the Android preference. I even deleted the
Android SDK and
 installed it again but with no use.

 My environment setup is:
 - Windows 7
 - Eclipse Helios
 - Android sdk r06
 - Android plugin for Eclipse 0.9.7.v201

 Now I have tried the same setup on Ubuntu 10.04 and it is
working fine.

 Anyone had a similar problem?

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
mailto:android-beginners%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Unable to release partial wake lock in service

2010-07-25 Thread Nick Richardson
If i'm understanding you correctly, you want the service to close/stop when
you tell it to?  If that is the case, try calling stopSelf() after you
release your wake lock... This should cause the service to self terminate
and close.

On Sat, Jul 24, 2010 at 10:15 AM, Bret Foreman bret.fore...@gmail.comwrote:

 I'm using the following code inside OnStartCommand of my service:

wakelock =
 myPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK ,
 getString(R.string.app_name) );
try {
wakelock.acquire();
wakelockAcquired = true;
} catch (Exception e) {
android.util.Log.e( getString(R.string.app_name) , Unable
 to
 acquire wake lock );
}

 And then when I stop the service I use the following code, which I've
 verified _is_ getting called:

if( wakelockAcquired  (wakelock != null) ) {
try {
wakelock.release();
wakelockAcquired = false;
} catch (Exception e) {
android.util.Log.e( getString(R.string.app_name) ,
 Unable to
 release wake lock );
}
}

 After all this, I exit my application and check the settings, both on
 a physical phone and on the emulator and the service is still in
 memory. In addition, the onDestroy method of the service is never
 getting called, despite the fact that the wakelock is released and the
 parent activity that was originally bound to it is destroyed (and the
 parent Activity called ServiceConnection.unbindService in its
 onDestroy method).

 What more can I do to kill off this zombie service?


 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
//Nick Richardson
//richardson.n...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-25 Thread Abduaziz Hasan
Hi Kostya


Actually, my whole OS is in English so this will eliminate the possibility.


BTW, can this be related to Windows 7? I mean is there anyone who is using
Windows 7 and not having the problem?

Regards,

On Sun, Jul 25, 2010 at 10:36 AM, Kostya Vasilyev kmans...@gmail.comwrote:

  Abduaziz,

 Does your Windows home directory have non-English characters?
 (C:\Users\your name)?

 I found that in this case (mine has Russian characters), the emulator has
 various problems. I use the command line to create the emulator in some
 other directory that has only English characters (e.g. android create avd
 -p D:\Android\emulators\avd_1.6_qvga).

 -- Kostya

 25.07.2010 1:24, Abduaziz Hasan пишет:

  Dear DanH

  Thank you for your reply.

  When I first started my AVD I waited for some time until it was
 initialzed and I was at the home screen. The problem is that my app didn't
 deploy as I did the same on Ubuntu and it started the once the AVD was
 initialized.

  As for the second comment, it actually popped up once the AVD started
 under Ubuntu but not Windows. So this might be a Windows case.

  Thanx and regards,

 On Sat, Jul 24, 2010 at 11:26 PM, DanH danhi...@ieee.org wrote:

 First off, the first time you start an AVD after creating it you have
 to wait a VERY LONG TIME for it to configure itself completely.

 Secondly, I have found that, contrary to the docs, the application
 does not pop up of its own accord once loaded, but instead you have
 to press the Menu (I think) button.  This may be something peculiar to
 my config, but I suspect it's dependent on the particular AVD you
 choose.

 On Jul 24, 1:35 pm, Abduaziz Hasan affa...@gmail.com wrote:
  Hi all,
 
  I am new to Android development and have a very long experience in Java
  technology development. When trying to develop for Android, using
 Eclipse
  and Android SDK, I have had a problems with deploying the apps, or
  simulating them, using the AVD. The problem is when I run the
 application,
  through Eclipse, the AVD device booted normally but my applications
 don't
  get deploy.
 
  I have tried to solve it by changing almost everything in the run
  configuration and the Android preference. I even deleted the Android SDK
 and
  installed it again but with no use.
 
  My environment setup is:
  - Windows 7
  - Eclipse Helios
  - Android sdk r06
  - Android plugin for Eclipse 0.9.7.v201
 
  Now I have tried the same setup on Ubuntu 10.04 and it is working fine.
 
  Anyone had a similar problem?

   --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en



 --
 Kostya Vasilev -- WiFi Manager + pretty widget -- 
 http://kmansoft.wordpress.com

  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: How to open a new Activity in a new window (calling a new activity)?

2010-07-25 Thread poojan9118
Intent intent = new intent(this,class_name.class);
startActivity(intent);
finish();
try this!!

On Jul 23, 4:09 am, Victoria Busse victoriasarabu...@gmail.com
wrote:
 Alright, thanks, I'll try that now :)

 On Thu, Jul 22, 2010 at 11:09 PM, Justin Anderson
 janderson@gmail.comwrote:

  Yes... Intents can be used for your own Activities.  You do need to make
  sure that you have the activity you are trying to call in your manifest file
  though.

  --
  There are only 10 types of people in the world...
  Those who know binary and those who don't.
  --

  On Thu, Jul 22, 2010 at 3:20 PM, Victoria Busse 
  victoriasarabu...@gmail.com wrote:

  Then this must have been a misunderstanding I thought intents were only
  for calling already existing apps of the phone and not my own created 
  ones..
  :))

  And if I now understand it correctly if I click on the button I can simply
  call the intent from the java file I created to open the new view?!?!

  On Thu, Jul 22, 2010 at 10:16 PM, Justin Anderson 
  janderson@gmail.com wrote:

  And why would you not use an Intent and create a new activity for this?
  From what you are describing I see no reason why you wouldn't want to do 
  it
  this way.

  --
  There are only 10 types of people in the world...
  Those who know binary and those who don't.
  --

  On Thu, Jul 22, 2010 at 3:13 PM, Victoria Busse 
  victoriasarabu...@gmail.com wrote:

  I am working on a video editing app and when I select a video from a
  gallery like view a menu comes, from which I can choose edit video ... 
  and
  from there a new view/window should open that loads the video into 
  it I
  hope that makes it a bit clearer :)

  On Thu, Jul 22, 2010 at 10:10 PM, Justin Anderson 
  janderson@gmail.com wrote:

  Not really sure I follow...  What do you mean by selected content?

  --
  There are only 10 types of people in the world...
  Those who know binary and those who don't.
  --

  On Thu, Jul 22, 2010 at 3:07 PM, Victoria Busse 
  victoriasarabu...@gmail.com wrote:

  Hi there,

  sorry for the following explanation... I just didn't know how to
  describe it differently...

  What I would like to do is when I click a certain button, my app
  should open a new window and loading the selected content into this 
  new
  window/view. It shouldn't be like e.g. the send intent, which opens a
  completely different, but still be part of my app just showing a 
  completely
  new view...

   I just don't know right now, what I have to do or even if this is
  possible, so if anyone could help me or direct into the correct 
  direction or
  knows a great tut for that...any sort of help is more than welcome...

  Thank you very much

   --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

   --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

   --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

   --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

   

Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-25 Thread Kostya Vasilyev

25.07.2010 13:01, Abduaziz Hasan пишет:



BTW, can this be related to Windows 7? I mean is there anyone who is 
using Windows 7 and not having the problem?
Yes, I don't any problems with the emulator on Windows 7. Maybe there 
are others :)


--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-25 Thread DanH
Could be a problem with blanks in the path.  Lots of tools have
trouble with that, especially cross-platform tools.

On Jul 25, 4:01 am, Abduaziz Hasan affa...@gmail.com wrote:
 Hi Kostya

 Actually, my whole OS is in English so this will eliminate the possibility.

 BTW, can this be related to Windows 7? I mean is there anyone who is using
 Windows 7 and not having the problem?

 Regards,

 On Sun, Jul 25, 2010 at 10:36 AM, Kostya Vasilyev kmans...@gmail.comwrote:

   Abduaziz,

  Does your Windows home directory have non-English characters?
  (C:\Users\your name)?

  I found that in this case (mine has Russian characters), the emulator has
  various problems. I use the command line to create the emulator in some
  other directory that has only English characters (e.g. android create avd
  -p D:\Android\emulators\avd_1.6_qvga).

  -- Kostya

  25.07.2010 1:24, Abduaziz Hasan пишет:

   Dear DanH

   Thank you for your reply.

   When I first started my AVD I waited for some time until it was
  initialzed and I was at the home screen. The problem is that my app didn't
  deploy as I did the same on Ubuntu and it started the once the AVD was
  initialized.

   As for the second comment, it actually popped up once the AVD started
  under Ubuntu but not Windows. So this might be a Windows case.

   Thanx and regards,

  On Sat, Jul 24, 2010 at 11:26 PM, DanH danhi...@ieee.org wrote:

  First off, the first time you start an AVD after creating it you have
  to wait a VERY LONG TIME for it to configure itself completely.

  Secondly, I have found that, contrary to the docs, the application
  does not pop up of its own accord once loaded, but instead you have
  to press the Menu (I think) button.  This may be something peculiar to
  my config, but I suspect it's dependent on the particular AVD you
  choose.

  On Jul 24, 1:35 pm, Abduaziz Hasan affa...@gmail.com wrote:
   Hi all,

   I am new to Android development and have a very long experience in Java
   technology development. When trying to develop for Android, using
  Eclipse
   and Android SDK, I have had a problems with deploying the apps, or
   simulating them, using the AVD. The problem is when I run the
  application,
   through Eclipse, the AVD device booted normally but my applications
  don't
   get deploy.

   I have tried to solve it by changing almost everything in the run
   configuration and the Android preference. I even deleted the Android SDK
  and
   installed it again but with no use.

   My environment setup is:
   - Windows 7
   - Eclipse Helios
   - Android sdk r06
   - Android plugin for Eclipse 0.9.7.v201

   Now I have tried the same setup on Ubuntu 10.04 and it is working fine.

   Anyone had a similar problem?

    --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

   --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

  --
  Kostya Vasilev -- WiFi Manager + pretty widget 
  --http://kmansoft.wordpress.com

   --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-25 Thread Abduaziz Hasan
My path doesn't even have blank in it:
c:\users\{username}\.android\avd\my_avd.avd

I am trying to do manual deploy of my app. If it works fine then I will
write an ant tool that will automate the process of deploying.

Regards,


On Sun, Jul 25, 2010 at 4:42 PM, DanH danhi...@ieee.org wrote:

 Could be a problem with blanks in the path.  Lots of tools have
 trouble with that, especially cross-platform tools.

 On Jul 25, 4:01 am, Abduaziz Hasan affa...@gmail.com wrote:
  Hi Kostya
 
  Actually, my whole OS is in English so this will eliminate the
 possibility.
 
  BTW, can this be related to Windows 7? I mean is there anyone who is
 using
  Windows 7 and not having the problem?
 
  Regards,
 
  On Sun, Jul 25, 2010 at 10:36 AM, Kostya Vasilyev kmans...@gmail.com
 wrote:
 
Abduaziz,
 
   Does your Windows home directory have non-English characters?
   (C:\Users\your name)?
 
   I found that in this case (mine has Russian characters), the emulator
 has
   various problems. I use the command line to create the emulator in some
   other directory that has only English characters (e.g. android create
 avd
   -p D:\Android\emulators\avd_1.6_qvga).
 
   -- Kostya
 
   25.07.2010 1:24, Abduaziz Hasan пишет:
 
Dear DanH
 
Thank you for your reply.
 
When I first started my AVD I waited for some time until it was
   initialzed and I was at the home screen. The problem is that my app
 didn't
   deploy as I did the same on Ubuntu and it started the once the AVD was
   initialized.
 
As for the second comment, it actually popped up once the AVD started
   under Ubuntu but not Windows. So this might be a Windows case.
 
Thanx and regards,
 
   On Sat, Jul 24, 2010 at 11:26 PM, DanH danhi...@ieee.org wrote:
 
   First off, the first time you start an AVD after creating it you have
   to wait a VERY LONG TIME for it to configure itself completely.
 
   Secondly, I have found that, contrary to the docs, the application
   does not pop up of its own accord once loaded, but instead you have
   to press the Menu (I think) button.  This may be something peculiar to
   my config, but I suspect it's dependent on the particular AVD you
   choose.
 
   On Jul 24, 1:35 pm, Abduaziz Hasan affa...@gmail.com wrote:
Hi all,
 
I am new to Android development and have a very long experience in
 Java
technology development. When trying to develop for Android, using
   Eclipse
and Android SDK, I have had a problems with deploying the apps, or
simulating them, using the AVD. The problem is when I run the
   application,
through Eclipse, the AVD device booted normally but my applications
   don't
get deploy.
 
I have tried to solve it by changing almost everything in the run
configuration and the Android preference. I even deleted the Android
 SDK
   and
installed it again but with no use.
 
My environment setup is:
- Windows 7
- Eclipse Helios
- Android sdk r06
- Android plugin for Eclipse 0.9.7.v201
 
Now I have tried the same setup on Ubuntu 10.04 and it is working
 fine.
 
Anyone had a similar problem?
 
 --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.
 
   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android
 
   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 android-beginners%2bunsubscr...@googlegroups.comandroid-beginners%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en
 
--
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.
 
   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android
 
   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en
 
   --
   Kostya Vasilev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com
 
--
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.
 
   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android
 
   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 android-beginners%2bunsubscr...@googlegroups.comandroid-beginners%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging 

Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-25 Thread Abduaziz Hasan
One note:


I am trying to deploy the app using the adb install  command but I noticed
that the adb didn't find the avd device that I created using eclipse. I
tried to list the devices registered using adb devices but no device was
found although I have one my_avd.

Might this be the cause of the problem??



On Sun, Jul 25, 2010 at 5:24 PM, Abduaziz Hasan affa...@gmail.com wrote:

 My path doesn't even have blank in it:
 c:\users\{username}\.android\avd\my_avd.avd

 I am trying to do manual deploy of my app. If it works fine then I will
 write an ant tool that will automate the process of deploying.

 Regards,


 On Sun, Jul 25, 2010 at 4:42 PM, DanH danhi...@ieee.org wrote:

 Could be a problem with blanks in the path.  Lots of tools have
 trouble with that, especially cross-platform tools.

 On Jul 25, 4:01 am, Abduaziz Hasan affa...@gmail.com wrote:
  Hi Kostya
 
  Actually, my whole OS is in English so this will eliminate the
 possibility.
 
  BTW, can this be related to Windows 7? I mean is there anyone who is
 using
  Windows 7 and not having the problem?
 
  Regards,
 
  On Sun, Jul 25, 2010 at 10:36 AM, Kostya Vasilyev kmans...@gmail.com
 wrote:
 
Abduaziz,
 
   Does your Windows home directory have non-English characters?
   (C:\Users\your name)?
 
   I found that in this case (mine has Russian characters), the emulator
 has
   various problems. I use the command line to create the emulator in
 some
   other directory that has only English characters (e.g. android create
 avd
   -p D:\Android\emulators\avd_1.6_qvga).
 
   -- Kostya
 
   25.07.2010 1:24, Abduaziz Hasan пишет:
 
Dear DanH
 
Thank you for your reply.
 
When I first started my AVD I waited for some time until it was
   initialzed and I was at the home screen. The problem is that my app
 didn't
   deploy as I did the same on Ubuntu and it started the once the AVD was
   initialized.
 
As for the second comment, it actually popped up once the AVD started
   under Ubuntu but not Windows. So this might be a Windows case.
 
Thanx and regards,
 
   On Sat, Jul 24, 2010 at 11:26 PM, DanH danhi...@ieee.org wrote:
 
   First off, the first time you start an AVD after creating it you have
   to wait a VERY LONG TIME for it to configure itself completely.
 
   Secondly, I have found that, contrary to the docs, the application
   does not pop up of its own accord once loaded, but instead you have
   to press the Menu (I think) button.  This may be something peculiar
 to
   my config, but I suspect it's dependent on the particular AVD you
   choose.
 
   On Jul 24, 1:35 pm, Abduaziz Hasan affa...@gmail.com wrote:
Hi all,
 
I am new to Android development and have a very long experience in
 Java
technology development. When trying to develop for Android, using
   Eclipse
and Android SDK, I have had a problems with deploying the apps, or
simulating them, using the AVD. The problem is when I run the
   application,
through Eclipse, the AVD device booted normally but my applications
   don't
get deploy.
 
I have tried to solve it by changing almost everything in the run
configuration and the Android preference. I even deleted the
 Android SDK
   and
installed it again but with no use.
 
My environment setup is:
- Windows 7
- Eclipse Helios
- Android sdk r06
- Android plugin for Eclipse 0.9.7.v201
 
Now I have tried the same setup on Ubuntu 10.04 and it is working
 fine.
 
Anyone had a similar problem?
 
 --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.
 
   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android
 
   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 android-beginners%2bunsubscr...@googlegroups.comandroid-beginners%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en
 
--
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.
 
   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android
 
   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en
 
   --
   Kostya Vasilev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com
 
--
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.
 
   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android
 
   To unsubscribe from this group, send email to
   

[android-beginners] Large jars in Android

2010-07-25 Thread kypriakos

Hi all,

I looked for any info on this but could not find much. Originally
I had a number of 3rd jars that I was importing into the Android
project. The general concensus I got was that I needed to find
the source for them and compile them in Android - well I  kicked
my behind and did all that and finally I have all jars in place for
my Android app. The compilation and packaging of apk of the
app with those jars sitting in the libs dir of the app takes 10-12
mins and towards the end it gives an Eclipse internal error
and it quits! I tried doing this outside Eclipse using ant and still
the same result. I have the java heap params jacked up for
-xmx and -xms to 256MB and still no luck. The jars sum up
to 6MB and the actual app to 0.25MB. The individual library
directories that use to compile each of the 3rd jars compile
fairly fast.

So I am wondering if anyone has any insights on this - is the
Android plugin or in general the Android devices not meant to
handle such large apks? Is there anything else I need to
configure or look into to get this packaged?

Thanks very much
Demetris



-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-25 Thread Kostya Vasilyev
Maybe...

Why don't you try creating a new AVD using the command line, and make sure
there are no spaces or non-english characters in its pathname?

Also, do you run an antivirus? I use NOD32 and don't have any issues with
it. Just for test purposes, you could try disabling yours.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

25.07.2010 18:42 пользователь Abduaziz Hasan affa...@gmail.com написал:

One note:


I am trying to deploy the app using the adb install  command but I noticed
that the adb didn't find the avd device that I created using eclipse. I
tried to list the devices registered using adb devices but no device was
found although I have one my_avd.

Might this be the cause of the problem??





On Sun, Jul 25, 2010 at 5:24 PM, Abduaziz Hasan affa...@gmail.com wrote:

 My path doesn't e...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners gr...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-25 Thread Abduaziz Hasan
I did create an AVD using the command line and specifying the target path
under c:/avd  but with no use.

As for the anti-virus I use avast and really doubt it has anything to do
with it.

I tried to disable the firewall since it might be a potential problem, still
the problem not solved.

It seems that i will start developing under Ubuntua.

Regards,

2010/7/25 Kostya Vasilyev kmans...@gmail.com

 Maybe...

 Why don't you try creating a new AVD using the command line, and make sure
 there are no spaces or non-english characters in its pathname?

 Also, do you run an antivirus? I use NOD32 and don't have any issues with
 it. Just for test purposes, you could try disabling yours.

 --
 Kostya Vasilyev -- http://kmansoft.wordpress.com

 25.07.2010 18:42 пользователь Abduaziz Hasan affa...@gmail.com
 написал:

 One note:


 I am trying to deploy the app using the adb install  command but I
 noticed that the adb didn't find the avd device that I created using
 eclipse. I tried to list the devices registered using adb devices but no
 device was found although I have one my_avd.

 Might this be the cause of the problem??





 On Sun, Jul 25, 2010 at 5:24 PM, Abduaziz Hasan affa...@gmail.com wrote:
 
  My path doesn't e...

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners gr...

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Large jars in Android

2010-07-25 Thread Paul Turchenko
Just increase JVM's heap size. For eclipse I use willowing
eclipse.ini:

-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vm
C:/Program Files/Java/jre6/bin/client/jvm.dll
-vmargs
-Xms256m
-Xmx768m
-startup
file:/C:/Program%20Files/eclipse/plugins/
org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
file:/C:/Program%20Files/eclipse/plugins/
org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:\Program Files\Java\jre6\bin\client\jvm.dll
-Xss2m
-XX:PermSize=128m
-XX:CompileThreshold=5
-Xoptimize

As for the ANT, use -Xmx768m switch for JVM

On Jul 25, 5:43 pm, kypriakos demet...@ece.neu.edu wrote:
 Hi all,

 I looked for any info on this but could not find much. Originally
 I had a number of 3rd jars that I was importing into the Android
 project. The general concensus I got was that I needed to find
 the source for them and compile them in Android - well I  kicked
 my behind and did all that and finally I have all jars in place for
 my Android app. The compilation and packaging of apk of the
 app with those jars sitting in the libs dir of the app takes 10-12
 mins and towards the end it gives an Eclipse internal error
 and it quits! I tried doing this outside Eclipse using ant and still
 the same result. I have the java heap params jacked up for
 -xmx and -xms to 256MB and still no luck. The jars sum up
 to 6MB and the actual app to 0.25MB. The individual library
 directories that use to compile each of the 3rd jars compile
 fairly fast.

 So I am wondering if anyone has any insights on this - is the
 Android plugin or in general the Android devices not meant to
 handle such large apks? Is there anything else I need to
 configure or look into to get this packaged?

 Thanks very much
 Demetris

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Unable to release partial wake lock in service

2010-07-25 Thread Bret Foreman
Well, my understanding from the docs is that once a service has the
wake lock cleared and no other services or activities are bound to it
then it should be destroyed in a short time. But it's only a small
change to my application logic to explicitly have the service call its
stopSelf when the main application exits.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Creating a listview in for an android home screen widgets

2010-07-25 Thread Rodney Lendore
Hi,

I was trying to create a scrolling list view for an android home screen
widget with the following layout

?xml version=1.0 encoding=utf-8?
!-- res/layout/bday_widget.xml --
!-- The initial layout of the widget as it would appear on the home screen
--
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=200dp
android:layout_height=280dp
android:paddingLeft=8dp
android:paddingRight=8dp
android:background=@drawable/background

 ImageViewandroid:id=@+id/iet_logo
 android:layout_width=fill_parent
android:layout_height=50px
android:layout_alignParentLeft=true
android:src=@drawable/iet_logo
android:layout_alignParentTop=true /
LinearLayout xmlns:android=
http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=vertical
android:layout_centerInParent=true

TextViewandroid:id=@+id/ietw_title xmlns:android=
http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_below=@+id/iet_logo
android:text=Current Local Network/

TextViewandroid:id=@+id/events xmlns:android=
http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_below=@+id/iet_logo
android:layout_align
android:text=Current Local Network/
  ListView android:id=@id/android:list
   android:layout_width=fill_parent
   android:layout_height=wrap_content
   android:background=#FF
   android:layout_weight=1
   android:drawSelectorOnTop=false
   android:layout_below=@+id/ietw_title/

  TextView android:id=@id/android:empty
   android:layout_width=fill_parent
   android:layout_height=wrap_content
   android:background=#FF
   android:text=No data/
 /LinearLayout

/RelativeLayout

But kept on getting the following error:
Caused by: android.view.InflateException: Binary XML file line #36: Class
not allowed to be inflated android.widget.ListView

I understood this to mean that ListViews were not one of  the accepted views
for a RemoteView.

Is there any other way for me to implement a scrolling list view in a
Remoteview.

Many Thanks in Advance

Rodney

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Unable to release partial wake lock in service

2010-07-25 Thread Kostya Vasilyev
Wake locks have to do with CPU state, not with service lifecycle. If you
don't need the service at some point, call stopself or stopservice.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

25.07.2010 19:52 пользователь Bret Foreman bret.fore...@gmail.com
написал:

Well, my understanding from the docs is that once a service has the
wake lock cleared and no other services or activities are bound to it
then it should be destroyed in a short time. But it's only a small
change to my application logic to explicitly have the service call its
stopSelf when the main application exits.

--

You received this message because you are subscribed to the Google
Groups Android Beginners group

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Unable to release partial wake lock in service

2010-07-25 Thread Bret Foreman
Calling the service's stopSelf from the onDestroy method of the parent
activity worked fine. It's fixed.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en



Re: [android-beginners] Creating a listview in for an android home screen widgets

2010-07-25 Thread Justin Anderson
That is correct... Only specific views can be used in a RemoteView. The
documentation specifies which views can be used.

On Jul 25, 2010 10:06 AM, Rodney Lendore rodney.lend...@gmail.com wrote:

Hi,

I was trying to create a scrolling list view for an android home screen
widget with the following layout

?xml version=1.0 encoding=utf-8?
!-- res/layout/bday_widget.xml --
!-- The initial layout of the widget as it would appear on the home screen
--
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=200dp
android:layout_height=280dp
android:paddingLeft=8dp
android:paddingRight=8dp
android:background=@drawable/background

 ImageViewandroid:id=@+id/iet_logo
 android:layout_width=fill_parent
android:layout_height=50px
android:layout_alignParentLeft=true
android:src=@drawable/iet_logo
android:layout_alignParentTop=true /
LinearLayout xmlns:android=
http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=vertical
android:layout_centerInParent=true

TextViewandroid:id=@+id/ietw_title xmlns:android=
http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_below=@+id/iet_logo
android:text=Current Local Network/

TextViewandroid:id=@+id/events xmlns:android=
http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_below=@+id/iet_logo
android:layout_align
android:text=Current Local Network/
  ListView android:id=@id/android:list
   android:layout_width=fill_parent
   android:layout_height=wrap_content
   android:background=#FF
   android:layout_weight=1
   android:drawSelectorOnTop=false
   android:layout_below=@+id/ietw_title/

  TextView android:id=@id/android:empty
   android:layout_width=fill_parent
   android:layout_height=wrap_content
   android:background=#FF
   android:text=No data/
 /LinearLayout

/RelativeLayout

But kept on getting the following error:
Caused by: android.view.InflateException: Binary XML file line #36: Class
not allowed to be inflated android.widget.ListView

I understood this to mean that ListViews were not one of  the accepted views
for a RemoteView.

Is there any other way for me to implement a scrolling list view in a
Remoteview.

Many Thanks in Advance

Rodney

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Creating a listview in for an android home screen widgets

2010-07-25 Thread Rodney Lendore
So is there another way to create a scrollable List in a widget ? I thinking
along the lines of the HTC Calender widget in which you can scroll through
all your events for the month etc.

Thanks

On Sun, Jul 25, 2010 at 6:23 PM, Justin Anderson janderson@gmail.comwrote:

 That is correct... Only specific views can be used in a RemoteView. The
 documentation specifies which views can be used.

 On Jul 25, 2010 10:06 AM, Rodney Lendore rodney.lend...@gmail.com
 wrote:

 Hi,

 I was trying to create a scrolling list view for an android home screen
 widget with the following layout

 ?xml version=1.0 encoding=utf-8?
 !-- res/layout/bday_widget.xml --
 !-- The initial layout of the widget as it would appear on the home screen
 --
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:orientation=vertical
 android:layout_width=200dp
 android:layout_height=280dp
 android:paddingLeft=8dp
 android:paddingRight=8dp
 android:background=@drawable/background

  ImageViewandroid:id=@+id/iet_logo
  android:layout_width=fill_parent
 android:layout_height=50px
 android:layout_alignParentLeft=true
 android:src=@drawable/iet_logo
 android:layout_alignParentTop=true /
 LinearLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:orientation=vertical
 android:layout_centerInParent=true

 TextViewandroid:id=@+id/ietw_title xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_below=@+id/iet_logo
 android:text=Current Local Network/

 TextViewandroid:id=@+id/events xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_below=@+id/iet_logo
 android:layout_align
 android:text=Current Local Network/
   ListView android:id=@id/android:list
android:layout_width=fill_parent
android:layout_height=wrap_content
android:background=#FF
android:layout_weight=1
android:drawSelectorOnTop=false
android:layout_below=@+id/ietw_title/

   TextView android:id=@id/android:empty
android:layout_width=fill_parent
android:layout_height=wrap_content
android:background=#FF
android:text=No data/
  /LinearLayout

 /RelativeLayout

 But kept on getting the following error:
 Caused by: android.view.InflateException: Binary XML file line #36: Class
 not allowed to be inflated android.widget.ListView

 I understood this to mean that ListViews were not one of  the accepted
 views for a RemoteView.

 Is there any other way for me to implement a scrolling list view in a
 Remoteview.

 Many Thanks in Advance

 Rodney

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Creating a listview in for an android home screen widgets

2010-07-25 Thread Kostya Vasilyev
Sure. Add one or more (repeating) views, make a couple buttons for scrolling
to previous/next positions, and update data item views when these buttons
are clicked.

Press and drag is reserved for home screen switching, anyway.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

25.07.2010 22:30 пользователь Rodney Lendore rodney.lend...@gmail.com
написал:

So is there another way to create a scrollable List in a widget ? I thinking
along the lines of the HTC Calender widget in which you can scroll through
all your events for the month etc.

Thanks


On Sun, Jul 25, 2010 at 6:23 PM, Justin Anderson janderson@gmail.com
wrote:

 That is corre...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Creating a listview in for an android home screen widgets

2010-07-25 Thread YuviDroid
Only home replacements apps are supporting scrollable widgets...you can take
a look here:
http://groups.google.com/group/android-appwidget-extensions

On Sun, Jul 25, 2010 at 8:30 PM, Rodney Lendore rodney.lend...@gmail.comwrote:

 So is there another way to create a scrollable List in a widget ? I
 thinking along the lines of the HTC Calender widget in which you can scroll
 through all your events for the month etc.

 Thanks

 On Sun, Jul 25, 2010 at 6:23 PM, Justin Anderson 
 janderson@gmail.comwrote:

 That is correct... Only specific views can be used in a RemoteView. The
 documentation specifies which views can be used.

 On Jul 25, 2010 10:06 AM, Rodney Lendore rodney.lend...@gmail.com
 wrote:

 Hi,

 I was trying to create a scrolling list view for an android home screen
 widget with the following layout

 ?xml version=1.0 encoding=utf-8?
 !-- res/layout/bday_widget.xml --
 !-- The initial layout of the widget as it would appear on the home
 screen --
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android
 
 android:orientation=vertical
 android:layout_width=200dp
 android:layout_height=280dp
 android:paddingLeft=8dp
 android:paddingRight=8dp
 android:background=@drawable/background

  ImageViewandroid:id=@+id/iet_logo
  android:layout_width=fill_parent
 android:layout_height=50px
 android:layout_alignParentLeft=true
 android:src=@drawable/iet_logo
 android:layout_alignParentTop=true /
 LinearLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:orientation=vertical
 android:layout_centerInParent=true

 TextViewandroid:id=@+id/ietw_title xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_below=@+id/iet_logo
 android:text=Current Local Network/

 TextViewandroid:id=@+id/events xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_below=@+id/iet_logo
 android:layout_align
 android:text=Current Local Network/
   ListView android:id=@id/android:list
android:layout_width=fill_parent
android:layout_height=wrap_content
android:background=#FF
android:layout_weight=1
android:drawSelectorOnTop=false
android:layout_below=@+id/ietw_title/

   TextView android:id=@id/android:empty
android:layout_width=fill_parent
android:layout_height=wrap_content
android:background=#FF
android:text=No data/
  /LinearLayout

 /RelativeLayout

 But kept on getting the following error:
 Caused by: android.view.InflateException: Binary XML file line #36: Class
 not allowed to be inflated android.widget.ListView

 I understood this to mean that ListViews were not one of  the accepted
 views for a RemoteView.

 Is there any other way for me to implement a scrolling list view in a
 Remoteview.

 Many Thanks in Advance

 Rodney

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send 

Re: [android-beginners] Unable to deploy apps to AVD using Eclipse

2010-07-25 Thread Sam Hobbs
I am using Windows 7 64-bit. I am a beginner and sometimes I think there 
is a problem with the automatic deployment, but the problems are likely 
my fault. I have definitely had success with applications deploying 
automatically. I don't know how much I can help but I am willing to try 
to help.


I am using Eclipse Galileo 64-bit, but I assume it does not matter 
whether it is 64-bit or 32-bit. Let me know if you can use more version 
information. My AVD is called first_avd.




Abduaziz Hasan wrote:

Hi all,

I am new to Android development and have a very long experience in Java
technology development. When trying to develop for Android, using
Eclipse and Android SDK, I have had a problems with deploying the apps,
or simulating them, using the AVD. The problem is when I run the
application, through Eclipse, the AVD device booted normally but my
applications don't get deploy.

I have tried to solve it by changing almost everything in the run
configuration and the Android preference. I even deleted the Android SDK
and installed it again but with no use.

My environment setup is:
- Windows 7
- Eclipse Helios
- Android sdk r06
- Android plugin for Eclipse 0.9.7.v201

Now I have tried the same setup on Ubuntu 10.04 and it is working fine.

Anyone had a similar problem?

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


--
Sam Hobbs
Los Angeles, CA

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-25 Thread DanH
Very good point.  I find that most extra antivirus features must be
turned off for most device emulators to function (and even some simple
compile setups).  Seems like AV software often suspects any code it's
never seen before as being a virus, and obviously all the code you
write falls into that category.  So leave the firewall running, and
the scheduled scan, but turn off all the live antivirus junk.

On Jul 25, 9:47 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Maybe...

 Why don't you try creating a new AVD using the command line, and make sure
 there are no spaces or non-english characters in its pathname?

 Also, do you run an antivirus? I use NOD32 and don't have any issues with
 it. Just for test purposes, you could try disabling yours.

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

 25.07.2010 18:42 пользователь Abduaziz Hasan affa...@gmail.com написал:

 One note:

 I am trying to deploy the app using the adb install  command but I noticed
 that the adb didn't find the avd device that I created using eclipse. I
 tried to list the devices registered using adb devices but no device was
 found although I have one my_avd.

 Might this be the cause of the problem??

 On Sun, Jul 25, 2010 at 5:24 PM, Abduaziz Hasan affa...@gmail.com wrote:

  My path doesn't e...

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners gr...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-25 Thread Kostya Vasilyev
No problems with NOD32 here either.

Running Windows 7 64bit.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

26.07.2010 1:10 пользователь Sam Hobbs s...@samhobbs.org написал:

Many people have had problems with Norton. It was pre-installed in my system
but I cleared it out of my system and installed Microsoft Security
Essentials, which is free. I am not recommending anything except to say that
I have had no problems that I am aware of related to AV software and I have
not modified the installation of the AV software for Eclipse or the Android
emulator or whatever.

In my previous system, I used avast and I used various virtual systems and I
had no problem with avast.




DanH wrote:

 BTW, I'm using Norton Internet Security.  I've turned off Insight,
 Antispy...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners gr...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Using google map

2010-07-25 Thread NBS
Hi all,

I am trying to make some map base application.
I just want to know whether I can use inbuild google map on my application??
I mean to say is there are many functions on google map application and I
want to use them on my application.
So instead of creating a new MapActivity, I will like to use the existing
google map.
I am not sure, whether its possible or not.

Could anyone please suggest me whether its possible or not.

Regards
NBS

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] internet connection on android emulator

2010-07-25 Thread androidreamer
Is anyone here has successfully run internet on 2.2 froyo(on windows)
if yes please tell me how.
thanks in advance

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Using google map

2010-07-25 Thread TreKing
On Sun, Jul 25, 2010 at 8:05 PM, NBS and...@gmail.com wrote:

 I just want to know whether I can use inbuild google map on my
 application??


Depends on what you want to do with it. And you can't assume that it will
always be inbuild, as it may very well not be on every device.


 I mean to say is there are many functions on google map application and I
 want to use them on my application.

So instead of creating a new MapActivity, I will like to use the existing
 google map.
 I am not sure, whether its possible or not.


 Could anyone please suggest me whether its possible or not.


Um, no. You can't just use the features of the Maps app as you wish. The
most you can do is call the app with startActivitiy and pass some arguments
as specified here:
http://developer.android.com/guide/appendix/g-app-intents.html

If you want anything more than that, you'll have to use MapActivity and roll
the functionality yourself.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en