Re: [android-developers] Getting exception when clicking button to connect to soap and return dataset

2015-03-19 Thread Daniel Chacon
this is the line its complaining about..

get_view_buttonView.setOnClickListener(get_view_buttonView_Listener);

And here is everything within that. But like i said, this is literally a
copy of working app. Since it builds and runs, not sure how to debug /
trouble shoot deeper..

private void find_and_modify_text_view() {

get_view_buttonView = (Button) findViewById(R.id.button2);

get_view_buttonView.setOnClickListener(get_view_buttonView_Listener);

CategoryValue = (TextView) findViewById(R.id.tvCategoryValue);
OwnerValue = (TextView) findViewById(R.id.tvOwnerValue);
DescriptionValue = (TextView) findViewById(R.id.tvDescriptionValue);
ImageValue = (TextView) findViewById(R.id.tvImageValue);
QuantityValue = (TextView) findViewById(R.id.tvQuantityValue);
  }

On Thu, Mar 19, 2015 at 2:18 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 The relevant stanza from your logcat is:

 03-18 16:34:05.627: E/AndroidRuntime(9005):  at
 com.InventoryList.inventory.ViewInventoryActivity.find_and_modify_text_view(
 *ViewInventoryActivity.java:58*)

 Now you just need to debug and fix this part of your code.

 -- K


 2015-03-19 22:06 GMT+03:00 Daniel Chacon cuban...@gmail.com:

 Anyone see anything that would cause the error?
 Im trying to atleast get past this issue today, i can run my other
 project which is identical other than the SOAP_ACTION, METHOD_NAME and URL.
 I basically wanted to start this project from a working point and it
 doesnt work..

 On Wed, Mar 18, 2015 at 4:44 PM, Dan Cha cuban...@gmail.com wrote:

 So i was trying to reuse existing code that works in another app, just
 changing the namespace, WSDL, Saop action and method name, but getting an
 error

 Please let me know what im doing wrong or what needs changing or
 checking.

 Here is the error log from the button click

 03-18 16:34:05.627: E/AndroidRuntime(9005): FATAL EXCEPTION: main
 03-18 16:34:05.627: E/AndroidRuntime(9005): Process:
 com.InventoryList.inventory, PID: 9005
 03-18 16:34:05.627: E/AndroidRuntime(9005): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{com.InventoryList.inventory/com.InventoryList.inventory.ViewInventoryActivity}:
 java.lang.NullPointerException
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2540)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2599)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.access$900(ActivityThread.java:174)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.os.Handler.dispatchMessage(Handler.java:102)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.os.Looper.loop(Looper.java:146)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.main(ActivityThread.java:5748)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 java.lang.reflect.Method.invokeNative(Native Method)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 java.lang.reflect.Method.invoke(Method.java:515)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 dalvik.system.NativeStart.main(Native Method)
 03-18 16:34:05.627: E/AndroidRuntime(9005): Caused by:
 java.lang.NullPointerException
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.InventoryList.inventory.ViewInventoryActivity.find_and_modify_text_view(ViewInventoryActivity.java:58)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.InventoryList.inventory.ViewInventoryActivity.onCreate(ViewInventoryActivity.java:51)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.Activity.performCreate(Activity.java:5600)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2504)
 03-18 16:34:05.627: E/AndroidRuntime(9005): ... 11 more

 Like i said, im reusing another apps code, merely changed the above
 variables to point to the correct service calls. I know the web service
 works cause i built a windows form app to call it and works and returns
 great.
 So i know the webservice is working and returning what it should.

 Here is my code on the page that getting the error when you click the
 button.

 private Button.OnClickListener get_view_buttonView_Listener = new
 Button.OnClickListener() {
 public void onClick(View v) {
 new ItemTask().execute();
 }
 };

 protected Void doInBackground(final Void... unused){
 StrictMode.setThreadPolicy(new 

Re: [android-developers] Getting exception when clicking button to connect to soap and return dataset

2015-03-19 Thread Steve Gabrilowitz
Have you checked to make sure that the get_view_buttonView is not null?
On Mar 19, 2015 3:35 PM, Daniel Chacon cuban...@gmail.com wrote:

 this is the line its complaining about..

 get_view_buttonView.setOnClickListener(get_view_buttonView_Listener);

 And here is everything within that. But like i said, this is literally a
 copy of working app. Since it builds and runs, not sure how to debug /
 trouble shoot deeper..

 private void find_and_modify_text_view() {

 get_view_buttonView = (Button) findViewById(R.id.button2);

 get_view_buttonView.setOnClickListener(get_view_buttonView_Listener);

 CategoryValue = (TextView) findViewById(R.id.tvCategoryValue);
 OwnerValue = (TextView) findViewById(R.id.tvOwnerValue);
 DescriptionValue = (TextView)
 findViewById(R.id.tvDescriptionValue);
 ImageValue = (TextView) findViewById(R.id.tvImageValue);
 QuantityValue = (TextView) findViewById(R.id.tvQuantityValue);
   }

 On Thu, Mar 19, 2015 at 2:18 PM, Kostya Vasilyev kmans...@gmail.com
 wrote:

 The relevant stanza from your logcat is:

 03-18 16:34:05.627: E/AndroidRuntime(9005):  at
 com.InventoryList.inventory.ViewInventoryActivity.find_and_modify_text_view(
 *ViewInventoryActivity.java:58*)

 Now you just need to debug and fix this part of your code.

 -- K


 2015-03-19 22:06 GMT+03:00 Daniel Chacon cuban...@gmail.com:

 Anyone see anything that would cause the error?
 Im trying to atleast get past this issue today, i can run my other
 project which is identical other than the SOAP_ACTION, METHOD_NAME and URL.
 I basically wanted to start this project from a working point and it
 doesnt work..

 On Wed, Mar 18, 2015 at 4:44 PM, Dan Cha cuban...@gmail.com wrote:

 So i was trying to reuse existing code that works in another app, just
 changing the namespace, WSDL, Saop action and method name, but getting an
 error

 Please let me know what im doing wrong or what needs changing or
 checking.

 Here is the error log from the button click

 03-18 16:34:05.627: E/AndroidRuntime(9005): FATAL EXCEPTION: main
 03-18 16:34:05.627: E/AndroidRuntime(9005): Process:
 com.InventoryList.inventory, PID: 9005
 03-18 16:34:05.627: E/AndroidRuntime(9005): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{com.InventoryList.inventory/com.InventoryList.inventory.ViewInventoryActivity}:
 java.lang.NullPointerException
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2540)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2599)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.access$900(ActivityThread.java:174)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.os.Handler.dispatchMessage(Handler.java:102)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.os.Looper.loop(Looper.java:146)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.main(ActivityThread.java:5748)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 java.lang.reflect.Method.invokeNative(Native Method)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 java.lang.reflect.Method.invoke(Method.java:515)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 dalvik.system.NativeStart.main(Native Method)
 03-18 16:34:05.627: E/AndroidRuntime(9005): Caused by:
 java.lang.NullPointerException
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.InventoryList.inventory.ViewInventoryActivity.find_and_modify_text_view(ViewInventoryActivity.java:58)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.InventoryList.inventory.ViewInventoryActivity.onCreate(ViewInventoryActivity.java:51)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.Activity.performCreate(Activity.java:5600)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2504)
 03-18 16:34:05.627: E/AndroidRuntime(9005): ... 11 more

 Like i said, im reusing another apps code, merely changed the above
 variables to point to the correct service calls. I know the web service
 works cause i built a windows form app to call it and works and returns
 great.
 So i know the webservice is working and returning what it should.

 Here is my code on the page that getting the error when you click the
 button.

 private Button.OnClickListener get_view_buttonView_Listener = new
 Button.OnClickListener() {
 public void 

Re: [android-developers] Getting exception when clicking button to connect to soap and return dataset

2015-03-19 Thread Daniel Chacon
Well actually after comparing and looking at both projects, i found the
issue.. which i dont understand,
the line above the error line was looking for R.id.button2,
But after searching and looking around that doesnt exist, so why would it
allow me to use that as the id if it doesnt actually exist?

I changed it to the correct value R.id.btnGetItemList and now the button
takes me to the correct page. Now onto the next obstical

On Thu, Mar 19, 2015 at 2:39 PM, Steve Gabrilowitz steveg1...@gmail.com
wrote:

 Have you checked to make sure that the get_view_buttonView is not null?
 On Mar 19, 2015 3:35 PM, Daniel Chacon cuban...@gmail.com wrote:

 this is the line its complaining about..

 get_view_buttonView.setOnClickListener(get_view_buttonView_Listener);

 And here is everything within that. But like i said, this is literally a
 copy of working app. Since it builds and runs, not sure how to debug /
 trouble shoot deeper..

 private void find_and_modify_text_view() {

 get_view_buttonView = (Button) findViewById(R.id.button2);

 get_view_buttonView.setOnClickListener(get_view_buttonView_Listener);

 CategoryValue = (TextView) findViewById(R.id.tvCategoryValue);
 OwnerValue = (TextView) findViewById(R.id.tvOwnerValue);
 DescriptionValue = (TextView)
 findViewById(R.id.tvDescriptionValue);
 ImageValue = (TextView) findViewById(R.id.tvImageValue);
 QuantityValue = (TextView) findViewById(R.id.tvQuantityValue);
   }

 On Thu, Mar 19, 2015 at 2:18 PM, Kostya Vasilyev kmans...@gmail.com
 wrote:

 The relevant stanza from your logcat is:

 03-18 16:34:05.627: E/AndroidRuntime(9005):  at
 com.InventoryList.inventory.ViewInventoryActivity.find_and_modify_text_view(
 *ViewInventoryActivity.java:58*)

 Now you just need to debug and fix this part of your code.

 -- K


 2015-03-19 22:06 GMT+03:00 Daniel Chacon cuban...@gmail.com:

 Anyone see anything that would cause the error?
 Im trying to atleast get past this issue today, i can run my other
 project which is identical other than the SOAP_ACTION, METHOD_NAME and URL.
 I basically wanted to start this project from a working point and it
 doesnt work..

 On Wed, Mar 18, 2015 at 4:44 PM, Dan Cha cuban...@gmail.com wrote:

 So i was trying to reuse existing code that works in another app, just
 changing the namespace, WSDL, Saop action and method name, but getting an
 error

 Please let me know what im doing wrong or what needs changing or
 checking.

 Here is the error log from the button click

 03-18 16:34:05.627: E/AndroidRuntime(9005): FATAL EXCEPTION: main
 03-18 16:34:05.627: E/AndroidRuntime(9005): Process:
 com.InventoryList.inventory, PID: 9005
 03-18 16:34:05.627: E/AndroidRuntime(9005):
 java.lang.RuntimeException: Unable to start activity
 ComponentInfo{com.InventoryList.inventory/com.InventoryList.inventory.ViewInventoryActivity}:
 java.lang.NullPointerException
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2540)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2599)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.access$900(ActivityThread.java:174)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.os.Handler.dispatchMessage(Handler.java:102)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.os.Looper.loop(Looper.java:146)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.main(ActivityThread.java:5748)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 java.lang.reflect.Method.invokeNative(Native Method)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 java.lang.reflect.Method.invoke(Method.java:515)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 dalvik.system.NativeStart.main(Native Method)
 03-18 16:34:05.627: E/AndroidRuntime(9005): Caused by:
 java.lang.NullPointerException
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.InventoryList.inventory.ViewInventoryActivity.find_and_modify_text_view(ViewInventoryActivity.java:58)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.InventoryList.inventory.ViewInventoryActivity.onCreate(ViewInventoryActivity.java:51)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.Activity.performCreate(Activity.java:5600)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2504)
 03-18 16:34:05.627: 

[android-developers] Restart InputMethodService

2015-03-19 Thread trans
I have a InputMethodService subclass, and I have implemented custom themes 
for it, calling `setTheme()` before `super.onCreate()` in the `onCreate()` 
method (as instructed). But when the user selects a new theme via a 
PreferenceActivity, I can't just call `setTheme()` again because I get an 
error:

java.lang.IllegalStateException: Must be called before onCreate()
at 
android.inputmethodservice.InputMethodService.setTheme(InputMethodService.java:672)

So it looks like I need to restart the input method from square one. How do 
I do that from within the input method code?

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Getting exception when clicking button to connect to soap and return dataset

2015-03-19 Thread Kostya Vasilyev
The relevant stanza from your logcat is:

03-18 16:34:05.627: E/AndroidRuntime(9005):  at
com.InventoryList.inventory.ViewInventoryActivity.find_and_modify_text_view(
*ViewInventoryActivity.java:58*)

Now you just need to debug and fix this part of your code.

-- K


2015-03-19 22:06 GMT+03:00 Daniel Chacon cuban...@gmail.com:

 Anyone see anything that would cause the error?
 Im trying to atleast get past this issue today, i can run my other project
 which is identical other than the SOAP_ACTION, METHOD_NAME and URL.
 I basically wanted to start this project from a working point and it
 doesnt work..

 On Wed, Mar 18, 2015 at 4:44 PM, Dan Cha cuban...@gmail.com wrote:

 So i was trying to reuse existing code that works in another app, just
 changing the namespace, WSDL, Saop action and method name, but getting an
 error

 Please let me know what im doing wrong or what needs changing or checking.

 Here is the error log from the button click

 03-18 16:34:05.627: E/AndroidRuntime(9005): FATAL EXCEPTION: main
 03-18 16:34:05.627: E/AndroidRuntime(9005): Process:
 com.InventoryList.inventory, PID: 9005
 03-18 16:34:05.627: E/AndroidRuntime(9005): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{com.InventoryList.inventory/com.InventoryList.inventory.ViewInventoryActivity}:
 java.lang.NullPointerException
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2540)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2599)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.access$900(ActivityThread.java:174)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.os.Handler.dispatchMessage(Handler.java:102)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.os.Looper.loop(Looper.java:146)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.main(ActivityThread.java:5748)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 java.lang.reflect.Method.invokeNative(Native Method)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 java.lang.reflect.Method.invoke(Method.java:515)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 dalvik.system.NativeStart.main(Native Method)
 03-18 16:34:05.627: E/AndroidRuntime(9005): Caused by:
 java.lang.NullPointerException
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.InventoryList.inventory.ViewInventoryActivity.find_and_modify_text_view(ViewInventoryActivity.java:58)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.InventoryList.inventory.ViewInventoryActivity.onCreate(ViewInventoryActivity.java:51)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.Activity.performCreate(Activity.java:5600)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2504)
 03-18 16:34:05.627: E/AndroidRuntime(9005): ... 11 more

 Like i said, im reusing another apps code, merely changed the above
 variables to point to the correct service calls. I know the web service
 works cause i built a windows form app to call it and works and returns
 great.
 So i know the webservice is working and returning what it should.

 Here is my code on the page that getting the error when you click the
 button.

 private Button.OnClickListener get_view_buttonView_Listener = new
 Button.OnClickListener() {
 public void onClick(View v) {
 new ItemTask().execute();
 }
 };

 protected Void doInBackground(final Void... unused){
 StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()

 .detectDiskReads()
 .detectDiskWrites()
 .detectNetwork()
 .penaltyLog()
 .build());

 SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,METHOD_NAME);
 SoapSerializationEnvelope envelope = new
 SoapSerializationEnvelope(SoapEnvelope.VER11);

 envelope.dotNet = true;
 envelope.setOutputSoapObject(request);

 HttpTransportSE httpTransport = new HttpTransportSE(URL);


 try
 {
  ListHeaderProperty invHeaders = new
 LinkedListHeaderProperty();
  httpTransport.call(SOAP_ACTION, envelope,
 (ListHeaderProperty)invHeaders);
  SoapObject response = (SoapObject)envelope.bodyIn;

if(response != null)
{
SoapObject dataset = (SoapObject) response.getProperty(0);

SoapObject table = (SoapObject)
 dataset.getProperty(diffgram);
SoapObject 

Re: [android-developers] Getting exception when clicking button to connect to soap and return dataset

2015-03-19 Thread Daniel Chacon
Anyone see anything that would cause the error?
Im trying to atleast get past this issue today, i can run my other project
which is identical other than the SOAP_ACTION, METHOD_NAME and URL.
I basically wanted to start this project from a working point and it doesnt
work..

On Wed, Mar 18, 2015 at 4:44 PM, Dan Cha cuban...@gmail.com wrote:

 So i was trying to reuse existing code that works in another app, just
 changing the namespace, WSDL, Saop action and method name, but getting an
 error

 Please let me know what im doing wrong or what needs changing or checking.

 Here is the error log from the button click

 03-18 16:34:05.627: E/AndroidRuntime(9005): FATAL EXCEPTION: main
 03-18 16:34:05.627: E/AndroidRuntime(9005): Process:
 com.InventoryList.inventory, PID: 9005
 03-18 16:34:05.627: E/AndroidRuntime(9005): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{com.InventoryList.inventory/com.InventoryList.inventory.ViewInventoryActivity}:
 java.lang.NullPointerException
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2540)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2599)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.access$900(ActivityThread.java:174)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.os.Handler.dispatchMessage(Handler.java:102)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.os.Looper.loop(Looper.java:146)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.main(ActivityThread.java:5748)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 java.lang.reflect.Method.invokeNative(Native Method)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 java.lang.reflect.Method.invoke(Method.java:515)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 dalvik.system.NativeStart.main(Native Method)
 03-18 16:34:05.627: E/AndroidRuntime(9005): Caused by:
 java.lang.NullPointerException
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.InventoryList.inventory.ViewInventoryActivity.find_and_modify_text_view(ViewInventoryActivity.java:58)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 com.InventoryList.inventory.ViewInventoryActivity.onCreate(ViewInventoryActivity.java:51)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.Activity.performCreate(Activity.java:5600)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
 03-18 16:34:05.627: E/AndroidRuntime(9005): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2504)
 03-18 16:34:05.627: E/AndroidRuntime(9005): ... 11 more

 Like i said, im reusing another apps code, merely changed the above
 variables to point to the correct service calls. I know the web service
 works cause i built a windows form app to call it and works and returns
 great.
 So i know the webservice is working and returning what it should.

 Here is my code on the page that getting the error when you click the
 button.

 private Button.OnClickListener get_view_buttonView_Listener = new
 Button.OnClickListener() {
 public void onClick(View v) {
 new ItemTask().execute();
 }
 };

 protected Void doInBackground(final Void... unused){
 StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()

 .detectDiskReads()
 .detectDiskWrites()
 .detectNetwork()
 .penaltyLog()
 .build());

 SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,METHOD_NAME);
 SoapSerializationEnvelope envelope = new
 SoapSerializationEnvelope(SoapEnvelope.VER11);

 envelope.dotNet = true;
 envelope.setOutputSoapObject(request);

 HttpTransportSE httpTransport = new HttpTransportSE(URL);


 try
 {
  ListHeaderProperty invHeaders = new
 LinkedListHeaderProperty();
  httpTransport.call(SOAP_ACTION, envelope,
 (ListHeaderProperty)invHeaders);
  SoapObject response = (SoapObject)envelope.bodyIn;

if(response != null)
{
SoapObject dataset = (SoapObject) response.getProperty(0);

SoapObject table = (SoapObject)
 dataset.getProperty(diffgram);
SoapObject dar = (SoapObject) table.getProperty(NewDataSet);
Integer recCount = dar.getPropertyCount();

for (int i=0;irecCount;i++)
  {
SoapObject suvas = (SoapObject) dar.getProperty(i);
if (suvas instanceof SoapObject)
{
String r;
r =