[android-beginners] generating http request from android phones

2010-07-23 Thread Emmen Farooq
Hi all , I know this is a really stupid question , but I have made a
tremendous effort , but in vague , so where do i read for the simplest
explanation of http request generation via android emulator
Many thanks indeed

-- 
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: generating http request from android phones

2010-07-23 Thread RichardC
http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html

On Jul 23, 9:28 am, Emmen Farooq  wrote:
> Hi all , I know this is a really stupid question , but I have made a
> tremendous effort , but in vague , so where do i read for the simplest
> explanation of http request generation via android emulator
> Many thanks indeed

-- 
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: GPS satellite icon

2010-07-23 Thread cellurl
GPS is such a power hog, no way around it. Physics!
Not to soapbox, but there are a bunch of car apps that will require
putting your Android in a cradle on your car dashboard.
Why? Power. Only in a cradle will GPS be left on without draining the
battery.

Sooo, please Android, make hostmode-USB a priority so we can build car
apps: self-steering, self-braking, stay-awake apps

jp

-- 
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] Bluetooth Debugging on phones

2010-07-23 Thread Megh
Hi, can anyone recommend the best way to debug Bluetooth applications?
I'm running it on Nexus Ones because Bluetooth isn't supported on the
emulator but this makes it rather difficult to debug. I'm hoping
someone knows something about it that I don't! Thanks and much
appreciated.

-- 
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] Showing a screen from a preference selection

2010-07-23 Thread Bret Foreman
I have an "About" screen defined in layout/about.xml.

I have a menu inside my default preferences hierarchy with a title
like "Show About". Is there a way to specify in xml/preferences.xml
that about.xml should be shown when the "Show About" menu item is
selected? Any sample xml code around like that?

-- 
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] Showing a screen from a preference selection

2010-07-23 Thread Mark Murphy
On Fri, Jul 23, 2010 at 12:21 PM, Bret Foreman  wrote:
> I have an "About" screen defined in layout/about.xml.
>
> I have a menu inside my default preferences hierarchy with a title
> like "Show About". Is there a way to specify in xml/preferences.xml
> that about.xml should be shown when the "Show About" menu item is
> selected? Any sample xml code around like that?

No, but you can add the relevant options menu methods to your
PreferenceActivity subclass, as with any other activity, then load
that layout into a dialog or separate activity.

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

_Android Programming Tutorials_ Version 2.9 Available!

-- 
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: Showing a screen from a preference selection

2010-07-23 Thread Bret Foreman
So let's say the key for that preferences button is "AboutPrefKey".
How do I reference that key? Here's what I mean:

@Override
public boolean onMenuItemSelected(int featureId, MenuItem item) {
  switch( featureId ) {
  case ??:
  startActivity( new
Intent( Intent.ACTION_VIEW ).setClass(this,AboutActivity.class) );
  break;
  }
return super.onMenuItemSelected(featureId, item);
}

-- 
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: GPS satellite icon

2010-07-23 Thread Bret Foreman
Actually, this is not true with my hack. I did a comparison of battery
drain with and without GPS running using 10 second updates and the
difference in drain between off and on was less than 10% on my Droid
phone.

On Jul 23, 8:42 am, cellurl  wrote:
> GPS is such a power hog, no way around it. Physics!
> Not to soapbox, but there are a bunch of car apps that will require
> putting your Android in a cradle on your car dashboard.
> Why? Power. Only in a cradle will GPS be left on without draining the
> battery.
>
> Sooo, please Android, make hostmode-USB a priority so we can build car
> apps: self-steering, self-braking, stay-awake apps
>
> jp

-- 
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: Showing a screen from a preference selection

2010-07-23 Thread Mark Murphy
On Fri, Jul 23, 2010 at 12:37 PM, Bret Foreman  wrote:
> So let's say the key for that preferences button is "AboutPrefKey".

What is a "preferences button"? Your original question referred to a
"menu item", which I interpreted as meaning a "menu item". :-)

If you are looking for a Preference that launches another activity,
there isn't one in the SDK. You would have to write your own, or
possibly see if the Settings application has one that you can mooch
from the Android open source code.

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

_Android Programming Tutorials_ Version 2.9 Available!

-- 
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: Windows 7 issue? gen [in HelloAndroid] does not exist

2010-07-23 Thread Anil
I installed Java 1.6.20 which avoids the Eclipse problem.
Did you get it working for 64 bit Windows? I didn't see an update on
your thread (http://groups.google.com/group/android-beginners/
browse_thread/thread/6cde21db2a09cacd/
26e26503c3b85a94#26e26503c3b85a94)
For now, I am using my laptop with Vista 32 bit.

On Jul 22, 2:26 pm, Sam Hobbs  wrote:
> Did you look at previous messages in this group for answers? I don't see
> mention of it. My message just has a link to the sticky in the Eclipse
> forums; did you look there?
>
> There is a problem causing problems for Eclipse 3.5 in Windows; I don't
> know if it causes the problem you are asking about, but it is worth
> looking at.
>
>
>
> Anil wrote:
> > I have been trying to get it up and running on Windows 7 but have had
> > issues.
> > Running Hello Android fails. Yes, I build, clean, build.
> > Java 1.6.20, Eclipse 3.5.2, Windows 7 (it is 64 bit but I installed
> > the 32 bit Java and 32 bit Eclipse).
> > Error Log:
>
> > !ENTRY org.eclipse.jdt.ui 4 10001 2010-07-22 09:16:32.010
> > !MESSAGE Internal Error
> > !STACK 1
> > Java Model Exception: Java Model Status [gen [in HelloAndroid] does
> > not exist]
> >    at
> > org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:
> > 502)
> >    at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:
> > 246)
> >    at
> > org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:
> > 515)
> >    at
> > org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
> > 252)
> >    at
> > org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
> > 238)
> >    at
> > org.eclipse.jdt.internal.core.PackageFragmentRoot.getKind(PackageFragmentRoot.java:
> > 477)
> >    at
> > org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
> > 645)
> >    at
> > org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:
> > 791)
> >    at
> > org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
> > 734)
> >    at
> > org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:
> > 791)
> >    at
> > org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
> > 734)
> >    at
> > org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.elementChanged(PackageExplorerContentProvider.java:
> > 124)
> >    at org.eclipse.jdt.internal.core.DeltaProcessor
> > $3.run(DeltaProcessor.java:1557)
> >    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> >    at
> > org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:
> > 1547)
> >    at
> > org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:
> > 1381)
> >    at
> > org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:
> > 1357)
> >    at
> > org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:
> > 1958)
> >    at
> > org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:
> > 470)
> >    at org.eclipse.core.internal.events.NotificationManager
> > $2.run(NotificationManager.java:291)
> >    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> >    at
> > org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:
> > 285)
> >    at
> > org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:
> > 149)
> >    at
> > org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:
> > 313)
> >    at
> > org.eclipse.core.internal.resources.Workspace.aboutToBuild(Workspace.java:
> > 244)
> >    at org.eclipse.core.internal.resources.Project$1.run(Project.java:
> > 513)
> >    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
> > 1800)
> >    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
> > 1782)
> >    at
> > org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
> > 502)
> >    at org.eclipse.core.internal.resources.Project.build(Project.java:94)
> >    at
> > org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(CleanDialog.java:
> > 312)
> >    at org.eclipse.ui.internal.ide.dialogs.CleanDialog
> > $1.runInWorkspace(CleanDialog.java:154)
> >    at
> > org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
> > 38)
> >    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> > !SUBENTRY 1 org.eclipse.jdt.core 4 969 2010-07-22 09:16:32.010
> > !MESSAGE gen [in HelloAndroid] does not exist
>
> --
> Sam Hobbs
> Los Angeles, CA

-- 
You received this message because you are subscribed to the Google
Groups "Andr

Re: [android-beginners] Re: Windows 7 issue? gen [in HelloAndroid] does not exist

2010-07-23 Thread Kostya Vasilyev

FWIW - the following combo works for me:

- JDK 6 update 20 - 32 bit
- Eclipse for Java, Galileo SR2 - win32
- Windows 7 64-bit

-- Kostya

23.07.2010 21:07, Anil пишет:

I installed Java 1.6.20 which avoids the Eclipse problem.
Did you get it working for 64 bit Windows? I didn't see an update on
your thread (http://groups.google.com/group/android-beginners/
browse_thread/thread/6cde21db2a09cacd/
26e26503c3b85a94#26e26503c3b85a94)
For now, I am using my laptop with Vista 32 bit.

On Jul 22, 2:26 pm, Sam Hobbs  wrote:
   

Did you look at previous messages in this group for answers? I don't see
mention of it. My message just has a link to the sticky in the Eclipse
forums; did you look there?

There is a problem causing problems for Eclipse 3.5 in Windows; I don't
know if it causes the problem you are asking about, but it is worth
looking at.



Anil wrote:
 

I have been trying to get it up and running on Windows 7 but have had
issues.
Running Hello Android fails. Yes, I build, clean, build.
Java 1.6.20, Eclipse 3.5.2, Windows 7 (it is 64 bit but I installed
the 32 bit Java and 32 bit Eclipse).
Error Log:
   
 

!ENTRY org.eclipse.jdt.ui 4 10001 2010-07-22 09:16:32.010
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Java Model Status [gen [in HelloAndroid] does
not exist]
at
org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:
502)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:
246)
at
org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:
515)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
252)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
238)
at
org.eclipse.jdt.internal.core.PackageFragmentRoot.getKind(PackageFragmentRoot.java:
477)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
645)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:
791)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
734)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:
791)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
734)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.elementChanged(PackageExplorerContentProvider.java:
124)
at org.eclipse.jdt.internal.core.DeltaProcessor
$3.run(DeltaProcessor.java:1557)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:
1547)
at
org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:
1381)
at
org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:
1357)
at
org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:
1958)
at
org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:
470)
at org.eclipse.core.internal.events.NotificationManager
$2.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:
285)
at
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:
149)
at
org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:
313)
at
org.eclipse.core.internal.resources.Workspace.aboutToBuild(Workspace.java:
244)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:
513)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
1800)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
1782)
at
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
502)
at org.eclipse.core.internal.resources.Project.build(Project.java:94)
at
org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(CleanDialog.java:
312)
at org.eclipse.ui.internal.ide.dialogs.CleanDialog
$1.runInWorkspace(CleanDialog.java:154)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 org.eclipse.jdt.core 4 969 2010-07-22 09:16:32.010
!MESSAGE gen [in HelloAndroid] does not exist
   

--
Sam Hobbs
Los Angeles, CA
 
   



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

[android-beginners] [Ask] Android Laptop + need to run Win XP apps

2010-07-23 Thread Umar
Executive Summary:

* Unable to cross the chasm between Windows 7 to Windows XP, driven by
a business need. (see thread below for details) {what is means for me?
Answer: Think Android :-)}
* Exploring whether the following innovation exists:
* Laptop running Android OS.
* Android software that supports, via virtualization, running
Windows XP apps (Outlook, MS Office) [read: not Win 7 apps] as well as
Win XP-based VPN client to connect to a corporate environment that
still is running Win XP. Note that I am needing this type of usecase
for "demo" purposes but rather to do my work and earn a living
(without having to downgrade to a laptop running Win XP).
* Have a passion for drinking the Android coolade (rather than just
using it on a smartphone).

--original thread that started in Win*land that never got
a meaningful response*-

[Ask] VPN connection to Windows XP environment (without blue
screening)
I have a laptop running Windows 7. I need to connect and use my laptop
(running Windows 7) in an IT environment which is still running
Windows XP SP2.

I have had some issues with running a Windows XP-based VPN client on
my Windows 7 laptop, resulting in a blue screen.

I'd like to figure out whether VMWare (or other) has a product that
will enable me to do the following:

* Establish a Windows XP virtualized environment on my Windows 7
laptop (64 bit).
* Note that I don't have a Windows XP license on my laptop (only a
Windows 7 license).
* Securely connect using Cisco VPN client to an IT environment that is
still running Windows XP SP2.
* Need to make sure that my Windows 7 laptop is unimpacted (i.e., does
not blue screen) by any Windows XP application that I launch within
the virtualized environment.
* My Dell-based laptop (Latitude, D620) is a 64-bit architecture
running Win 7 Enterprise.
* Need to achieve secure (VPN-based) access to Win XP environment in a
corporate setting.
* Not for demo purposes where I am "playing" with multiple OS'es.
* Will also need to use Win XP version of Outlook and run MS Office
apps within virtualized Win XP environment.
* Is there a way to leverage MS Office 2007 version of the apps
installed in Win 7 (within the Win XP environment)?

Can a business user (who is not technically savvy) install the product
(assuming one exists)? What is the cost of the product?

Thanks for any feedback.

Long Story Short: This question is still in "discussion mode" and
resolved as a "parking lot" issue in Win*land. The poor user (me) is
not exactly a happy camper. Can Android come to the rescue?



-- 
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] [Ask] Android Laptop + need to run Win XP apps

2010-07-23 Thread Kostya Vasilyev
Try virtualbox.org

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

24.07.2010 0:31 пользователь "Umar"  написал:

Executive Summary:

* Unable to cross the chasm between Windows 7 to Windows XP, driven by
a business need. (see thread below for details) {what is means for me?
Answer: Think Android :-)}
* Exploring whether the following innovation exists:
   * Laptop running Android OS.
   * Android software that supports, via virtualization, running
Windows XP apps (Outlook, MS Office) [read: not Win 7 apps] as well as
Win XP-based VPN client to connect to a corporate environment that
still is running Win XP. Note that I am needing this type of usecase
for "demo" purposes but rather to do my work and earn a living
(without having to downgrade to a laptop running Win XP).
* Have a passion for drinking the Android coolade (rather than just
using it on a smartphone).

--original thread that started in Win*land that never got
a meaningful response*-

[Ask] VPN connection to Windows XP environment (without blue
screening)
I have a laptop running Windows 7. I need to connect and use my laptop
(running Windows 7) in an IT environment which is still running
Windows XP SP2.

I have had some issues with running a Windows XP-based VPN client on
my Windows 7 laptop, resulting in a blue screen.

I'd like to figure out whether VMWare (or other) has a product that
will enable me to do the following:

* Establish a Windows XP virtualized environment on my Windows 7
laptop (64 bit).
* Note that I don't have a Windows XP license on my laptop (only a
Windows 7 license).
* Securely connect using Cisco VPN client to an IT environment that is
still running Windows XP SP2.
* Need to make sure that my Windows 7 laptop is unimpacted (i.e., does
not blue screen) by any Windows XP application that I launch within
the virtualized environment.
* My Dell-based laptop (Latitude, D620) is a 64-bit architecture
running Win 7 Enterprise.
* Need to achieve secure (VPN-based) access to Win XP environment in a
corporate setting.
* Not for demo purposes where I am "playing" with multiple OS'es.
* Will also need to use Win XP version of Outlook and run MS Office
apps within virtualized Win XP environment.
* Is there a way to leverage MS Office 2007 version of the apps
installed in Win 7 (within the Win XP environment)?

Can a business user (who is not technically savvy) install the product
(assuming one exists)? What is the cost of the product?

Thanks for any feedback.

Long Story Short: This question is still in "discussion mode" and
resolved as a "parking lot" issue in Win*land. The poor user (me) is
not exactly a happy camper. Can Android come to the rescue?



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

-- 
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] Cannot get Level-List Drawable to work in ListAdapter

2010-07-23 Thread Jason Van Anden
I am attempting to use a level-list.  When run, my listview is showing
either nothing or the zero drawable.

I must be doing something wrong - a second set of eyes and a different brain
appreciated.

Here are the particulars ...

level list stored as an star_levels.xml in drawable folder:



 http://schemas.android.com/apk/res/android";>






 


image view inside a relative layout:




code from Adapter:

@Override
public void setViewImage(ImageView v, String value) {

super.setViewImage(v, value);

if (v.getId() == R.id.rating){
v.setImageLevel(Integer.parseInt(value)); // this returns an
integer - logcat confirms this
}

   }

Thanks,
j

-- 
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: Cannot get Level-List Drawable to work in ListAdapter

2010-07-23 Thread Jason Van Anden
Hmm... figured it out right after hitting send.  Removed
super.setViewImage(v, value);

j


On Fri, Jul 23, 2010 at 6:46 PM, Jason Van Anden
wrote:

> I am attempting to use a level-list.  When run, my listview is showing
> either nothing or the zero drawable.
>
> I must be doing something wrong - a second set of eyes and a different
> brain appreciated.
>
> Here are the particulars ...
>
> level list stored as an star_levels.xml in drawable folder:
>
> 
>
>  http://schemas.android.com/apk/res/android";>
> 
> 
> 
> 
> 
> 
>  
>
>
> image view inside a relative layout:
>
>  android:id="@+id/rating"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:orientation="horizontal"
> android:layout_alignTop="@id/something_else"
> android:layout_alignParentRight="true"
> android:layout_marginRight="10dp"
> android:src="@drawable/star_levels"
> />
>
>
> code from Adapter:
>
> @Override
> public void setViewImage(ImageView v, String value) {
>
> super.setViewImage(v, value);
>
> if (v.getId() == R.id.rating){
> v.setImageLevel(Integer.parseInt(value)); // this returns
> an integer - logcat confirms this
> }
>
>}
>
> Thanks,
> j
>
>
>
>

-- 
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] TextView @id/android:empty - What am i doing wrong?

2010-07-23 Thread Nick Richardson
Hi all,

I'd like to create a ListView that, when empty, displays text indicating
that it's empty.  I've looked around the web, and found some articles, but
nothing seems to be working - Even a direct copy and paste from these
examples (one from developer.android.com) does not have the desired effect.

I've had just about every result happen to me except the intended effect.
 I've had the TextView show up instead of the ListView, even when ListView
is not empty.  I've had the TextView NOT show up when the ListView is empty.
 And now, i have both the populated ListView and the android:empty TextView
showing on the screen at the same time.

Here is my layout:
http://schemas.android.com/apk/res/android";
  android:id="@+id/MainPageLayout"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical" >





  


Is there something i have to call in code to make this work?  What am i
doing wrong?

Also, does my ListView have to have the id "@id/android:list" in order for
this to work, or can i give it a different id?

-- 
//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] Bluetooth Debugging on phones

2010-07-23 Thread Nick Richardson
Your question is quite vague.  I have never had an issue connecting my N1 to
the debugger via Eclipse.

What exactly is your problem?

On Fri, Jul 23, 2010 at 9:06 AM, Megh  wrote:

> Hi, can anyone recommend the best way to debug Bluetooth applications?
> I'm running it on Nexus Ones because Bluetooth isn't supported on the
> emulator but this makes it rather difficult to debug. I'm hoping
> someone knows something about it that I don't! Thanks and much
> appreciated.
>
> --
> 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
>



-- 
//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: Windows 7 issue? gen [in HelloAndroid] does not exist

2010-07-23 Thread Sam Hobbs

Actually the message was:

Message-id: <4c44dec7.1030...@samhobbs.org>
Date: Mon, 19 Jul 2010 16:24:55 -0700
From: Sam Hobbs 
Subject: [android-beginners] Crashing/hanging problem with recent 
JDK/JRE update on Windows



It is a link to:

Crashing/hanging problem with recent JDK/JRE update on Windows
http://www.eclipse.org/forums/index.php?t=msg&th=171988&start=0&;



Anil wrote:

I installed Java 1.6.20 which avoids the Eclipse problem.
Did you get it working for 64 bit Windows? I didn't see an update on
your thread (http://groups.google.com/group/android-beginners/
browse_thread/thread/6cde21db2a09cacd/
26e26503c3b85a94#26e26503c3b85a94)
For now, I am using my laptop with Vista 32 bit.

On Jul 22, 2:26 pm, Sam Hobbs  wrote:

Did you look at previous messages in this group for answers? I don't see
mention of it. My message just has a link to the sticky in the Eclipse
forums; did you look there?

There is a problem causing problems for Eclipse 3.5 in Windows; I don't
know if it causes the problem you are asking about, but it is worth
looking at.



Anil wrote:

I have been trying to get it up and running on Windows 7 but have had
issues.
Running Hello Android fails. Yes, I build, clean, build.
Java 1.6.20, Eclipse 3.5.2, Windows 7 (it is 64 bit but I installed
the 32 bit Java and 32 bit Eclipse).
Error Log:



!ENTRY org.eclipse.jdt.ui 4 10001 2010-07-22 09:16:32.010
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Java Model Status [gen [in HelloAndroid] does
not exist]
at
org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:
502)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:
246)
at
org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:
515)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
252)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
238)
at
org.eclipse.jdt.internal.core.PackageFragmentRoot.getKind(PackageFragmentRoot.java:
477)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
645)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:
791)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
734)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:
791)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
734)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.elementChanged(PackageExplorerContentProvider.java:
124)
at org.eclipse.jdt.internal.core.DeltaProcessor
$3.run(DeltaProcessor.java:1557)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:
1547)
at
org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:
1381)
at
org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:
1357)
at
org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:
1958)
at
org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:
470)
at org.eclipse.core.internal.events.NotificationManager
$2.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:
285)
at
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:
149)
at
org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:
313)
at
org.eclipse.core.internal.resources.Workspace.aboutToBuild(Workspace.java:
244)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:
513)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
1800)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
1782)
at
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
502)
at org.eclipse.core.internal.resources.Project.build(Project.java:94)
at
org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(CleanDialog.java:
312)
at org.eclipse.ui.internal.ide.dialogs.CleanDialog
$1.runInWorkspace(CleanDialog.java:154)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 org.eclipse.jdt.core 4 969 2010-07-22 09:16:32.010
!MESSAGE gen [in HelloAndroid] does not exist


--
Sam Hobbs
Los Angeles, CA




--
Sam Hobbs
Los Angeles, CA

--
You received this message because you are subscr

[android-beginners] Android based application for healthcare

2010-07-23 Thread AAJ
hey all,
We are graduate student, currently working on our masters project on
an android platform for a healthcare domain. Since there are not many
pacemaker reated applications on an android phone, we decided to work
on the same. Our project scenario is something like this-

Pacemaker patients are not suppose to get exposed to EMR affected
areas. The pacemaker will immediately stop functioning if exposed to
EMR. So our application will be alerting the patients based on the
intensity of the EMR . So here, we will be using-
1. A pacemaker simulator which will periodically check the heartbeat
and if the heart does not function properly, the pacemaker will
regulate it.
2. The handset has an in-built sensor, which can sense the intensity
of the EMR.
3. Also using Google maps we can pin the nearby locations which has
high intensity EMR.

Now, some of the things that we have to do-
1. Implement the pacemaker simulator, since we are not able to access
the source code for the already available ones.
2. Implement the EMR sensor , to sense the EMR intensity.
3. Alert the patient as soon as he/she enters the danger zone.
4. Also show all the nearby EMR affected areas.

Our questions are-
1. Is the project feasible ?? As a masters project can we go ahead and
start working on this.
2. How do we find out all the EMr affected areas nearby ? Which means
how do we connect Google maps API with the sensor program ??

It would be great if you could help us out with these questions. We
are really looking forward to working on an Android platform .


Thanks
AAJ.

-- 
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: Windows 7 issue? gen [in HelloAndroid] does not exist

2010-07-23 Thread Anil
It says, "This bug only applies on Windows and only with JRE 1.6u21"

On Jul 23, 9:12 pm, Sam Hobbs  wrote:
> Actually the message was:
>
> Message-id: <4c44dec7.1030...@samhobbs.org>
> Date: Mon, 19 Jul 2010 16:24:55 -0700
> From: Sam Hobbs 
> Subject: [android-beginners] Crashing/hanging problem with recent
> JDK/JRE update on Windows
>
> It is a link to:
>
> Crashing/hanging problem with recent JDK/JRE update on 
> Windowshttp://www.eclipse.org/forums/index.php?t=msg&th=171988&start=0&;
>
>
>
> Anil wrote:
> > I installed Java 1.6.20 which avoids the Eclipse problem.
> > Did you get it working for 64 bit Windows? I didn't see an update on
> > your thread (http://groups.google.com/group/android-beginners/
> > browse_thread/thread/6cde21db2a09cacd/
> > 26e26503c3b85a94#26e26503c3b85a94)
> > For now, I am using my laptop with Vista 32 bit.
>
> > On Jul 22, 2:26 pm, Sam Hobbs  wrote:
> >> Did you look at previous messages in this group for answers? I don't see
> >> mention of it. My message just has a link to the sticky in the Eclipse
> >> forums; did you look there?
>
> >> There is a problem causing problems for Eclipse 3.5 in Windows; I don't
> >> know if it causes the problem you are asking about, but it is worth
> >> looking at.
>
> >> Anil wrote:
> >>> I have been trying to get it up and running on Windows 7 but have had
> >>> issues.
> >>> Running Hello Android fails. Yes, I build, clean, build.
> >>> Java 1.6.20, Eclipse 3.5.2, Windows 7 (it is 64 bit but I installed
> >>> the 32 bit Java and 32 bit Eclipse).
> >>> Error Log:
>
> >>> !ENTRY org.eclipse.jdt.ui 4 10001 2010-07-22 09:16:32.010
> >>> !MESSAGE Internal Error
> >>> !STACK 1
> >>> Java Model Exception: Java Model Status [gen [in HelloAndroid] does
> >>> not exist]
> >>>     at
> >>> org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:
> >>> 502)
> >>>     at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:
> >>> 246)
> >>>     at
> >>> org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:
> >>> 515)
> >>>     at
> >>> org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
> >>> 252)
> >>>     at
> >>> org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
> >>> 238)
> >>>     at
> >>> org.eclipse.jdt.internal.core.PackageFragmentRoot.getKind(PackageFragmentRoot.java:
> >>> 477)
> >>>     at
> >>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
> >>> 645)
> >>>     at
> >>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:
> >>> 791)
> >>>     at
> >>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
> >>> 734)
> >>>     at
> >>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:
> >>> 791)
> >>>     at
> >>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
> >>> 734)
> >>>     at
> >>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.elementChanged(PackageExplorerContentProvider.java:
> >>> 124)
> >>>     at org.eclipse.jdt.internal.core.DeltaProcessor
> >>> $3.run(DeltaProcessor.java:1557)
> >>>     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> >>>     at
> >>> org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:
> >>> 1547)
> >>>     at
> >>> org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:
> >>> 1381)
> >>>     at
> >>> org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:
> >>> 1357)
> >>>     at
> >>> org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:
> >>> 1958)
> >>>     at
> >>> org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:
> >>> 470)
> >>>     at org.eclipse.core.internal.events.NotificationManager
> >>> $2.run(NotificationManager.java:291)
> >>>     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> >>>     at
> >>> org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:
> >>> 285)
> >>>     at
> >>> org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:
> >>> 149)
> >>>     at
> >>> org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:
> >>> 313)
> >>>     at
> >>> org.eclipse.core.internal.resources.Workspace.aboutToBuild(Workspace.java:
> >>> 244)
> >>>     at org.eclipse.core.internal.resources.Project$1.run(Project.java:
> >>> 513)
> >>>     at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
> >>> 1800)
> >>>     at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
> >>> 1782)
> >>>     at
> >>> org.eclip

Re: [android-beginners] Re: Windows 7 issue? gen [in HelloAndroid] does not exist

2010-07-23 Thread Sam Hobbs

Okay, if my comment is not relevant then I apologize.



Anil wrote:

It says, "This bug only applies on Windows and only with JRE 1.6u21"

On Jul 23, 9:12 pm, Sam Hobbs  wrote:

Actually the message was:

Message-id:<4c44dec7.1030...@samhobbs.org>
Date: Mon, 19 Jul 2010 16:24:55 -0700
From: Sam Hobbs
Subject: [android-beginners] Crashing/hanging problem with recent
JDK/JRE update on Windows

It is a link to:

Crashing/hanging problem with recent JDK/JRE update on 
Windowshttp://www.eclipse.org/forums/index.php?t=msg&th=171988&start=0&;



Anil wrote:

I installed Java 1.6.20 which avoids the Eclipse problem.
Did you get it working for 64 bit Windows? I didn't see an update on
your thread (http://groups.google.com/group/android-beginners/
browse_thread/thread/6cde21db2a09cacd/
26e26503c3b85a94#26e26503c3b85a94)
For now, I am using my laptop with Vista 32 bit.



On Jul 22, 2:26 pm, Sam Hobbswrote:

Did you look at previous messages in this group for answers? I don't see
mention of it. My message just has a link to the sticky in the Eclipse
forums; did you look there?



There is a problem causing problems for Eclipse 3.5 in Windows; I don't
know if it causes the problem you are asking about, but it is worth
looking at.



Anil wrote:

I have been trying to get it up and running on Windows 7 but have had
issues.
Running Hello Android fails. Yes, I build, clean, build.
Java 1.6.20, Eclipse 3.5.2, Windows 7 (it is 64 bit but I installed
the 32 bit Java and 32 bit Eclipse).
Error Log:



!ENTRY org.eclipse.jdt.ui 4 10001 2010-07-22 09:16:32.010
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Java Model Status [gen [in HelloAndroid] does
not exist]
 at
org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:
502)
 at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:
246)
 at
org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:
515)
 at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
252)
 at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
238)
 at
org.eclipse.jdt.internal.core.PackageFragmentRoot.getKind(PackageFragmentRoot.java:
477)
 at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
645)
 at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:
791)
 at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
734)
 at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:
791)
 at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
734)
 at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.elementChanged(PackageExplorerContentProvider.java:
124)
 at org.eclipse.jdt.internal.core.DeltaProcessor
$3.run(DeltaProcessor.java:1557)
 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 at
org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:
1547)
 at
org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:
1381)
 at
org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:
1357)
 at
org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:
1958)
 at
org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:
470)
 at org.eclipse.core.internal.events.NotificationManager
$2.run(NotificationManager.java:291)
 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 at
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:
285)
 at
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:
149)
 at
org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:
313)
 at
org.eclipse.core.internal.resources.Workspace.aboutToBuild(Workspace.java:
244)
 at org.eclipse.core.internal.resources.Project$1.run(Project.java:
513)
 at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
1800)
 at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
1782)
 at
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
502)
 at org.eclipse.core.internal.resources.Project.build(Project.java:94)
 at
org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(CleanDialog.java:
312)
 at org.eclipse.ui.internal.ide.dialogs.CleanDialog
$1.runInWorkspace(CleanDialog.java:154)
 at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
38)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1

Re: [android-beginners] TextView @id/android:empty - What am i doing wrong?

2010-07-23 Thread TreKing
On Fri, Jul 23, 2010 at 5:59 PM, Nick Richardson
wrote:

> Is there something i have to call in code to make this work?  What am i
> doing wrong?
>

I have @id/android:list (no '+') and @+id/android:empty (yes '+') and it
works for me. Maybe that's it?

Also, does my ListView have to have the id "@id/android:list" in order for
> this to work, or can i give it a different id?
>

It does if you're using it in a ListActivity. Otherwise, no.

-
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


Re: [android-beginners] TextView @id/android:empty - What am i doing wrong?

2010-07-23 Thread Nick Richardson
Thanks for the reply Tre.  I made the changes to the id's like you suggested
- the TextView is still displayed even when the ListView has data in it.
 This is very frustrating :S

Updated layout snippet:



  
..

Just in case i'm doing something complete stupid, here's the code i'm using
to populate the ListView.  Note that i'm manually adding strings to be
displayed for testing right now.

ListView scheduleList = (ListView)parent.findViewById(android.R.id.list);

 scheduleList_ar.add("asdf");
 scheduleList_ar.add("WTF huh??");

 scheduleList.setTextFilterEnabled(true);
 scheduleList.setAdapter(new ArrayAdapter(parent,
android.R.layout.simple_list_item_1, scheduleList_ar));

scheduleList.setOnItemClickListener(new OnItemClickListener() {
 @Override
 public void onItemClick(AdapterView a, View v, int position, long
id)
 Intent scheduleOptionsActivity = new Intent(parent.getBaseContext(),
ScheduleOptions.class);
 scheduleOptionsActivity.putExtra("scheduleId",
scheduleList_ar.get(position));
 parent.startActivity(scheduleOptionsActivity);
 }
 });

Thanks again for any help!
//Nick

On Fri, Jul 23, 2010 at 9:20 PM, TreKing  wrote:

> On Fri, Jul 23, 2010 at 5:59 PM, Nick Richardson <
> richardson.n...@gmail.com> wrote:
>
>> Is there something i have to call in code to make this work?  What am i
>> doing wrong?
>>
>
> I have @id/android:list (no '+') and @+id/android:empty (yes '+') and it
> works for me. Maybe that's it?
>
> Also, does my ListView have to have the id "@id/android:list" in order for
>> this to work, or can i give it a different id?
>>
>
> It does if you're using it in a ListActivity. Otherwise, no.
>
>
> -
> 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
>



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