[android-beginners] Re: Custom multiselect dialog

2010-05-10 Thread skalluraya
I tried doing custom base adapter but have a small problem. when i
check checkbox row scroll down some other check box is checked.

The code for that is following:

package com.testing;

import java.io.IOException;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.BitmapFactory;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.BaseAdapter;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.CompoundButton.OnCheckedChangeListener;


package com.virtualprogramming;

import java.io.IOException;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.BitmapFactory;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.BaseAdapter;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.CompoundButton.OnCheckedChangeListener;


public class QuickIDDialogAdapter extends BaseAdapter
{

private Context mContext;
private final LayoutInflater mInflater;
private String[] mFeildsList;
private String mAssetFolderName;
private boolean[] mbCheckedStatus;
private ArrayList mListData;


public QuickIDDialogAdapter(Context context,ArrayList
inListData, String inAssetFolderName, boolean[] inCheckedStatus)
{
mInflater = LayoutInflater.from(context);
mContext = context;
mAssetFolderName = inAssetFolderName;
mbCheckedStatus = inCheckedStatus;
mListData = inListData;
}


@Override
public int getCount()
{
// TODO Auto-generated method stub
return mListData.size();
}

/**
 * Since the data comes from an array, just returning the index is
sufficent
 * to get at the data. If we were using a more complex data
structure, we
 * would return whatever object represents one row in the list.
 *
 * @see android.widget.ListAdapter#getItem(int)
 */
public Object getItem(int position)
{
return position;
}

/**
 * Use the array index as a unique id.
 *
 * @see android.widget.ListAdapter#getItemId(int)
 */
public long getItemId(int position)
{
return position;
}

/**
 * Make a view to hold each row.
 *
 * @see android.widget.ListAdapter#getView(int, android.view.View,
 *  android.view.ViewGroup)
 */
public View getView(int position, View convertView, ViewGroup parent)
{
// A ViewHolder keeps references to children views to avoid
unneccessary calls
// to findViewById() on each row.
ViewHolder holder;

// When convertView is not null, we can reuse it directly, 
there is
no need
// to reinflate it. We only inflate a new View when the 
convertView
supplied
// by ListView is null.
if (convertView == null)
{
convertView = mInflater.inflate(R.layout.dialoglistrow, 
null);
// Creates a ViewHolder and store references to the two 
children
views
// we want to bind data to.

holder = new ViewHolder();


holder.filterCheckBox = (CheckBox)
convertView.findViewById(R.id.dialogrowcheckbox);
holder.filterCheckBox.setOnClickListener(new
CheckBoxClickListener(position));

holder.filterName = (TextView)
convertView.findViewById(R.id.dialogrowname);
holder.filterIcon = (ImageView)
convertView.findViewById(R.id.dialogrowimage);
convertView.setTag(holder);
}
else
{
// Get the ViewHolder back to get fast access to the 
TextView
// and the ImageView.
holder = (ViewHolder) convertView.getTag();
}

String filterName = mListData.get(position);
// Bind the data efficiently with the holder.
holder.filterName.setText(filterName);
holder.filterCheckBox.setChecked(mbCheckedStatus[position]);
try
{

holder.filterIcon.setImageBitmap(BitmapFactory.decodeStream(mContext.getAssets().open(mAssetFolderName
+"/"+filterNa

[android-beginners] To make the listed items clickable

2010-05-10 Thread Anna Rose
Hi all,

 I am a beginner  in the field of android.I just displayed the
items from the database using the webservice through  SOAP .Currently
the displayed items are in tex view. I wanna to make it them
clickable.How can i do that??  plz somone help me..

Thanks in advance,

Here is the code i used:

package grid.test;
import java.util.Vector;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.AndroidHttpTransport;
import grid.test.R;
import android.app.Activity;
//import android.content.Intent;
import android.os.Bundle;
//import android.widget.ArrayAdapter;
import android.widget.Button;
//import android.widget.ListView;
import android.widget.TextView;
import android.view.*;

import android.widget.TextView;

public class screen2 extends Activity
{

/** Called when the activity is first created. */
private static final String SOAP_ACTION = "getMessage";
private static final String METHOD_NAME = "getMessage";
private static final String NAMESPACE = "";
// ! IMPORTANT! THE URL OF THE CoLDFUSION WEBSERVER NOT
LOCALHOST BECAUSE LOCALHOST IS THE ANDROID EMULATOR !

   public void onCreate(Bundle icicle)
   {

  super.onCreate(icicle);
  setContentView(R.layout.screen2);
  Bundle extras = getIntent().getExtras();
  TextView tv = new TextView(this);

  tv.setText(extras.getString("keyName"));

  TextView mytitletext = (TextView) findViewById(R.id.text);
  mytitletext.setText(extras.getString("keyName"));
  final String URL = "http://www.bestindiancooking.com/
get_user_submitted_recipes.php?id="+extras.getString("keyName");


//CALL the web service method with the two parameters vname and
nname
  SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("nname", "Christian");
request.addProperty("itemdescription", "Braun");


  SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
  envelope.setOutputSoapObject(request);
  AndroidHttpTransport androidHttpTransport = new
AndroidHttpTransport (URL);
  try {
androidHttpTransport.call(SOAP_ACTION, envelope);

// Get the SAOP Envelope back and the extract the body
SoapObject resultsRequestSOAP = (SoapObject) envelope.bodyIn;

Vector  = (Vector)
resultsRequestSOAP.getProperty("getMessageReturn");

 //Count of the arrays beneath starting from 0
//You can see the buildup with the php site with nusoap
http://localhost/DA/nusoapclient_test2.php
int testat = .size();

// It depends on how many arrays we  have we can get to the
attributs of one of them with get(0), get(1) 
Integer i;
String rec_count;

SoapObject test_cnt = (SoapObject) .get(0);
rec_count= (String) test_cnt.getProperty("ncount");


   ((TextView)findViewById(R.id.lblStatus)).append(rec_count.toString()
+"\n");



   for(i=1;i< 10;i++)
{


SoapObject test = (SoapObject) .get(i);

String rec_name,preparation_time;


rec_name=(String) test.getProperty("recipe_name");
preparation_time=(String)
test.getProperty("preparation_time");


 
((TextView)findViewById(R.id.lblStatus)).append(rec_name.toString()
+"\t");
 
((TextView)findViewById(R.id.lblStatus)).append(preparation_time.toString()
+"\n");

 /*final ListView lv = getListView();

 setListAdapter(new ArrayAdapter(this,
R.layout.screen2,));

 View ListView;
 lv.setTextFilterEnabled(true);*/
}



  } catch(Exception E) {

((TextView)findViewById(R.id.lblStatus)).setText("ERROR:" +
E.getClass().getName() + ": " + E.getMessage()+"error");

  }


  Button b = (Button) findViewById(R.id.btnClick2);
  b.setOnClickListener(new View.OnClickListener() {
 public void onClick(View arg0) {

 setResult(RESULT_OK);
 finish();
 }
  });

   }

}

-- 
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: Launching an application from a URL

2010-05-10 Thread casebash
I found the answer here:
http://stackoverflow.com/questions/2430045/how-to-register-some-url-namespace-myapp-app-start-for-accessing-your-progra

On May 10, 3:00 pm, casebash  wrote:
> Hi all,
>
> I would like to be able to launch an application using a URL. I
> noticed that content providers 
> allowhttp://developer.android.com/guide/topics/providers/content-providers...
> you to declare a URL like format. Is it possible to launch these using
> a link in a browser or email client?
>
> Thanks,
>
> Chris
>
> --
> 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 
> athttp://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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] what is middleware in android o/s.

2010-05-10 Thread dhaval shah
Hi,

 i know about android architecture as follows
there are following 5 layers in android.

(1) *applications*
(2) *application framework
*(3)* libraries*
(4) *Android Runtime*
(5)* linux Kernal.*

 now i want to know what android middleware is made of ?
 as per my understanding *libraries* and *Android Runtime* together is
called android middle ware.
am i right ?
please correct me if i  am wrong.

thanks & regards,
  Dhaval shah

-- 
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: Get URL from Android Browser

2010-05-10 Thread mrzali
Thanks Murphy for you answer.
Anyway, can we read the Bookmark data from the Android browser.
It must be stored somewhere in the phone.



On May 11, 9:43 am, Mark Murphy  wrote:
> mrzali wrote:
> > Hi Guys,
>
> > I need a confirmation. I already did a google search but failed to
> > find the answer. It's possible for developer to create an application
> > (let say Application X) to get URL from Android Browser? Each time a
> > user browse the internet using Android Browser, Application X will
> > capture the URL.
>
> > Try to find in the android code API, but no answer. If you have the
> > answer please let me know.
>
> That is not possible -- sorry!
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in NYC: 4-6 June 2010:http://guruloft.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] Get URL from Android Browser

2010-05-10 Thread Mark Murphy
mrzali wrote:
> Hi Guys,
> 
> I need a confirmation. I already did a google search but failed to
> find the answer. It's possible for developer to create an application
> (let say Application X) to get URL from Android Browser? Each time a
> user browse the internet using Android Browser, Application X will
> capture the URL.
> 
> Try to find in the android code API, but no answer. If you have the
> answer please let me know.

That is not possible -- sorry!

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

Android Training in NYC: 4-6 June 2010: http://guruloft.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] Get URL from Android Browser

2010-05-10 Thread mrzali
Hi Guys,

I need a confirmation. I already did a google search but failed to
find the answer. It's possible for developer to create an application
(let say Application X) to get URL from Android Browser? Each time a
user browse the internet using Android Browser, Application X will
capture the URL.

Try to find in the android code API, but no answer. If you have the
answer please let me know.

Thanks guys.

-- 
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] Randomly generate sound from onClick and onShake events?

2010-05-10 Thread Aaron Lee
I've literally looked everywhere on the net and found very little
clarification on how to do this.

Pretty much, I have 8 sound files laid out in an array.xml file and I
need to play a randomly chosen file ONCE per or onClick or onShake.

First off, what technique should I use to achieve this?  ARRAY->RANDOM-
>STRING->PLAY?  RANDOM INT->PLAY?  RANDOM INT->STRING->PLAY?  Any kind
of direction will help greatly cause I'm almost 3 weeks worth of
research into this.

-- 
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: Your feedback on Samples/Tutorials/Articles

2010-05-10 Thread Ben Orchard
I think even better explanation of the sqlite db usage scenarios, including
inserting data from a website or internal source, would be very helpful.

The resources I have found so far are inadequate.

-- 
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: Your feedback on Samples/Tutorials/Articles

2010-05-10 Thread Dylan Northrup
As a counter-point, a video supported with code that describes what you're
trying to do and walking through accomplishing that goal is something I've
found to be a very useful tool as both an instructor and a student. . .
especially for students who, like me, are combination auditory and visual
learners.

On Mon, May 10, 2010 at 5:15 PM, Indicator Veritatis wrote:

> I do not share this enthusiasm for videos for two reasons:
>
> 1) I rarely see a video tutorial that tells me something valuable an
> HTML text tutorial with screenshots does not
>
> 2) a video tutorial is not searchable using Ctl-F in your text-editor
> or web-browser.
>
> On May 7, 3:48 am, Pankaj Sharma  wrote:
> > yes put some videos too...
> >
> > On Wed, May 5, 2010 at 9:08 PM, Raul Martinez 
> wrote:
> > > it would be awesome if there were video tutorials
> >
> > > On Mar 18, 5:38 pm, Megha Joshi  wrote:
> > > > Hi everyone,
> >
> > > > As many of you might have noticed by now, we have added a new
> > > > Resourcestab
> under
> > > > developer.android.com. It contains samples, tutorials and technical
> > > > articles. We want your feedback to add more samples and tutorials to
> > > > it.. Please add/vote topics for new samples and tutorials at the link
> > > > here.
> > > > Please be very specific (like mentioning API or package or feature or
> > > tool
> > > > names) when you submit a suggestion.
> >
> > > > Thanks for your feedback in helping us improve our Android developer
> > > > resources.
> >
> > > > -Megha
> >
> > > --
> > > 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 athttp://
> stackoverflow.com/questions/tagged/android
> >
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com
> > For more options, visit this group athttp://
> 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
>



-- 
Dylan Northrup
"Adversity is just change we haven't adapted ourselves to yet."
 - Aimee Mullins

-- 
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] Which Widget/UI Component to use for Gameboard?

2010-05-10 Thread Yoann Katchourine
Gridview?

Yoann Katchourine, from my phone. (+33)6.50.40.15.82

Le 10 mai 2010 23:13, "Indicator Veritatis"  a écrit :

If I want to create a gameboard, like a checker board or chess board,
and allow the user to select a square by tapping on it, which widget
should I use? The obvious approach would be to make each individual
square a button, but that sounds like too many objects.

Is there some sort of clickable-map widget I could use (not 'map' in
the sense of Google Maps, of course) to return the coordinates of
where he clicked, and let the programmer calculate which square that
is in? Should I just do the whole board as one View? Then what API do
I call to get the coordinates of the tap?

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


Re: [android-beginners] Listening to touch events outside application

2010-05-10 Thread Mark Murphy
Shaylh wrote:
> Hello everybody!
> I'm new to android (and java...) and I have the following question:
> Is it possible to know when the user touches the screen *outside* my
> application when in the background (using service?) and get the x/y
> coordinates of the touch event?

No, sorry.

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

Android 2.x Programming Books: http://commonsware.com/books

-- 
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: Your feedback on Samples/Tutorials/Articles

2010-05-10 Thread Indicator Veritatis
I do not share this enthusiasm for videos for two reasons:

1) I rarely see a video tutorial that tells me something valuable an
HTML text tutorial with screenshots does not

2) a video tutorial is not searchable using Ctl-F in your text-editor
or web-browser.

On May 7, 3:48 am, Pankaj Sharma  wrote:
> yes put some videos too...
>
> On Wed, May 5, 2010 at 9:08 PM, Raul Martinez  wrote:
> > it would be awesome if there were video tutorials
>
> > On Mar 18, 5:38 pm, Megha Joshi  wrote:
> > > Hi everyone,
>
> > > As many of you might have noticed by now, we have added a new
> > > Resourcestab under
> > > developer.android.com. It contains samples, tutorials and technical
> > > articles. We want your feedback to add more samples and tutorials to
> > > it.. Please add/vote topics for new samples and tutorials at the link
> > > here.
> > > Please be very specific (like mentioning API or package or feature or
> > tool
> > > names) when you submit a suggestion.
>
> > > Thanks for your feedback in helping us improve our Android developer
> > > resources.
>
> > > -Megha
>
> > --
> > 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 
> athttp://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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] Which Widget/UI Component to use for Gameboard?

2010-05-10 Thread Indicator Veritatis
If I want to create a gameboard, like a checker board or chess board,
and allow the user to select a square by tapping on it, which widget
should I use? The obvious approach would be to make each individual
square a button, but that sounds like too many objects.

Is there some sort of clickable-map widget I could use (not 'map' in
the sense of Google Maps, of course) to return the coordinates of
where he clicked, and let the programmer calculate which square that
is in? Should I just do the whole board as one View? Then what API do
I call to get the coordinates of the tap?

-- 
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] Listening to touch events outside application

2010-05-10 Thread Shaylh
Hello everybody!
I'm new to android (and java...) and I have the following question:
Is it possible to know when the user touches the screen *outside* my
application when in the background (using service?) and get the x/y
coordinates of the touch event?

Tnx!
:)

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


Fwd: [android-beginners] Re: How to debug

2010-05-10 Thread joshua hublar
Oh, you really need to watch this video from Google IO 2009.  How to debug
like a NINJA (yar).
http://developer.android.com/videos/index.html#v=Dgnx0E7m1GQ






On Mon, May 10, 2010 at 2:45 PM, Trang  wrote:

> Test
>
> Indicator Veritatis  wrote:
>
> >Even before running the application under the debugger, a good first
> >step is to look at LogCat in the DDMS Perspective: there will probably
> >be a Java Exception logged there, that Exception is what caused the
> >shutdown. Look for your own source code's line number in the stack
> >trace.
> >
> >On May 9, 2:55 pm, Ubuntu Explorer  wrote:
> >> Sorry, Forgot to add that I want to do it from within Eclipse IDE.
> >>
> >> On Mon, May 10, 2010 at 6:55 AM, Ubuntu Explorer
> >> wrote:
> >>
> >> > Hi,
> >>
> >> > I am able to write basic android applications now. Thanks for all your
> >> > help.
> >>
> >> > However, when there are certain runtime issues, I cannot detect them
> using
> >> > simulator. There is one msg that says "Unexpectedly shutdown" (I also
> see
> >> > this for alarm clock and other apps sometimes - though I cannot figure
> out
> >> > why?).
> >>
> >> > How to run android apps in debug mode to see where the issue is?
> >>
> >> > Regards
> >> > UE.
> >>
> >> --
> >> 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 athttp://
> stackoverflow.com/questions/tagged/android
> >>
> >> To unsubscribe from this group, send email to
> >> android-beginners+unsubscr...@googlegroups.com
> >> For more options, visit this group athttp://
> 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
>
> --
> 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] Re: How to debug

2010-05-10 Thread Indicator Veritatis
Even before running the application under the debugger, a good first
step is to look at LogCat in the DDMS Perspective: there will probably
be a Java Exception logged there, that Exception is what caused the
shutdown. Look for your own source code's line number in the stack
trace.

On May 9, 2:55 pm, Ubuntu Explorer  wrote:
> Sorry, Forgot to add that I want to do it from within Eclipse IDE.
>
> On Mon, May 10, 2010 at 6:55 AM, Ubuntu Explorer
> wrote:
>
> > Hi,
>
> > I am able to write basic android applications now. Thanks for all your
> > help.
>
> > However, when there are certain runtime issues, I cannot detect them using
> > simulator. There is one msg that says "Unexpectedly shutdown" (I also see
> > this for alarm clock and other apps sometimes - though I cannot figure out
> > why?).
>
> > How to run android apps in debug mode to see where the issue is?
>
> > Regards
> > UE.
>
> --
> 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 
> athttp://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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: Problem with IDE.

2010-05-10 Thread Indicator Veritatis
He is already using Eclipse. The problem is that when he relies on
Eclipse to create the folder, it fails. He has to recreate it manually
everytime he executes Project>Clean Project.

It sounds like something is wrong with the Ant script Eclipse has
built for the project, but based on the evidence here, it is hard to
be more specific.

On May 8, 7:30 pm, joshua hublar  wrote:
> The best advice I can offer is to go with Eclipse -- I had my dev platform
> setup in 15 minutes and I highly recommend it.  I've not had a single
> problem with it.
>
> On Sat, May 8, 2010 at 10:26 PM, Ubuntu Explorer
> wrote:
>
>
>
> > Is there a sequence to be followed while building android projects in IDE?
>
> > Sometimes, I get an error saying "gen" folder is not present. But it is an
> > autogenerated folder created duing compilation.
>
> > If I manually create this folder I am able to compile this project. But if
> > I clean and then try to build, I get a build path error.
>
> > Should I be creating this folder everytime?
>
> > Regards,
> > Sanjeev
>
> > --
> > 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 
> athttp://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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] unsubscribe

2010-05-10 Thread Kaustubh Padegaonkar
^ ^

Kaustubh Padegaonkar,
thetuxra...@gmail.com



On Sun, May 9, 2010 at 7:05 AM, joshua hublar  wrote:
> FAIL
>
> On Sat, May 8, 2010 at 9:26 PM, ku...@singhkunal.com 
> wrote:
>>
>> unsubscribe
>>
>> 
>> mail2web.com - Microsoft® Exchange solutions from a leading provider -
>> http://link.mail2web.com/Business/Exchange
>>
>>
>> --
>> 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
>

-- 
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] Changing button image based on user input.

2010-05-10 Thread TreKing
On Mon, May 10, 2010 at 8:49 AM, Tollas  wrote:

> I've searched high and low for a way to do this, but have come up
> with nothing.
>

Search for startActivityForResut(), setResult() and onActivityResult().

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

-- 
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] Android Emulator - Eclipse cannot see it

2010-05-10 Thread TreKing
On Mon, May 10, 2010 at 4:32 AM, tiger  wrote:

> Eclipse does not seem to see the emulator has fully booted up.


Please elaborate.


> I wait until it is fully booted up, the simulated SD card has been prepared
> etc., and I unlock the screen, but nothing happens.
>


What do you mean "nothing happens"? At that point nothing SHOULD happen
until you launch your app from Eclipse ...

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

-- 
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] Changing button image based on user input.

2010-05-10 Thread Tollas
I've searched high and low for a way to do this, but have come up with
nothing.

I want to have a button on my main screen (button1).
When button1 is pressed, it takes me to a 2nd screen with multiple
buttons. (this part is done).
When a user presses a button on that screen, it goes back to the main
screen and changes that button to the same image as the button they
pressed.

Example

Screen 1
-Button1 (set as image_1 - dynamic)

Screen 2
-Button2 (set as image_1 - static)
-Button3 (set as image_2 - static)

If Button3 is pressed, Button1 will now be set as image_2.

-- 
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] Custom multiselect dialog

2010-05-10 Thread TreKing
On Mon, May 10, 2010 at 2:18 AM, skalluraya  wrote:

> How can i go about it.


Try setting a custom adapter on the listview in the dialog.

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

-- 
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] Android Emulator - Eclipse cannot see it

2010-05-10 Thread tiger
Hi,
I have tried every solution on the web, but the emulator never loads
my program. Eclipse does not seem to see the emulator has fully booted
up. I am trying to run the standard "Hello Android" program that is
created when you create a new Android project.

Last message in Eclipse is: "Launching a new emulator with Virtual
Device"...

I wait until it is fully booted up, the simulated SD card has been
prepared etc., and I unlock the screen, but nothing happens.

Running:
ADT 0.9.6
Android SDK 2.1
Eclipse Galileo (Build id: 20100218-1602)
Windows Vista

I have tried using adb kill-server, running it after a reboot (so ADB
has not been run yet on the machine) and disconnecting from the
network first and then disabling all software firewalls. I initially
tried it in Intellij Idea, and only switched to Eclipse when I had
this problem. Either way I get the same outcome in Eclipse or Intellij.

-- 
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: selecting item from a list

2010-05-10 Thread moiraine
I looked up several of the ideas, and ended up trying to add buttons
to the listview.  However, I'm running into this problem...

"ArrayAdapter requires the resource ID to be a TextView"

The XML layout (task_item.xml) in question is:


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







and the code causing the problem is (after the button listener to save
space):

...});

ArrayAdapter tList = new ArrayAdapter(this,
R.layout.task_item, tasks);
setListAdapter(tList);
}


I've been playing around with this for some time, and have combed
google for an existing working example of buttons in a listview per
row, but can't seem to find anything =(

Thanks for any help,
Moiraine

On May 8, 5:37 pm, Mark Murphy  wrote:
> moiraine wrote:
> > I'm trying to use a ListView with Buttons beneath the listview, and am
> > running into problems where the listview and buttons just don't
> > realize each other are there (they overlap)
>
> > Currently the xml file is:
> > 
> >  >   xmlns:android="http://schemas.android.com/apk/res/android";
> >   android:layout_width="fill_parent"
> >   android:layout_height="wrap_content">
>
> >     >            android:id="@+id/addTask"
> >            android:layout_width="fill_parent"
> >            android:layout_height="wrap_content"
> >            android:text="Add Task" />
>
> >      >            android:id="@id/android:list"
> >         android:layout_width="fill_parent"
> >         android:layout_height="fill_parent"
> >         android:drawSelectorOnTop="false"/>
>
> > 
>
> You have not specified any positioning rules, so these will overlap by
> definition, given the way RelativeLayout works. Read up on
> RelativeLayout.LayoutParams and add some more rules, such as
> android:layout_below or android:layout_alignParentBottom.
>
> > I'm also not sure if using a ListView in this case is the correct
> > solution.  What I'm trying to do is have a list of options that the
> > user can select, and when they select it, it remains highlighted, then
> > I can use that value when I press another button, for example:
>
> > item 1
> > item 2
> > item 3
>
> > [Move item up]
> > [Move item down]
>
> > where [ ]'s are buttons
>
> That's not a good UI design for a touchscreen-centric platform. In
> Android, there is no concept of "selection" when they use the
> touchscreen, only when they use the D-pad/trackball.
>
> > Any suggestions with what I should actually be using?
>
> A context menu.
>
> Or, when they click on an item, bring up a "details activity" where they
> can take actions via buttons or the option menu.
>
> Or, when they click on an item, bring up an AlertDialog where they can
> take actions.
>
> Or, put move-up/move-down buttons in each row.
>
> Or, use drag-and-drop (there's some code in the open source project for
> this in the Music app, used there for playlist management, though I
> haven't tried separating it out into a reusable component)
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.0
> 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 
> athttp://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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] Custom multiselect dialog

2010-05-10 Thread skalluraya
Hi All,
I want to create a multiselect dialog. Andorid's multiselectbox
accepts only the character String array and displays the text view
with checkbox for each item. But i want an added image to each item at
the left side of the item. How can i go about it.

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