[android-developers] Fwd: FW: The Husband Store

2009-01-29 Thread shailesh prakash
-- Forwarded message --
From: sagar.b97 sagar@gmail.com
Date: Thu, Jan 29, 2009 at 10:27 PM
Subject: Fwd: FW: The Husband Store
To: naem.muja...@gmail.com, ***Sujit*** Wieder Verjüngte
sujitt...@gmail.com, -॥अमृत॥- Amrut {I foUGhT oUt dSp}
imac_pune...@yahoo.co.in, -॥अमृत॥- Amrut {tHe FiGhT cOmeS tO aN
eNd.} amrutchaug...@gmail.com, 110 km 
amolman...@gmail.com, abhijeet chaudhari
abhijeetthecoold...@gmail.com, abhijeet kedari
abhijeet.ked...@yahoo.com, abhijeet kedari
abhijeetked...@gmail.com, abhishek tomar
montyto...@indiatimes.com, abhishek {c u after examz}
chakrabarty_abhis...@yahoo.com, abhisheksingh tomar
abhi.to...@rediffmail.com, abhisheksingh tomar
abhisheksingh_to...@infosys.com, Aditi Agnihotri waiting 4
project... aditi.c...@gmail.com, Amol aka Sunny.. .
sunnya...@yahoo.co.in, Amol manave amolman...@yahoo.com, Anchal
Kohli anchal.kohli.1...@gmail.com, Arpit'COMP'. Everyone
remember 'IT' arpitbeedkar7...@gmail.com, Arun (enjoying in
Aurangabad) arungajank...@gmail.com, Arun Gajankush
arungajank...@yahoo.com, ashwini kulkarni
ashwinie.kulka...@gmail.com, bhavesh
bhavesh_solank...@yahoo.co.in, Bhavesh solanki
bhavesh_...@yahoo.co.in, bhavna bhavna_k...@infosys.com, Bhavna
kaku bhavna.k...@gmail.com, Bhavna- Accepted the Unexpected
bhavn...@yahoo.com, Busy in exam technical,Nirali,Techmax
bhushan_...@yahoo.com, Chak De..Avinash Patil
avinash_...@yahoo.co.in, chanchal arbale chanchalarb...@gmail.com,
DEEPAK not placed yet deepakworld...@yahoo.com, DESTINY s d
strength f my desireS sunny_jagw...@rediffmail.com, devendra
devendra9...@gmail.com, devendra_kulkarni
devendra_kulka...@infosys.com, dilpreet singh
dilpreet.aror...@gmail.com, dinesh kalaskar dinesh_7...@yahoo.com,
Dipak mane mane.di...@gmail.com, dipesh rane
dipesh.r...@gmail.com, gaurav deshpande
deshpande.gaurav.a...@gmail.com, george george...@yahoo.co.in,
george varghese v3.geo...@gmail.com, harsha halyal
harschal...@gmail.com, Hrishikesh 
hskulkarn...@gmail.com, i mean u really an ASS a HOLE...
abhishek.chakrabar...@gmail.com, Jalees Ahmad jalee...@gmail.com,
jalees ahmed jali...@yahoo.co.in, jiteen
shinde..(krawlerer.) jitee...@gmail.com, Ketan Dhamdhere
ketan_lovefore...@yahoo.com, kishor(game begins now) khandagale
kishor...@gmail.com, krunal krunal...@gmail.com, krunal chaudhari
krunal_...@yahoo.co.in, manish Mandlik mailtoha...@gmail.com,
Manoj choudhari choudhari.manoj.pral...@gmail.com, Manoj choudhari
manojc...@yahoo.co.in, Mathew Varghese vmathew...@gmail.com,
mathew verghese vmathew...@gmail.com, mayank pratik
mayank.pra...@gmail.com, Mayank Raheja mayank.rah...@yahoo.co.in,
Mohit kewalramani kewalramanimo...@gmail.com, MOOD i rocks! Rahul
Pardeshi rrr_parde...@yahoo.co.in, Mr. Abhijeet Vitthal Kedari
abhijeet.ked...@newgen.co.in, Nachiket Enjoying Vacations..!!!
nachiket_karmal...@yahoo.co.in, Neel Pansare
neel.pans...@gmail.com, neetesh tiwari neetesh.tiw...@yahoo.co.in,
neha wadodkar neha.wadod...@gmail.com, nikhil d pawar
nikhildpa...@gmail.com, Nikita Kataria kataria_nik...@yahoo.co.in,
NIKS jane kya hoga rama re. niks.up...@gmail.com, NILESH
khaire khaire_nil...@rediffmail.com, NILESH MORE always
strong.. pune.nil...@gmail.com, nisha khatri
nisha_khat...@yahoo.com, OMKAR PATHAK - Life Sucks!!!
omkarjpat...@gmail.com, Omkar R Badave
omkar.bad...@bitwiseglobal.com, Prasad Yelgodkar
bck2...@gmail.com, pratod pratod.jaw...@gmail.com, Pravin Bankar
pravin_bankar1...@indiatimes.com, pria aphale
priya.dyp...@gmail.com, priya joshi priya.josh...@yahoo.com,
Priyanka Ghewari piya_0...@rediffmail.com, Priyanka Ghewari
priyankaghew...@gmail.com, P(R)Ë(R)ÅNÅ JÅWÅLË
prerana.jaw...@gmail.com, rachita bagaria
rachita_baga...@infosys.com, rachita bagaria
rachita_baga...@yahoo.co.in, Rahul Tekade
rahul_mtek...@yahoo.co.in, RAHUL {in hyderabad} PARDESHI
rahul10parde...@gmail.com, REENA GEORGE reena_georg...@yahoo.com,
riyanka gupta riyanka.gupt...@gmail.com, Rohan Dighe
rsdi...@fedoraproject.org, Rohan Dighe ..it's LIFE!
rohandi...@hotmail.com, Rohan Dighe ..life's full of johl's
linuxdominat...@gmail.com, Rohit Borlikar rohitborli...@gmail.com,
rohit gaikwad rohitgaikwad1...@gmail.com, Rohit Kulshreshtha
rohit.in.p...@gmail.com, s...@g@r Always ONLINE
cesa_sa...@yahoo.co.in, sagar hirve sagar.hi...@gmail.com, SAGAR
HIRVE  Looking for result sagarhi...@yahoo.com, sagar patil
sagar@gmail.com, SAGAR SEN sagar.sin...@gmail.com, saket bhole
saketbh...@gmail.com, Saket Verma saket1...@yahoo.co.in, Sandy..
ManU - d Unstoppable sandysukh...@gmail.com, Sandy...searchin my
own identity... sandy_sukh...@yahoo.com, santosh choudhary
smchoudhary...@gmail.com, seema gupta seemapiece...@yahoo.com,
Shailesh shail...@gmail.com, shekhar katariya
shekharkatar...@yahoo.co.in, Shekhar Satish Katariya
shekhar_katar...@infosys.com, shreyas gite shreyas.g...@gmail.com,
shripad deshpande shripaddeshpand...@yahoo.co.in, Shweta Deshpande

[android-developers] Re: Relative layout

2008-10-24 Thread shailesh prakash

Hi april
 follow this link:
http://www.anddev.org/android_with_pure_java_code_is_possible-t3106.html

On Fri, Oct 24, 2008 at 10:54 AM, yasmin afrose [EMAIL PROTECTED] wrote:
 Hi,

 You will use the following link.

 www.droiddraw.org . It is a GUI editor for cell phone programming. You'll
 design the UI  click Generate  button it'll generate corresponding xml
 file for you.

 Enjoy it.

 by,
 yasmin

 On Fri, Oct 24, 2008 at 10:35 AM, april [EMAIL PROTECTED] wrote:

 I need to create a relative layout using java instead of XML. In the
 layout, there are 3 buttons, one on the left, the other 2 will be
 right.

 Does some one have sample code on that?

 Thanks!




 --
 Everything is Possible For U only

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Require Source Code on Windows

2008-10-24 Thread shailesh prakash

Yes you can at http://source.android.com/download .
but source code is of size 2gb and not fully supported for windows


On Fri, Oct 24, 2008 at 12:38 PM, Amit [EMAIL PROTECTED] wrote:

 Hello friends,

 Is there any way i can get the source code on windows.
 Also, can i download just some particular sections of the code, I want
 to see the source code of tools like DDMS and traceview.

 Any help appreciated.

 Thanks  Regards
 Amit

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Error coming while creating a login page

2008-10-21 Thread shailesh prakash

Hi dilu,
  As I can say with above details, you are using SDK 1.0 and the code
you are writing is of style m5. If so see documentation and changes
for 1.0
Regards
Shailesh



On Tue, Oct 21, 2008 at 6:30 PM, dilu [EMAIL PROTECTED] wrote:

 Hi'
 I am trying to create a login page with user name and password.
 In source file i have created two java file one is homescreen.java
 file and another one is loginscreen.java file.
 In homescreen.java file error is coming like this  The method
 onActivityResult(int, int, Intent) in the type Activity is not
 applicable for the arguments (int, int, String, Bundle).
 part of the code is :-
  protected void onActivityResult(int requestCode, int resultCode,
 String data, Bundle extras) {
super.onActivityResult(requestCode, resultCode, data, extras);

if (requestCode == ACTIVITY_LOGIN) {
// If the request was cancelled, then we are cancelled as
 well.
if (resultCode == RESULT_CANCELED) {
finish();

 and in the login_screen.xml file I am getting error like this
 No resource identifier found for attribute 'layout_toRight' in package
 'android'
 No resource identifier found for attribute 'layout_toLeft' in package
 'android.

 please help me out.
 thanks.
 dilu
 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Theme example

2008-10-21 Thread shailesh prakash

Hey Christine,

 Did u try 
http://code.google.com/android/reference/available-resources.html#stylesandthemes.
you can set your theme in a xml file res/values/, but you can play
inside an activity.

@Override
public void setTheme(int resid) {
// local animation
super.setTheme(resid);
}

On Tue, Oct 21, 2008 at 5:23 PM, Christine [EMAIL PROTECTED] wrote:


 Where do I find example themes, or how can I make minor changes to,
 like, the Dialog theme? I've searched but couldn't find


 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Inflate Exception... how to diagnose?

2008-10-20 Thread shailesh prakash

I don't know why you all complexing the problem. I t is just a missing
classname in provided namespace.
 As I can see there is no TextField in res/android namespace better
you try TextView

On Mon, Oct 20, 2008 at 11:55 AM, for android [EMAIL PROTECTED] wrote:
 This post might help you also.

 http://groups.google.com/group/android-developers/browse_thread/thread/f169c76bc7faccaf/cab78c24a36d3101?lnk=raotpli=1

 Also if you have done a sample for inflation.Could share a code snippet.I
 also need it.

 Thanks

 On Mon, Oct 20, 2008 at 8:07 AM, Romain Guy [EMAIL PROTECTED] wrote:

 In the Logcat view of Eclipse (or from a shell, type adb logcat), you
 will see the full stack trace with the explanation of what's wrong.

 On Sun, Oct 19, 2008 at 7:34 PM, DulcetTone [EMAIL PROTECTED] wrote:
 
  I have an XML file that causes an inflate exception with no
  discernible detail to help me diagnose what went wrong
 
  What is the best way to get Android to offer details on what was
  objectionable?
 
  tone
 
  FYI, here was the 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:padding=10px
 
 Spinner android:id=@+id/skin_name
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:drawSelectorOnTop=false/
 
 TextField android:id=@+id/ospeed_label
 android:text=Output Speed
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_below=@id/skin_name/
 
 SeekBar android:id=@+id/ospeed
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_toRightOf=@id/ospeed_label/
 
 
 CheckBox android:id=@+id/var_output
 android:text=Do incoming VAR
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_below=@id/ospeed/
 
 
 TextField android:id=@+id/ispeed_label
 android:text=Input Speed
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_below=@id/var_output/
 
 SeekBar android:id=@+id/ispeed
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_toRightOf=@id/ispeed_label/
 
 
 Button android:id=@+id/ok
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_below=@id/ispeed
 android:layout_alignParentRight=true
 android:layout_marginLeft=10px
 android:text=OK /
 
 Button android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_toLeftOf=@id/ok
 android:layout_alignTop=@id/ok
 android:text=Cancel /
  /RelativeLayout
 
 
  
 



 --
 Romain Guy
 www.curious-creature.org




 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Inflate Exception... how to diagnose?

2008-10-20 Thread shailesh prakash

I don't know why you all complexing the problem. I t is just a missing
classname in provided namespace.
 As I can see there is no TextField in res/android namespace better
you try TextView.


On Mon, Oct 20, 2008 at 8:04 AM, DulcetTone [EMAIL PROTECTED] wrote:

 I have an XML file that causes an inflate exception with no
 discernible detail to help me diagnose what went wrong

 What is the best way to get Android to offer details on what was
 objectionable?

 tone

 FYI, here was the 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:padding=10px

Spinner android:id=@+id/skin_name
android:layout_width=fill_parent
android:layout_height=wrap_content
android:drawSelectorOnTop=false/

TextField android:id=@+id/ospeed_label
android:text=Output Speed
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@id/skin_name/

SeekBar android:id=@+id/ospeed
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_toRightOf=@id/ospeed_label/


CheckBox android:id=@+id/var_output
android:text=Do incoming VAR
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@id/ospeed/


TextField android:id=@+id/ispeed_label
android:text=Input Speed
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@id/var_output/

SeekBar android:id=@+id/ispeed
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_toRightOf=@id/ispeed_label/


Button android:id=@+id/ok
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@id/ispeed
android:layout_alignParentRight=true
android:layout_marginLeft=10px
android:text=OK /

Button android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_toLeftOf=@id/ok
android:layout_alignTop=@id/ok
android:text=Cancel /
 /RelativeLayout


 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Inflate Exception... how to diagnose?

2008-10-20 Thread shailesh prakash

Hey hackbod,

 You should not use sword if needle is required.

On Mon, Oct 20, 2008 at 9:54 PM, hackbod [EMAIL PROTECTED] wrote:

 Because it is far better to tell someone how to diagnose their own
 problem, than to just tell them how to fix this problem, so they know
 how to deal with any such problems in the future.

 On Oct 19, 11:38 pm, shailesh prakash [EMAIL PROTECTED] wrote:
 I don't know why you all complexing the problem. I t is just a missing
 classname in provided namespace.
  As I can see there is no TextField in res/android namespace better
 you try TextView

 On Mon, Oct 20, 2008 at 11:55 AM, for android [EMAIL PROTECTED] wrote:
  This post might help you also.

 http://groups.google.com/group/android-developers/browse_thread/threa...

  Also if you have done a sample for inflation.Could share a code snippet.I
  also need it.

  Thanks

  On Mon, Oct 20, 2008 at 8:07 AM, Romain Guy [EMAIL PROTECTED] wrote:

  In the Logcat view of Eclipse (or from a shell, type adb logcat), you
  will see the full stack trace with the explanation of what's wrong.

  On Sun, Oct 19, 2008 at 7:34 PM, DulcetTone [EMAIL PROTECTED] wrote:

   I have an XML file that causes an inflate exception with no
   discernible detail to help me diagnose what went wrong

   What is the best way to get Android to offer details on what was
   objectionable?

   tone

   FYI, here was the 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:padding=10px

  Spinner android:id=@+id/skin_name
  android:layout_width=fill_parent
  android:layout_height=wrap_content
  android:drawSelectorOnTop=false/

  TextField android:id=@+id/ospeed_label
  android:text=Output Speed
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:layout_below=@id/skin_name/

  SeekBar android:id=@+id/ospeed
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:layout_toRightOf=@id/ospeed_label/

  CheckBox android:id=@+id/var_output
  android:text=Do incoming VAR
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:layout_below=@id/ospeed/

  TextField android:id=@+id/ispeed_label
  android:text=Input Speed
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:layout_below=@id/var_output/

  SeekBar android:id=@+id/ispeed
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:layout_toRightOf=@id/ispeed_label/

  Button android:id=@+id/ok
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:layout_below=@id/ispeed
  android:layout_alignParentRight=true
  android:layout_marginLeft=10px
  android:text=OK /

  Button android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:layout_toLeftOf=@id/ok
  android:layout_alignTop=@id/ok
  android:text=Cancel /
   /RelativeLayout

  --
  Romain Guy
 www.curious-creature.org
 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: possible to lock device?

2008-10-17 Thread shailesh prakash

Sure it does, but if your phone is stolen then it should wake up in
password lock mode and ack should send to alternative number or mail
with gps location and cell ID(network operator's cell).


On Fri, Oct 17, 2008 at 11:34 AM, hackbod [EMAIL PROTECTED] wrote:

 I believe PowerManager.goToSleep() should lock the device as part of
 putting it to sleep:

 http://code.google.com/android/reference/android/os/PowerManager.html#goToSleep(long)

 On Oct 16, 9:51 pm, Mast3rpyr0 [EMAIL PROTECTED] wrote:
 hmm i wish there was a simple lockDevice() method :P
 this is the last thing i need before i want to release my app.
 it goes out for a closed beta on the 22nd.

 On Oct 17, 12:33 am, shailesh prakash [EMAIL PROTECTED] wrote:

  Hey Mast3rpyr0,

  I did try it earlier but drop in between. I had plans to do it like this,
  Send SMS, broadcast receiver will listen it and open msg read
  content match with data in SQLite database and change phone state
  accordingly.
  I implemented till the last and most tedious task, changing phone state.
  Hope it will help you in some extent

  On Fri, Oct 17, 2008 at 9:56 AM, Mast3rpyr0 [EMAIL PROTECTED] wrote:

   Im working on a security app that allows a user to track their phone
   on a web site if they lose the phone or it is stolen. I already have
   the part working where i could do this if a user selected lock on the
   site but once the device gets this data, how can i have the device go
   into the locked state like if the end call button was pressed and ask
   for the patern if the user set one up?
 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: RelativeLayout Help

2008-10-17 Thread shailesh prakash

Thanks Mark  for your kind suggestion. I never know these detail about
rendering on Android but I use scroll view for a long registration
page and it works fine with large text view.
Also I supply constant text in edit text as it make single pass and I
suppress forward reference for text view  coz I use them as a constant
label, they didn't require further.
Probably you saw the empty xml, sorry for that but it is dummy only, I
use a full set of parameter before deploy(see the attached image) .

Thanks once again,
Shailesh


On Fri, Oct 17, 2008 at 5:42 PM, Mark Murphy [EMAIL PROTECTED] wrote:

 Al_R wrote:
 Hi all, I'm trying to position elements using the RelativeLayout
 system, but the 1st element is giving me headache. I can't find a way
 to make it align with another element next to it and also not push the
 EditText element from out of the screen. The EditText box is at the
 bottom.

 A quick mockup of the layout I want is here: 
 http://i36.tinypic.com/jp9bwg.png
 and the XML code I have so far is here: http://pastebin.com/m277be4ea

 I appreciate any help.

 With RelativeLayout, start from the edges and work your way towards the
 center, and be very very careful with your use of fill_parent.

 So, rather than saying R.id.et is below R.id.sv, say it is
 alignParentBottom=true, and define it first.

 Then, define R.id.sv2 as you have it, defined second.

 Finally, define R.id.tv (dumping the unnecessary ScrollView) as above
 R.id.et, to the left of R.id.sv2, aligned with the parent top and right,
 and maybe with the fill_parents.

 Android makes a single pass through a layout to determine position and
 size. This gets tricky with RelativeLayout, particularly since you can't
 forward-reference as-yet-undefined widgets. However, unlike
 LinearLayout, you don't have to go top-to-bottom with RelativeLayout,
 AFAIK, so define those widgets that are solely dependent upon the parent
 bounds first, then those that depend on the first set of widgets, etc.

 My warning about fill_parent is simply that, when encountered, Android
 may slurp up all available space upon the desired axis, leaving no room
 for any widgets to be defined later.

 Also, use ScrollView only on widgets without intrinsic scrolling.
 TextView should scroll on its own.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com

 Android Training on the Ranch! -- Mar 16-20, 2009
 http://www.bignerdranch.com/schedule.shtml

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapView and Zoom Control in 0.9 SDK

2008-10-17 Thread shailesh prakash

Guys let me end the discussion with this,

//---
final ZoomControls zoomControls = (ZoomControls)
findViewById(R.id.ZoomControls);


zoomControls.setOnZoomInClickListener(new 
ZoomControls.OnClickListener() {
public void onClick(View v) {

zoomControls.setIsZoomInEnabled(tMapCtrl.zoomIn());

zoomControls.setIsZoomOutEnabled(true);
}
});

zoomControls.setOnZoomOutClickListener(new 
ZoomControls.OnClickListener() {
public void onClick(View v) {

zoomControls.setIsZoomOutEnabled(tMapCtrl.zoomOut());

zoomControls.setIsZoomInEnabled(true);
}
});

On Fri, Oct 17, 2008 at 8:26 PM, Mark Murphy [EMAIL PROTECTED] wrote:

 Matthias wrote:
 Just to get this straight, one has to *subclass* MapView in order to
 enable simple things such as zooming?

 No.

 Step #1: Put a spot for the zoom controls in your layout (e.g., a
 LinearLayout named R.id.zoom)

 Step #2: Tell Android where the zoom controls go:

 ViewGroup zoom=(ViewGroup)findViewById(R.id.zoom);

 zoom.addView(map.getZoomControls());

 Step #3: There is no Step #3.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.3 Published!

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: help needed on webservice (ksoap2)

2008-10-17 Thread shailesh prakash

It works fine on mine service using java, hope php has similar
implementation. See this may be error due to some semantic mistake.
also check for wsdl with the browser. Those are some mistake I have
done earlier. But I go with the original j2me jar. On that implement
extra classes of ksoap2-android-full-2.1.2(two class in transport
package), add commons-httpclient-3.1.jar.

Thread t = new Thread()
{
private static final String SOAP_ACTION 
= add;
private static final String METHOD_NAME 
= add;
private static final String NAMESPACE = 
http://wtp.mycomp.com;;
private static final String URL =
http://192.168.1.101:8080/Axis2ServiceServer/services/CalculatorService;;
Integer a = null;
Integer b = null;

@Override
public void run()
{
String stA = ((EditText)
findViewById(R.id.EditText01)).getText().toString();
String stB = ((EditText)
findViewById(R.id.EditText02)).getText().toString();
SoapSerializationEnvelope 
envelope = null;
try
{
a = 
Integer.valueOf(stA);
b = 
Integer.valueOf(stB);
SoapObject request = 
new SoapObject(NAMESPACE,METHOD_NAME);

request.addProperty(a, a);

request.addProperty(b, b);
envelope = new 
SoapSerializationEnvelope(SoapEnvelope.VER11);

envelope.setOutputSoapObject(request);
AndroidHttpTransport 
androidHttpTransport = new
AndroidHttpTransport(URL);

androidHttpTransport.call(SOAP_ACTION, envelope);
Object result = 
envelope.getResponse();
KSoapClient.res = 
result.toString();
}
catch (NumberFormatException 
nfe)
{
KSoapClient.res = Only 
Integer numbers ;
Log.e(Input Error: , 
nfe.getMessage());
}
catch (SoapFault sf)
{
Log.e(Service Response 
Error, + sf.faultcode+:,
sf.faultstring);
}
catch (IOException ioe)
{
Log.e(Service Response 
Error: , ioe.getMessage());
}
catch (XmlPullParserException 
xppe)
{
Log.e(Service Response 
Error: , xppe.getMessage());
}
}
};
t.start();
On Fri, Oct 17, 2008 at 8:57 PM, CJ [EMAIL PROTECTED] wrote:

 Hi, guys
 finally i gave up on trying it by myself. i am dying for help. plz
 thanks
 CJ

 my situation is pretty simple. i have a webservice set up using php
 under apache.

 i have ksoap2-android-full-2.1.2.jar imported in eclipse.

 on android client,
 i have  uses-permission android:name=android.permission.INTERNET /
  in the manifest file
 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.my.application.stupid.android
  android:versionCode=1
  android:versionName=1.0.0
uses-permission android:name=android.permission.INTERNET /
application android:icon=@drawable/icon android:label=@string/
 app_name
 ..

 in the code, i have
 String SOAP_ACTION = helloWorld;
String METHOD_NAME = sayhi;

[android-developers] Re: call a soap web service from an android application

2008-10-16 Thread shailesh prakash

Hi christian110011,

for kSOAP, you have to do something like this :
// you have to download ksoap for j2me and extend it's
org.ksoap2.transport.Transport  and implement ServiceConnection, coz
it is built
// for j2me not Android, you can eaisly find these two on other android group

Thread t = new Thread()
{
private static final String SOAP_ACTION 
= addition;
private static final String METHOD_NAME 
= addition;
private static final String NAMESPACE = 
http://ws.apache.org/axis2;;

// This is for service
deployed on Tomcat, for JBOSS Android is not working on my emulator

private static final String URL =
http://yourIP:8080/Axis2ServiceServer/services/CalcService;;
Integer a = null;
Integer b = null;

@Override
public void run()
{
String stA = ((EditText)
findViewById(R.id.EditText01)).getText().toString();
String stB = ((EditText)
findViewById(R.id.EditText02)).getText().toString();
SoapSerializationEnvelope 
envelope = null;
try
{
a = 
Integer.valueOf(stA);
b = 
Integer.valueOf(stB);
SoapObject request = 
new SoapObject(NAMESPACE,METHOD_NAME);

request.addProperty(a, a);

request.addProperty(b, b);
envelope = new 
SoapSerializationEnvelope(SoapEnvelope.VER11);

envelope.setOutputSoapObject(request);
AndroidHttpTransport 
androidHttpTransport = new
AndroidHttpTransport(URL);

androidHttpTransport.call(SOAP_ACTION, envelope);
Object result = 
envelope.getResponse();
KSoapClient.res = 
result.toString();
}
catch (NumberFormatException 
nfe)
{
KSoapClient.res = Only 
Integer numbers ;
Log.e(Input Error: , 
nfe.getMessage());
}
catch (SoapFault sf)
{
Log.e(Service Response 
Error, + sf.faultcode+:,
sf.faultstring);
}
catch (IOException ioe)
{
Log.e(Service Response 
Error: , ioe.getMessage());
}
catch (XmlPullParserException 
xppe)
{
Log.e(Service Response 
Error: , xppe.getMessage());
}
}
};
t.start();

And if you like to create your own SOAP Engine(Custom Parser will do),
you may do,


public String serviceResponse(String a , String b)
{
String s=null;
Integer ai = null;
Integer bi = null;
Document doc;
try
{
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
DocumentBuilder parser = factory.newDocumentBuilder();

ai = Integer.valueOf(a);
bi = Integer.valueOf(b);
doc = parser.parse(new
URL(http://192.168.1.101:8089/axis/Calc.jws?method=adda=+a+b=+b).openConnection().getInputStream());
if(null!=doc.getElementsByTagName(soapenv:Envelope))

[android-developers] Re: possible to lock device?

2008-10-16 Thread shailesh prakash

Best of luck for your beta

On Fri, Oct 17, 2008 at 10:21 AM, Mast3rpyr0 [EMAIL PROTECTED] wrote:

 hmm i wish there was a simple lockDevice() method :P
 this is the last thing i need before i want to release my app.
 it goes out for a closed beta on the 22nd.

 On Oct 17, 12:33 am, shailesh prakash [EMAIL PROTECTED] wrote:
 Hey Mast3rpyr0,

 I did try it earlier but drop in between. I had plans to do it like this,
 Send SMS, broadcast receiver will listen it and open msg read
 content match with data in SQLite database and change phone state
 accordingly.
 I implemented till the last and most tedious task, changing phone state.
 Hope it will help you in some extent

 On Fri, Oct 17, 2008 at 9:56 AM, Mast3rpyr0 [EMAIL PROTECTED] wrote:

  Im working on a security app that allows a user to track their phone
  on a web site if they lose the phone or it is stolen. I already have
  the part working where i could do this if a user selected lock on the
  site but once the device gets this data, how can i have the device go
  into the locked state like if the end call button was pressed and ask
  for the patern if the user set one up?
 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: User Alarm Interaction when Sleeping

2008-10-15 Thread shailesh prakash

Try droidDraw, it is cool way to create GUI for android.
Also Elipse has nice layout building capability, you can try eclipse too

On 10/15/08, Brian [EMAIL PROTECTED] wrote:

 I'm playing with building a simple alarm, but it's very hard to see
 how to get a nice UI interaction when the phone is asleep.

  I have finally worked out an OK behaviour:

 a) Use the AlarmManager to set a time to wake up my application
 b) use a KeyguardManager.KeyguardLock to disable the lock
 c) pop up an AlertDialog with an OK your alarm has gone off
 button
 d) turn back on the Keyguard lock.

  But it's klunky in that the user can hit a pocket OK and clear an
 alarm once the KeyguardManager is off. And as soon as the user exits
 my alarm application, I turn the keyguardManager lock back on and I'm
 locked out.

  The interaction sequence on the iPhone is a bit better in that I can
 pop up a window (play alarms and so on) and the user has to log in to
 unset the alarm.

  Does anyone know how to get a better user interaction on the gphone?

  And while playing with this I can see a service logging called
 KeyguardViewMediator but there is no documention or group posts on
 this. Is this what is really acting as the keyguard?

  Are there any examples of this hanging around?

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: UI Controls

2008-10-15 Thread shailesh prakash

 you can try link: http://www.anddev.org , it is a good site to start
with Android.

On 10/15/08, JavaAndroid [EMAIL PROTECTED] wrote:

 Hi All
 Can i add UI controls like Checkbox, Radio button, Select Box, Drop
 down menus in my Android application... If yes could you suggest some
 links/tutorials that shed light in this topic.

 Thanks in Advance

 Thanks
 JavaAndroid


 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Displaying Images

2008-10-15 Thread shailesh prakash

Hi,
you may like to try this :
http://code.google.com/p/apps-for-android/source/browse/trunk/Photostream/src/com/google/android/photostream/?r=73

On 10/15/08, JavaAndroid [EMAIL PROTECTED] wrote:

 Hi All,
 Can anyone direct me to some links / tutorials that will help me to
 start experimenting on displaying images in Android . Is there any way
 to add Servlet/JSP API in Android Application. Can i refer image that
 is residing in a web server.

 Thanks in Advance

 Thanks
 JavaAndroid
 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting GPS Location in Android 1.0 SDK

2008-10-15 Thread shailesh prakash

Try
!-- why I add this I didn't remember --
uses-permission
android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS/uses-permission

and see my MapActivity code its working on 1.0,

private MyLocationOverlay mMyLocationOverlay;
@Override
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.main);
kMapView = (MapView) findViewById(R.id.main_map);
kMapCtrl = kMapView.getController();
LocationManager lm = 
(LocationManager)getSystemService(LOCATION_SERVICE);
Location loc = 
lm.getLastKnownLocation(lm.getProviders(true).get(0));
   .
 }
On Thu, Oct 16, 2008 at 10:21 AM, Gautam [EMAIL PROTECTED] wrote:

 Hi All,
 I'm trying to get the location using the
 LocationManager.getLastKnownLocation(gps) method and am getting
 null. Here is the problem in more detail:

 When I start the emulator, I get the following gps errors in LogCat:
 10-16 04:15:29.006: ERROR/GpsLocationProvider(52): Could not open GPS
 configuration file /etc/gps.conf
 10-16 04:15:29.006: ERROR/GpsLocationProvider(52):
 java.io.FileNotFoundException: /etc/gps.conf
 10-16 04:15:29.006: ERROR/GpsLocationProvider(52): at
 org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:
 227)
 10-16 04:15:29.006: ERROR/GpsLocationProvider(52): at
 java.io.FileInputStream.init(FileInputStream.java:76)
 10-16 04:15:29.006: ERROR/GpsLocationProvider(52): at
 com.android.internal.location.GpsLocationProvider.init(GpsLocationProvider.java:
 179)
 10-16 04:15:29.006: ERROR/GpsLocationProvider(52): at
 com.android.server.LocationManagerService._loadProvidersNoSync(LocationManagerService.java:
 356)
 10-16 04:15:29.006: ERROR/GpsLocationProvider(52): at
 com.android.server.LocationManagerService.loadProvidersNoSync(LocationManagerService.java:
 340)
 10-16 04:15:29.006: ERROR/GpsLocationProvider(52): at
 com.android.server.LocationManagerService.loadProviders(LocationManagerService.java:
 333)
 10-16 04:15:29.006: ERROR/GpsLocationProvider(52): at
 com.android.server.LocationManagerService.init(LocationManagerService.java:
 447)
 10-16 04:15:29.006: ERROR/GpsLocationProvider(52): at
 com.android.server.ServerThread.run(SystemServer.java:230)
 10-16 04:15:29.017: ERROR/AndroidRuntime(52): Crash logging skipped,
 no checkin service
 10-16 04:15:29.036: DEBUG/LocationManagerService(52): Found dir /data/
 location/gps
 10-16 04:15:29.036: DEBUG/LocationManagerService(52): name = gps
 10-16 04:15:29.047: DEBUG/GpsLocationProvider(52): enable
 10-16 04:15:29.089: DEBUG/GpsLocationProvider(52): GpsEventThread
 starting

 I checked using adb shell and there is no file /etc/gps.conf but
 seems that the gps provider does get enabled.

 I wrote an activity, where the main logic is:
 System.out.println(Providers found= + lmanager.getAllProviders());
 System.out.println(GPS Enabled= +
 lmanager.isProviderEnabled(LocationManager.GPS_PROVIDER));
 System.out.println(Last Known Location= +
 lmanager.getLastKnownLocation(LocationManager.GPS_PROVIDER));

 and have given the permissions for ACCESS_FINE_LOCATION and
 ACCESS_MOCK_LOCATION in my manifest.xml

 and here is the log when I run the code:
 10-16 04:22:33.316: DEBUG/LocationManagerService(52): getAllProviders
 10-16 04:22:33.327: INFO/System.out(230): Providers found=[gps]
 10-16 04:22:33.336: INFO/System.out(230): GPS Enabled=true
 10-16 04:22:33.336: INFO/System.out(230): Last Known Location=null

 So, I get gps provider and it is enabled, but the last known
 location I get is null.

 I tried investigating further in the adb shell and got this:
 # cd /data/location/gps
 # ls
 nmea
 location
 properties

 # cat location
 gps,1193789209,37.42238666,-122.096535,0,0,0

 I am not trying to set my location (the setters for which have been
 removed from Android 1.0), but just trying to retrieve it from the GPS
 provider, so here I am wondering:
 1. Why am I getting null as the location?
 2. Say, we were to solve that issue, then would Android read the
 location from the /data/location/gps/nmea or /data/location/gps/
 location file? and where are we specifying that? Is this all due to
 the missing /etc/gps.conf?

 Thanks,
 Gautam

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get Android local IP(192.168.1.18)? not 127.0.0.1..

2008-10-14 Thread shailesh prakash

Hello MRK,
I was also trying a lot with Android but not able to find a way. then
I implement  a listener using java on my desktop. You can try it for
time being  if you develop some concrete Android application please
share to community
see :
http://www.anddev.org/connect_android_browser_with_local_machine_jboss_server-t3090.html

Regards,
shaildyp

On 10/14/08, MRK [EMAIL PROTECTED] wrote:

 How to get Android local IP(192.168.1.18)? not 127.0.0.1..

 String myIP = java.net.InetAddress.getLocalHost().getHostAddress();
 return my System local IP as 192.168.1.18

 it's working in java - static method

 but... Like that i coundn't get in Android application. It return as
 127.0.0.1
 I have tried
  - InetAddress.getLocalHost();
  - ???

 How can i get the Android local IP as 192.168.1.18?

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get Android local IP(192.168.1.18)? not 127.0.0.1..

2008-10-14 Thread shailesh prakash

The code is for local machine not for the Android emulator, it will
simpley tunnel the response of 8080 to 6565 so that an Android
application can use it with user permission INTERNET.

On 10/14/08, for android [EMAIL PROTECTED] wrote:
 use -- 10.0.2.2  u can hard code it.127.0.0.1..will point to the emulator
 itself.


 On Tue, Oct 14, 2008 at 1:26 PM, MRK [EMAIL PROTECTED] wrote:
 
  How to get Android local IP(192.168.1.18)? not 127.0.0.1..
 
  String myIP =
 java.net.InetAddress.getLocalHost().getHostAddress();
  return my System local IP as 192.168.1.18
 
  it's working in java - static method
 
  but... Like that i coundn't get in Android application. It return as
  127.0.0.1
  I have tried
   - InetAddress.getLocalHost();
   - ???
 
  How can i get the Android local IP as 192.168.1.18?
 
 
 


 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---