[android-developers] Changes doesn't reflect in Launcher

2010-12-28 Thread nubh bhargava
Hi,
I am trying to make some changes in the Launcher app. As much changes I make
changes doesn't affect the workspace, please let me know more information on
this as I need to know more about this app as I want to make some changes in
the main area where the apps are loaded.

Thanks
Nishant Bhargava

-- 
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] Can we Import contacts in List Preferences

2010-11-29 Thread nubh bhargava
Hi,
I am trying to import contacts in the preferences, actually I want that
particular code should access a contact which I select and that value needs
to be passed to other class or activity in future. For that I need to import
contacts in the form of array I suppose. I need to know how I can pass the
values in the list form to the preferences. Please help.
Thanks in advance for the help I always get at this forum
Nishant Bhargava

-- 
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: Can we Import contacts in List Preferences

2010-11-29 Thread nubh bhargava
I was slightly confused, as I want a particular number would be stored for
further use later in another activity. I was thinking to use preferences as
I wished not to use external storage, I thought it would be apt for this
area. Please suggest and let me correct if I am going wrong that's why I
asked the question.
@darri...@gmail.com: your tutorial is of great help, I think it will
somewhat clear the vision.
Thanks
Nishant Bhargava

-- 
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 providing a string to the JavaScript

2010-11-21 Thread nubh bhargava
Ya, that's what really makes me worry. I get the string as output when I
provide an alert and when I pass the string which I have commented in the
above code a specific function the code works fine. Just don't understand
the problem why its not showing the output when I pass the string from Java.
For a reason I thought it would be that the string is not coming but strange
thing happened when I display it as alert. The string is coming the way I
want. But its not going in the split command. Tried few cases in which I can
get the output but all in vain. Can you suggest any other way to pass the
array into JavaScript. If there please let me know the code. So I can
improve in this example.

Thanks in Advance and for the kind help and support.
Nishant Bhargava

-- 
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 providing a string to the JavaScript

2010-11-21 Thread nubh bhargava
Guys, I am able to do it. By converting the value to String which I am
fetching from Java. The value was coming in the alert which was strange
earlier.

Thanks for helping anyway.

Nishant

-- 
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 Validate the Data

2010-04-20 Thread nubh bhargava
Cool!!! Got it.

Thanks
NUBH

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

2010-04-13 Thread nubh bhargava
ya thats true but can look out for cheaper option, Thats all my intention as
I am a student [?]

Thanks
NUBH

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

To unsubscribe, reply using remove me as the subject.
343.gif

Re: [android-developers] Re: What to use prefrences or Databases

2010-04-12 Thread nubh bhargava
Hey where to write the prefrences
in the create block removing the,

public class MyOnItemSelectedListener implements
OnItemSelectedListener

because i mostly seen that while writing preferences to use and the problem
is I have four spinners over this place I need to write the same code for
four, my basic motto is to save the values and then pass it to the
ACTION_CALL as i previously explained can you please suggest.

Thanks in Advance
NUBH

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

To unsubscribe, reply using remove me as the subject.


Re: [android-developers] Re: how an activity transfers the value from one activity

2010-04-12 Thread nubh bhargava
Thanks, can you please suggest me how to write preferences code, I havent
done that and getting complications while doing so, as I am not able to
retreive the data from the other activity, please help.

Regards
NUBH

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Conversion to Dalvik format failed with error

2010-04-12 Thread nubh bhargava
Hi

I am a newbie in developing android applications. There are few problems
while development.

I’ll start with few,

[2010-03-25 14:24:22 - Dialing]Conversion to Dalvik format failed with error

I don’t know why it is generation some error of this sort read there are
some settings we need to do while setting up an android project I don’t
understand from where to go there as I am new to android environment .



[2010-03-25 14:17:39 - Dialing]java.io.IOException: Unable to upload file:
Local file doesn't exist.

[2010-03-25 14:17:39 - Dialing]Launch canceled!

[2010-03-25 14:24:22 - Dialing]

trouble processing java/lang/Object.class:

[2010-03-25 14:24:22 - Dialing]

Attempt to include a core VM class in something other than a core library.

It is likely that you have attempted to include the core library from a
desktop

virtual machine into an application, which will most assuredly not work. If

you really intend to build a core library -- which is only appropriate as

part of creating a full virtual machine binary, as opposed to compiling an

application -- then use the --core-library option to suppress this error

message. If you go ahead and use --core-library but are in fact building

an application, then please be aware that your build will still fail at some

point; you will simply be denied the pleasure of reading this helpful error

message.



This is the exact message that is coming in the eclipse, I searched on the
Google also got response that some  settings in eclipse has to be changed
like below and followed this mail



“ The problem is that GAE plugin for Eclipse is default configured with a
JRE instead

of a JDK.



To change this, do the following:



Preferences  Java  Installed JRE's  Add...

For 'JRE Type' select 'Standard VM'  Next  Directory: select your JDK
directory

(instead of JRE)

(in my case: C:\Program Files\Java\jdk1.6.0_16 ), press OK.



Now, you are back at 'Installed JRE's', select the JDK here also. ”



Still the problem is persistent can u help..



The problem is with particular programs where I am trying to call an
activity after clicking a button in the main activity.


Thanking in advance for the solution,
nubh

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

To unsubscribe, reply using remove me as the subject.


Re: [android-developers] Re: Multiple Listviews in single Activity?

2010-04-08 Thread nubh bhargava
Whosever asked it I think if this might be able because I am generating
multiple listviews in spinner just have a look if this helps. Its my blog I
am creating few things so you might find a lot of things empty on this

https://sites.google.com/site/nishantsblog/home/spinner-with-simplecursoradapter

Thanks  regards
NUBH

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

To unsubscribe, reply using remove me as the subject.


Re: [android-developers] Re: Multiple Listviews in single Activity?

2010-04-08 Thread nubh bhargava
The main thing for making the list view is your XML should contain
this

ListView android:id=@+id/listView

  android:layout_width=fill_parent

  android:layout_height=wrap_content/

and now for the code part, try this I call phonebook into my code in form of
list where on the right there is a radio button from which you select an
item and that is being displayed in the spinner.

Just check this it might help

spinner.setOnItemSelectedListener(*new* MyOnItemSelectedListener());

Cursor cur = getContentResolver().query(People.*CONTENT_URI*, *
null*, *null*, *null*, *null*);

  SimpleCursorAdapter adapter3 = *new* SimpleCursorAdapter(*
this*,

  android.R.layout.*simple_spinner_item*,

  // Use a template

  // that displays a


  // text view

  cur,

  // Give the cursor to the list adapter

  *new* String[] {People.*NAME*},

  // Map the NAME column in the

  // people database to...

  *new* *int*[] {android.R.id.*text1*});

  //The text1 view defined in

  // the XML template


adapter3.setDropDownViewResource(android.R.layout.*
simple_spinner_dropdown_item*);

  spinner.setAdapter(adapter3);



I hope it might help

you can check the complete code on the link I sent, lets be co-operative its
good for everyone



Thanks  regards

NUBH

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

To unsubscribe, reply using remove me as the subject.


Re: [android-developers] Re: Question on showing contacts with all numbers

2010-04-08 Thread nubh bhargava
I think I have posted the whole source code in earlier topic, just check
thanks
NUBH

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

To unsubscribe, reply using remove me as the subject.


Re: [android-developers] Re: Problem with the Spinner in ListView Activity

2010-04-06 Thread nubh bhargava
Thanks for your support able to do it, able to capture individual elements
in individual spinners.

NUBH

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

To unsubscribe, reply using remove me as the subject.


Re: [android-developers] Re: Need Help for Storing the Values

2010-04-06 Thread nubh bhargava
Thanks for the suggestion,
but you have any code for it to explain and I need to store the phone
numbers into this code so mailed twice.

Thanks
NUBH

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Problem with the Spinner in ListView Activity

2010-04-05 Thread nubh bhargava
I want fours spinners in my code so that any number I want to import in any
of the spinner should be properly done, will the same code be of any help.

Thanks in advance
NUBH

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

To unsubscribe, reply using remove me as the subject.


Re: [android-developers] Re: Problem with the Spinner in ListView Activity

2010-04-05 Thread nubh bhargava
Thanks for suggesting Activity class again, the code worked. But let me
check it with spinners. I heard 'Myths' regarding the use of multiple
spinners, but the code or the list I need to invoke in them is much similar
so need suggestions.

Thanks  Regards
NUBH

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

To unsubscribe, reply using remove me as the subject.


Re: [android-developers] Re: Problem with the Spinner in ListView Activity

2010-04-05 Thread nubh bhargava
There are few problems that are coming right now, the emulator shows these
messages dont know for which reasons


[2010-04-06 11:10:00 - HelloSpinner] ActivityManager: [1] Killed am start -D
-n c...

[2010-04-06 11:10:21 - HelloSpinner] Attempting to connect debugger to
'com.example.HelloSpinner' on port 8635

[2010-04-06 11:10:39 - Emulator] emulator: emulator window was out of view
and was recentred

The code is,

*public* *class* HelloSpinner *extends* Activity

{

// Here we initiate the spinners and provide a result

*public* *void* onCreate(Bundle savedInstanceState)

{

*super*.onCreate(savedInstanceState);

setContentView(R.layout.*main*);

// We define what we want to show here

String[] *PROJECTION* = *new* String[]

{

People.*_ID*, People.*NAME
*

};

Spinner spinner = (Spinner) findViewById(R.id.*spinner*);

spinner.setOnItemSelectedListener(*new* MyOnItemSelectedListener());

Cursor cur = getContentResolver().query(People.*CONTENT_URI*, *null*, *null*,
*null*, *null*);

SimpleCursorAdapter adapter2 = *new* SimpleCursorAdapter(*this*,

android.R.layout.*simple_spinner_item*,

// Use a template

// that displays a

// text view

cur,

// Give the cursor to the list adapter

*new* String[] {People.*NAME*},

// Map the NAME column in the

// people database to...

*new* *int*[] {android.R.id.*text1*});

// The text1 view defined in

// the XML template

adapter2.setDropDownViewResource(android.R.layout.*
simple_spinner_dropdown_item*);

spinner.setAdapter(adapter2);

 } // The create method ends

*public* *class* MyOnItemSelectedListener *implements*OnItemSelectedListener

{

*public* *void* onItemSelected(AdapterView? parent,

View view, *int* pos, *long* id)

{

Intent intent = *new* Intent(Intent.*ACTION_CALL*);

Cursor cursor = (Cursor) parent.getAdapter();

*long* phoneId = cursor.getLong(cursor.getColumnIndex(People.*
PRIMARY_PHONE_ID*));

intent.setData(ContentUris.*withAppendedId*(Phones.*CONTENT_URI*, phoneId));

startActivity(intent);

}

*public* *void* onNothingSelected(AdapterView? parent)

{

// Do nothing.

}

}

}

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

To unsubscribe, reply using remove me as the subject.