Re: [android-developers] R Can Not be Resolved

2012-11-04 Thread Sobia Awan
R.java is a file that the Android Eclipse plugins creates while building
your application.R.java is created under the gen directory. This file is
generated from the information in the res directory. If you run select
Project - Clean... on the Eclipse menu, it will remove and then
regenerate the R.java file.

The problem R cannot be resolved happens when you change your package
name in the Androidmanifest.xml file. It uses your Android package name to
create a subdirectory under the gen directory where it stores the R.java
file.

Eclipse may have problems executing clean, because it is confused about
where the R.java file is when you have changed the Android package name.
You can either rename the subdirectory under gen to match your new package
name, or you can change your package name back to the old name. Do the
clean and then change the package name to the new name you want. This works
best if you stop Eclipse from trying to build while you are changing the
package name. Under the Project menu uncheck the option to Build
Automatically and also when the Clean... dialog asks if it should Start
a build immediately uncheck the box so it doesn't try to build while you
are changing the package name. After you have changed the name you can turn
Build Automatically back on again.

On Sun, Nov 4, 2012 at 2:58 AM, Kevin Brooks bear35...@gmail.com wrote:

 It has been a while since I have done any Android Development.  I started
 a new project today, and after creating the project I get an error R can
 not be resolved.

 I am using Eclipse Indigo 3.7 with the Latest Android SDK.

 I apologize if this has already been answered, I did a search through the
 messages and couldn't find it.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@**googlegroups.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en




-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Error (INSTALL_FAILED_MISSING_FEATURE)

2012-09-26 Thread Sobia Awan
Hi,
I got error *INSTALL_FAILED_MISSING_FEATURE* while installing my app in
emulator. I am unable to find out the where is the error. My app consists
of both Gps  Camera features. I am not getting where I am wrong even i
have made many changes but not working. Is it problem with ANDROID
MANIFESTPlease Help me as soon as possible...

Thank you
error while installing on console


[2012-09-26 19:00:50 - CaptureActivity] Installation error:
INSTALL_FAILED_MISSING_FEATURE

[2012-09-26 19:00:50 - CaptureActivity] Please check logcat output for more
details.

[2012-09-26 19:00:50 - CaptureActivity] Launch canceled!





-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Error (INSTALL_FAILED_MISSING_FEATURE)

2012-09-26 Thread Sobia Awan
Thank you for your reply ...now Activity starting successfully without any
logcat messages but fatal exception occur on scanner activity...Any help
please...

On Wed, Sep 26, 2012 at 8:47 PM, RichardC richard.crit...@googlemail.comwrote:

 As the message says look in the logcat output and if you don't
 understand it please post it here.


 On Wednesday, September 26, 2012 4:26:08 PM UTC+1, S Awan wrote:

 Hi,
 I got error *INSTALL_FAILED_MISSING_FEATURE* while installing my app in
 emulator. I am unable to find out the where is the error. My app consists
 of both Gps  Camera features. I am not getting where I am wrong even i
 have made many changes but not working. Is it problem with ANDROID
 MANIFESTPlease Help me as soon as possible...

 Thank you
 error while installing on console


 [2012-09-26 19:00:50 - CaptureActivity] Installation error:
 INSTALL_FAILED_MISSING_FEATURE

 [2012-09-26 19:00:50 - CaptureActivity] Please check logcat output for
 more details.

 [2012-09-26 19:00:50 - CaptureActivity] Launch canceled!





 --
 *Sobia Awan*
 *  Bs(cs)*
 **


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Error (INSTALL_FAILED_MISSING_FEATURE)

2012-09-26 Thread Sobia Awan
ok...Thanks for your help

On Thu, Sep 27, 2012 at 2:16 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 Get a logcat dump, there *will* be one, if the app has crashed.

 kris

 On Wed, Sep 26, 2012 at 5:10 PM, Sobia Awan juwerian.so...@gmail.com
 wrote:
  fatal exception means... on my scanner activity there is a pop up box
 which
  showing me this message( this application has stopped
 unexpectedly)..please
  any help
 
 
  On Thu, Sep 27, 2012 at 2:06 AM, Kristopher Micinski
  krismicin...@gmail.com wrote:
 
  Fatal exception implies there *will* be a logcat message.
 
  kris
 
  On Wed, Sep 26, 2012 at 5:01 PM, Sobia Awan juwerian.so...@gmail.com
  wrote:
   Thank you for your reply ...now Activity starting successfully without
   any
   logcat messages but fatal exception occur on scanner activity...Any
 help
   please...
  
  
   On Wed, Sep 26, 2012 at 8:47 PM, RichardC
   richard.crit...@googlemail.com
   wrote:
  
   As the message says look in the logcat output and if you don't
   understand it please post it here.
  
  
   On Wednesday, September 26, 2012 4:26:08 PM UTC+1, S Awan wrote:
  
   Hi,
   I got error INSTALL_FAILED_MISSING_FEATURE while installing my app
 in
   emulator. I am unable to find out the where is the error. My app
   consists of
   both Gps  Camera features. I am not getting where I am wrong even i
   have
   made many changes but not working. Is it problem with ANDROID
   MANIFESTPlease Help me as soon as possible...
  
   Thank you
   error while installing on console
  
  
   [2012-09-26 19:00:50 - CaptureActivity] Installation error:
   INSTALL_FAILED_MISSING_FEATURE
  
   [2012-09-26 19:00:50 - CaptureActivity] Please check logcat output
 for
   more details.
  
   [2012-09-26 19:00:50 - CaptureActivity] Launch canceled!
  
  
  
  
  
  
   --
   Sobia Awan
 Bs(cs)
  
  
  
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
   android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
  
  
  
  
   --
   Sobia Awan
 Bs(cs)
  
  
  
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 
 
 
  --
  Sobia Awan
Bs(cs)
 
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to design shopping cart android application..

2012-09-24 Thread Sobia Awan
Hi,
  i have a requirement to develop shopping cart app...

Please can anyone   suggest me  with sample code if possible?

Thanks,

-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How can I add description with respect to each image in image switcher..

2012-09-19 Thread Sobia Awan
walikum As salam!   Too late reply but this code is really helpful for
me...Thank you so much for your reply.

On Tue, Sep 18, 2012 at 5:20 PM, Badshah khan 
sultan.ibra...@xintsolutions.com wrote:


 Asalam o Alaikum.

  * *hope this is helpful.

  mSwitcher = (ImageSwitcher)findViewById(R.id.imageSwitcher1);
 mSwitcher.setFactory(this);

  Gallery g = (Gallery)findViewById(R.id.gallery1);
  g.setAdapter(new ImageAdapter(this));
  g.setOnItemSelectedListener(this);

 public void onItemSelected(AdapterView? parent, View v, int
 position, long id) {
// mSwitcher.setImageResource(mImageIds[position]);
 tv.setText(myThemeName[position]);}
   private String[] myThemeName = {Arts and Culture,Beaches and
 Parks,
  Boating and Water sports,Culinary,
  Fishing,Family,Nature and
 Wildlife,
  Nightlife};



  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] problem in spinner...

2012-09-16 Thread Sobia Awan
Hi,

i have an issue in spinner..i applied intent on spinner options when i
select the spinner option it should go to new activity directly ,but its
working little bit wrong when i select  the option first it go to back
means spinner activity then goes to new activity ...Any Help please!

Thank you

-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Problem in Emulator !

2012-09-16 Thread Sobia Awan
Its depend on your processor ...In this situation you have to close your
emulator and start it again ...

On Sun, Sep 16, 2012 at 5:18 PM, Meena Rengarajan meenasoft...@gmail.comwrote:

 [2012-09-16 17:45:51 - QuizeActivity] New emulator found: emulator-5554
 [2012-09-16 17:45:51 - QuizeActivity] Waiting for HOME
 ('android.process.acore') to be launched...
 [2012-09-16 17:47:02 - QuizeActivity] HOME is up on device 'emulator-5554'
 [2012-09-16 17:47:02 - QuizeActivity] Uploading QuizeActivity.apk onto
 device 'emulator-5554'
 [2012-09-16 17:47:13 - QuizeActivity] Failed to install QuizeActivity.apk
 on device 'emulator-5554': timeout
 [2012-09-16 17:47:13 - QuizeActivity] Launch canceled!

 My emulator is very slow and when i do run the apps , it is not running.
 Whats the problem here ?

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] problem in spinner...

2012-09-16 Thread Sobia Awan
No!  its a different...

On Sun, Sep 16, 2012 at 4:28 PM, Ibrahim Sada ibrahim.in...@gmail.comwrote:

 Hey u still strcuked in that same problm..

 On 16 September 2012 16:01, Sobia Awan juwerian.so...@gmail.com wrote:

 Hi,

 i have an issue in spinner..i applied intent on spinner options when i
 select the spinner option it should go to new activity directly ,but its
 working little bit wrong when i select  the option first it go to back
 means spinner activity then goes to new activity ...Any Help please!

 Thank you

 --
 *Sobia Awan*
 *  Bs(cs)*
 **


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Icons in LISTVIEW...

2012-09-06 Thread Sobia Awan
Hi,

 I want to set  3 icons at  the right side of the LISTVIEW  when i click on
icon1 the new activity should start and so on,  Is  it possible or not ...?


Thank you
-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Icons in LISTVIEW...

2012-09-06 Thread Sobia Awan
ok ! Thanks for your reply..

On Thu, Sep 6, 2012 at 10:47 PM, Amey Bapat amey.n.ba...@gmail.com wrote:

 import android.app.Activity;
 import android.app.ListActivity;
 import android.os.Bundle;
 import android.widget.ArrayAdapter;
 import android.widget.Button;
 import android.widget.ListView;

 public class Home extends ListActivity {

 String [] names = {aa, bb, cc, dd};
  int [] images = { R.drawable.wall, R.drawable.back, R.drawable.wall,
 R.drawable.back};
ListView list;
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);

 list = getListView();

 FriendAdapter adapter = new FriendAdapter(names, images, this);
 list.setAdapter(adapter);


 }

 }

 adapter class:
 import android.content.Context;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.BaseAdapter;

 public class FriendAdapter extends BaseAdapter {

 private int [] images;
  private String [] names;
 private Context context;
  public FriendAdapter( String [] names, int [] images, Context context ) {
 this.names = names;
  this.images = images;
 this.context = context;
 }
   public int getCount() {
  // TODO Auto-generated method stub
 return images.length;
 }

  public Object getItem(int position) {
 // TODO Auto-generated method stub
  return null;
 }


 public long getItemId(int position) {
  // TODO Auto-generated method stub
 return 0;
 }

  public View getView(int position, View convertView, ViewGroup parent) {
  FriendView f = new FriendView(context);
 f.setImage( images[position]);
 f.setText(names[position]);
  return f;
 }

 }




 import android.content.Context;
 import android.util.AttributeSet;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.Button;
 import android.widget.ImageView;
 import android.widget.LinearLayout;
 import android.widget.TextView;
 import android.widget.Toast;

 public class FriendView extends LinearLayout {

 ImageView image;
 TextView text;
 Button myNewButton;
  public FriendView(Context context, AttributeSet attrs) {
 super(context, attrs);
  }
  public FriendView(final Context context) {
 super(context);
  image = new ImageView(context);
 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT,
 LayoutParams.WRAP_CONTENT);
  //android.view.ViewGroup.LayoutParams lp = new
 ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,
 ViewGroup.LayoutParams.FILL_PARENT);
 image.setLayoutParams( lp );
  text = new TextView(context);
 text.setLayoutParams(lp);
  myNewButton = new Button(context);
 myNewButton.setLayoutParams(lp);
 myNewButton.setWidth(100);
 myNewButton.setHeight(200);
 setOrientation(LinearLayout.HORIZONTAL);
  //setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
 LayoutParams.WRAP_CONTENT));
 addView(image);
  addView( text );
 addView(myNewButton);
 myNewButton.setOnClickListener(new OnClickListener() {
  public void onClick(View v) {
 // TODO Auto-generated method stub
  Toast.makeText(context, myNewButton.getText().toString(),
 Toast.LENGTH_SHORT).show();
  }
 });
 }

 public void setImage( int resId ) {
 image.setImageResource(resId);
  }
 public void setText(String str) {
 text.setText(str);
  myNewButton.setText(str);
 }
 }

 its not exactly what u want but
  i am doing event handling on da button,instead of the button u will have
 an icon nd u would throw an intent on dat item's onclick..
 its easy..jus try it..
 a basic code to help u out..
 all da best..

 On Thu, Sep 6, 2012 at 7:52 PM, Sobia Awan juwerian.so...@gmail.comwrote:


 Hi,

  I want to set  3 icons at  the right side of the LISTVIEW  when i click
 on icon1 the new activity should start and so on,  Is  it possible or not
 ...?


 Thank you
 --
 *Sobia Awan*
 *  Bs(cs)*
 **


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 live and let LIVE!!!

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: how to set two spinners with different strings and icons?

2012-08-28 Thread Sobia Awan
yes i hve chkd whole coding many time and also chkd each spinner
has different  ID...shall i snd u code?

On Sun, Aug 26, 2012 at 1:54 AM, KinnMirr 6004...@gmail.com wrote:

 First ... the program is only doing EXACTLY what you're telling it to do.
 Believe that.

 So, somewhere you're telling it to do the same thing twice.

 Check that each spinner has a different ID
 Check your population routines target two different spinner ID.

 Then, look close at every line of code ... like it was the first time you
 wrote it and go through the PROGRAMMING again in your head.

 If that doesn't work ... you better just post the Activity and Layout here
 for others to look at.
 Maybe we can see something you're overlooking!

 Fred

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: how to set two spinners with different strings and icons?

2012-08-28 Thread Sobia Awan
shall i send u my coding again?



On Tue, Aug 28, 2012 at 9:23 PM, Justin Anderson magouyaw...@gmail.comwrote:

 You have asked this question multiple times... I tried helping you on the
 other post, and even explained many things that you were not doing right.

 But sure... go ahead and post your code again.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware



 On Tue, Aug 28, 2012 at 9:04 AM, Sobia Awan juwerian.so...@gmail.comwrote:

 yes i hve chkd whole coding many time and also chkd each spinner
 has different  ID...shall i snd u code?


 On Sun, Aug 26, 2012 at 1:54 AM, KinnMirr 6004...@gmail.com wrote:

 First ... the program is only doing EXACTLY what you're telling it to
 do. Believe that.

 So, somewhere you're telling it to do the same thing twice.

 Check that each spinner has a different ID
 Check your population routines target two different spinner ID.

 Then, look close at every line of code ... like it was the first time
 you wrote it and go through the PROGRAMMING again in your head.

 If that doesn't work ... you better just post the Activity and Layout
 here for others to look at.
 Maybe we can see something you're overlooking!

 Fred

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 *Sobia Awan*
 *  Bs(cs)*
 **


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: how to set two spinners with different strings and icons?

2012-08-28 Thread Sobia Awan
actually i got solution of intent in spinner not this so if it will b
possible for u then please reply me...Thanks

On Tue, Aug 28, 2012 at 9:26 PM, Sobia Awan juwerian.so...@gmail.comwrote:

 shall i send u my coding again?



 On Tue, Aug 28, 2012 at 9:23 PM, Justin Anderson magouyaw...@gmail.comwrote:

 You have asked this question multiple times... I tried helping you on the
 other post, and even explained many things that you were not doing right.

 But sure... go ahead and post your code again.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware



 On Tue, Aug 28, 2012 at 9:04 AM, Sobia Awan juwerian.so...@gmail.comwrote:

 yes i hve chkd whole coding many time and also chkd each spinner
 has different  ID...shall i snd u code?


 On Sun, Aug 26, 2012 at 1:54 AM, KinnMirr 6004...@gmail.com wrote:

 First ... the program is only doing EXACTLY what you're telling it to
 do. Believe that.

 So, somewhere you're telling it to do the same thing twice.

 Check that each spinner has a different ID
 Check your population routines target two different spinner ID.

 Then, look close at every line of code ... like it was the first time
 you wrote it and go through the PROGRAMMING again in your head.

 If that doesn't work ... you better just post the Activity and Layout
 here for others to look at.
 Maybe we can see something you're overlooking!

 Fred

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 *Sobia Awan*
 *  Bs(cs)*
 **


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 *Sobia Awan*
 *  Bs(cs)*
 **





-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] More Than One Spinners

2012-08-26 Thread Sobia Awan
Thank you so much  for your help...i have done this task with different
method...now i m trying to apply intent on spinner selection..but it is not
working properly...actually i want  to call another java class using new
Intent when users selects the spinner...Please help me ...Many Thanks.

On Sun, Aug 26, 2012 at 1:39 AM, Sobia Awan juwerian.so...@gmail.comwrote:



 On Sat, Aug 25, 2012 at 2:41 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Well, for one, your row.xml does not use id's properly... You only want
 to use the plus sign the first time you define the id.  After that you
 don't want the plus sign...


 So, for example, when you define the id for your image, you should use
 @+id/image1 After that, everywhere else, you should use this notation:
 @id/image1

 thank you i got your point here..


 Also, you have defined image1 and image2 to be drawn exactly on top of
 eachother... and since your other textviews in the row are only defined
 relative to one of these images you have defined company1 and company2 to
 be right on top of eachother, and so on...

 but i did not get here that wt should i do...shall i change   the
 @+id/image1 t@+id/image1  and   @+id/image2   just with @+id/image..??


 Here's a question I'm assuming a row is only supposed to define data
 for a single item, right?  So why in the world do you have 2 of
 everything?  Why two images?  Why two companies? Why two sub texts?


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Fri, Aug 24, 2012 at 3:01 PM, Sobia Awan juwerian.so...@gmail.comwrote:

 okay  Thank you  for reply i tell u in more details...

  Actually i have created one  spinner with different entries and
 different icons  in my app but when i create second 'spinner' with
 different entries and different icons in my app, so entries overwrite on
 one another due to the initialization of second 'spinner's' entries..any
 help please, i m new in android ...please reply me as soon as
 possible...Many Thanks!

 here is my **main.xml**
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:orientation=vertical
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 Spinner
 android:id=@+id/spinner1
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:drawSelectorOnTop=true
 android:prompt=@string/prompt/
 Spinner
 android:id=@+id/spinner2
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:drawSelectorOnTop=true
 android:prompt=@string/prompt/
 /LinearLayout

 my **row.xml**

 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:orientation=vertical
 android:padding=3dip
 ImageView
 android:id=@+id/image1

 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:src=@drawable/ic_launcher/
 TextView
 android:layout_toRightOf=@+id/image1

 android:padding=3dip
 android:layout_marginTop=2dip
 android:textColor=@drawable/red
 android:textStyle=bold
  android:id=@+id/company1
 android:text=Sandils

 android:layout_marginLeft=5dip
 android:layout_width=wrap_content
 android:layout_height=wrap_content/
  TextView
 android:layout_toRightOf=@+id/image1

 android:padding=2dip
 android:textColor=@drawable/darkgrey
 android:layout_marginLeft=5dip
 android:id=@+id/sub1
 android:layout_below=@+id/company1
 android:text=Sandils

 android:layout_width=wrap_content
 android:layout_height=wrap_content/

 ImageView
 android:id=@+id/image2
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:src=@drawable/ic_launcher/
  TextView
 android:layout_toRightOf=@+id/image2
 android:padding=3dip
 android:layout_marginTop=2dip
 android:textColor=@drawable/red
 android:textStyle=bold
 android:id=@+id/company2
 android:layout_marginLeft=5dip
 android:layout_width=wrap_content
 android:layout_height=wrap_content/
 TextView
 android:layout_toRightOf=@+id/image2
 android:padding=2dip
 android:textColor=@drawable/darkgrey
 android:layout_marginLeft=5dip
 android:id=@+id/sub2
 android:layout_below=@+id/company2
 android:layout_width=wrap_content
 android:layout_height=wrap_content/
 /RelativeLayout

 my **SpinnersDemo.java** activity

 Package com.SpinnersDemo;
 import android.app.Activity;
 import android.content.Context;
 import android.content.Intent;
 import android.os.Bundle;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.AdapterView

[android-developers]

2012-08-26 Thread Sobia Awan
Hi,

 I want to apply intent on spinner ,I have a spinner and when the user
selects I want to call another java class using new Intent..Any Help please
ManyThanks.

-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers]

2012-08-26 Thread Sobia Awan
i have done this @viney kumar...shall i snd u code?



On Sun, Aug 26, 2012 at 3:51 PM, vinay kumar vk872...@gmail.com wrote:

 Hi sobia,

  Assuming you that your currently able to get the selected item from of
 your spinner.

 Under the same function call

 startActivity(new Intent(current_class.this,calling_class.class))

 instead of current_class.this you try calling the following methods.

 getApplicationContext();


 All the Best.

 Regards
 VinayKumar


 On Sun, Aug 26, 2012 at 3:38 PM, Sobia Awan juwerian.so...@gmail.comwrote:

 Hi,

  I want to apply intent on spinner ,I have a spinner and when the user
 selects I want to call another java class using new Intent..Any Help please
 ManyThanks.

 --
 *Sobia Awan*
 *  Bs(cs)*
 **


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] how to set two spinners with different strings and icons?

2012-08-25 Thread Sobia Awan
no i have done the same thing for the second spinner but output is not
correct ... any other solution please...many thanks..


On Mon, Aug 20, 2012 at 8:16 AM, TreKing treking...@gmail.com wrote:

 On Sat, Aug 18, 2012 at 10:56 AM, Sobia Awan juwerian.so...@gmail.comwrote:

 i want to set different strings or icons in two spinners ..i hve done
 this in one spinner bt not in two spinners


 Take what you did for the first spinner, then do it again for the second
 spinner ...




 Jesus Christ.


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

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] More Than One Spinners

2012-08-25 Thread Sobia Awan
On Sat, Aug 25, 2012 at 2:41 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Well, for one, your row.xml does not use id's properly... You only want to
 use the plus sign the first time you define the id.  After that you don't
 want the plus sign...


 So, for example, when you define the id for your image, you should use
 @+id/image1 After that, everywhere else, you should use this notation:
 @id/image1

thank you i got your point here..


 Also, you have defined image1 and image2 to be drawn exactly on top of
 eachother... and since your other textviews in the row are only defined
 relative to one of these images you have defined company1 and company2 to
 be right on top of eachother, and so on...

but i did not get here that wt should i do...shall i change   the
@+id/image1 t@+id/image1  and   @+id/image2   just with @+id/image..??


 Here's a question I'm assuming a row is only supposed to define data
 for a single item, right?  So why in the world do you have 2 of
 everything?  Why two images?  Why two companies? Why two sub texts?


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Fri, Aug 24, 2012 at 3:01 PM, Sobia Awan juwerian.so...@gmail.comwrote:

 okay  Thank you  for reply i tell u in more details...

  Actually i have created one  spinner with different entries and
 different icons  in my app but when i create second 'spinner' with
 different entries and different icons in my app, so entries overwrite on
 one another due to the initialization of second 'spinner's' entries..any
 help please, i m new in android ...please reply me as soon as
 possible...Many Thanks!

 here is my **main.xml**
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:orientation=vertical
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 Spinner
 android:id=@+id/spinner1
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:drawSelectorOnTop=true
 android:prompt=@string/prompt/
 Spinner
 android:id=@+id/spinner2
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:drawSelectorOnTop=true
 android:prompt=@string/prompt/
 /LinearLayout

 my **row.xml**

 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:orientation=vertical
 android:padding=3dip
 ImageView
 android:id=@+id/image1

 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:src=@drawable/ic_launcher/
 TextView
 android:layout_toRightOf=@+id/image1

 android:padding=3dip
 android:layout_marginTop=2dip
 android:textColor=@drawable/red
 android:textStyle=bold
  android:id=@+id/company1
 android:text=Sandils

 android:layout_marginLeft=5dip
 android:layout_width=wrap_content
 android:layout_height=wrap_content/
  TextView
 android:layout_toRightOf=@+id/image1

 android:padding=2dip
 android:textColor=@drawable/darkgrey
 android:layout_marginLeft=5dip
 android:id=@+id/sub1
 android:layout_below=@+id/company1
 android:text=Sandils

 android:layout_width=wrap_content
 android:layout_height=wrap_content/

 ImageView
 android:id=@+id/image2
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:src=@drawable/ic_launcher/
  TextView
 android:layout_toRightOf=@+id/image2
 android:padding=3dip
 android:layout_marginTop=2dip
 android:textColor=@drawable/red
 android:textStyle=bold
 android:id=@+id/company2
 android:layout_marginLeft=5dip
 android:layout_width=wrap_content
 android:layout_height=wrap_content/
 TextView
 android:layout_toRightOf=@+id/image2
 android:padding=2dip
 android:textColor=@drawable/darkgrey
 android:layout_marginLeft=5dip
 android:id=@+id/sub2
 android:layout_below=@+id/company2
 android:layout_width=wrap_content
 android:layout_height=wrap_content/
 /RelativeLayout

 my **SpinnersDemo.java** activity

 Package com.SpinnersDemo;
 import android.app.Activity;
 import android.content.Context;
 import android.content.Intent;
 import android.os.Bundle;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.AdapterView;
 import android.widget.ArrayAdapter;
 import android.widget.ImageView;
 import android.widget.Spinner;
 import android.widget.TextView;
 import android.widget.AdapterView.OnItemSelectedListener;
 public class SpinnersDemo extends Activity {
 //strings for first spinner

 String[] strings1 = {Gold,Silver,
 Antique, Diamond, Silver,White

[android-developers] How can I add description with respect to each image in image switcher..

2012-08-25 Thread Sobia Awan
Hi,

I have a Image Switcher with some pictures , and I would like to have
a Text View  that
changes with the pictures. Can anyone tell how to add description within
each image.I'm new in android. Any help or guide please,Many thanks...
-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: More Than One Spinners

2012-08-24 Thread Sobia Awan
yes exactly...



On Fri, Aug 24, 2012 at 9:14 PM, bob b...@coolfone.comze.com wrote:

 Sounds like you want to create three different SpinnerAdapter classes.


 On Friday, August 17, 2012 4:02:54 PM UTC-5, S Awan wrote:

 Hi,
 i wanna set more than one spinner with different strings and
 different icons ..i hve done this all in one spinner correctly  but when i
 set the second spinner with different strings and icons it loads the same
 strings as first spinner even i defined different strings and icons... i
 hve uploaded the sample image for easily understand ...i am new in android
 ..any help pl, many Thnx...

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
*Sobia Awan*
*  Bs(cs)*
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] how to set two spinners with different strings and icons?

2012-08-19 Thread Sobia Awan
Hi, i want to set different strings or icons in two spinners ..i hve done
this in one spinner bt not in two spinners ...plz reply me as soon as
possible,i m waiting for ur reply,many thanx
From
S A
**

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en