[android-developers] Starting ADB server failed (code -1)

2012-10-28 Thread solnichko
Hi,

I have been trying to update SDK via SDK Manager. And once it was finished 
the Log had following message:
...
...
Updated ADB to support the USB devices declared in the SDK add-ons.
Stopping ADB server succeeded.
*Starting ADB server failed (code -1)*.
Done. 3 packages installed.
Done loading packages.


This same message [2012-10-29 09:43:53 - SDK Manager] Starting ADB server 
failed (code -1). was displayed in the console window.

Does anybody know what the *Starting ADB server failed (code -1)*. means.

Thanks :)

-- 
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] A couple of questions on the Video/Audio in an Android app

2012-10-19 Thread solnichko
Hi people,

Can anyone assist on the following please.

I am trying to develop a small app and not sure what is the best way to 
handle the data.

Basically, I have an activity displaying an object's title, image and 
description (accessed via WS). I also have a link 'More', which opens an 
html page, which is meant to display more info + play an audio and a video 
(later on there will be more videos audios). 
At this stage, the video and audio do not play as the html page has 
embedded windows media player. What could I do to play the video/audio 
within the default browser, that I am accessing via a webview?

Would it be better if I didn't introduce the html page, but retrieved the 
links to files on the server, displayed the links to the files within the 
same activity and when clicked on a link stream each video from the server 
using default players?

Any suggestions?

Thanks soo much :)

-- 
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] Re: Jagged array's objects in the ListView

2012-10-14 Thread solnichko
Hi Dhruv,

This is not what I am asking. 

I am trying to convert a jagged array returned by a web service into an 
(2D)array list to be displayed in a list view(Android).
Searched online, heaps of info on how to convert an array list to an array, 
but not vice versa.

I am not sure if this is possible to use 2D array list for the listView.



-- 
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] Jagged array's objects in the ListView

2012-10-13 Thread solnichko
Hi,

I am working on an android app which has to display a list of objects. 
The application receives a jagged array of IDs and Titles from web service 
via SOAP.

What do I need to do with this array in order to display the objects(Ids 
and Titles) in a ListView.

E.g. do I need to extract/convert these into arrayList(s) before I work on 
the actual ListView code.


Thanks alot.

-- 
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] Re: Parsing this string in Android

2012-10-11 Thread solnichko
Hi 

I was just wondering if you managed to solve this issue? 

I'd appreciate your help.


On Tuesday, March 6, 2012 5:20:45 AM UTC+13, andyjohnson wrote:

 I have made a simple web service which I return a list of values, this 
 is the code: 

 [WebMethod] 
 [ScriptMethod(ResponseFormat = ResponseFormat.Json)] 
 public string HelloWorld() { 

 string[][] JaggedArray = new string[5][]; 
int i = 0; 
for (int r = 0; r  5; r++) 
{ 
JaggedArray[i] = new string[] { Title + r, Body + 
 r }; 
i = i + 1; 
} 

 JavaScriptSerializer js = new JavaScriptSerializer(); 
 string strJSON = js.Serialize(JaggedArray); 
return strJSON; 
 } 

 The string returns this: 

 [[Title0,Body0],[Title1,Body1],[Title2,Body2], 
 [Title3,Body3],[Title4,Body4]] 

 In my Android app I have used ksoap to call the service and return the 
 string, but I don't know how to turn it back in to an array. Can 
 anyone help?

-- 
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] Returning complex object/s via SOAP from .Net web services

2012-09-30 Thread solnichko
Hi everyone

Can anyone suggest what are the options for returning complex object/s via 
SOAP from .Net web services?

At the moment I am trying to parse the XML data structure and not quite 
sure how to do so. The data returned looks like this:
stringtitlePasifika Drums/titledescriptionThis is a description 
descriptionurlhttp://.../Demo.aspx/urlimageshttp://.../img1.jpg/images/string


Thanks in advance.
Lara

-- 
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] Re: Returning complex object/s via SOAP from .Net web services

2012-09-30 Thread solnichko
I mean not just a simple String or int.

The example XML string above is returned from the web services when an ID 
of this object is passed. 
At the moment I get Title, Description and a couple f URLs returned, but 
have no success parsing the XML String above and displaying the values 
simply in a textbox.

Once I get this working, I will have to implement a listview that will 
display a list of such objects(with Title, Descr, etc.)

From what I figured out I need to receive responce in an XML String or an 
array of objects. 

At the moment I am trying to work on XML String option.

My project partner writes the web services and does not have much 
experience either, he expects me to tell him what I need to receive.



-- 
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] Access Web Services via SOAP on password-protected server from an Android App

2012-09-23 Thread solnichko
Hi guys,

Does anyone know how I could make it possible to access Web Services via 
SOAP on password-protected server from an Android App.

I am in the process of developing an app that used to access those services 
and suddenly it stopped working. I've tried everything and when I finally 
thought of checking the web service functions from my PC's web browser, it 
asked me for the login details(which it didn't before).
I have spoken to the person who made those changes to the server configs, 
he advised there should be a way around it. 

Please help if you know how I could do so. This is needed for the 
development and testing, the final app will access public web services.

Thanks a lot to everyone.

-- 
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] Re: How to exract payload from NDEF message

2012-09-15 Thread solnichko


On Saturday, September 15, 2012 11:27:01 AM UTC+12, solnichko wrote:

 Hi in the Boilerplate example the NfcReaderActivity has the following 
 method:

 private void showList() {
 if(messages != null  messages.length  0) {

 // display the first message
 byte[] messagePayload = messages[0].toByteArray();


byte[] textPayload = messages[0].getRecords()[0].getPayload();
id = new String(textPayload); 


 // parse to records
 NdefMessageDecoder ndefMessageDecoder = 
 NdefContext.getNdefMessageDecoder();
 ListRecord records = 
 ndefMessageDecoder.decodeToRecords(messagePayload);

 // show in gui
 ArrayAdapter? extends Object adapter = new 
 NdefRecordAdapter(this, records);
 ListView listView = (ListView) 
 findViewById(R.id.recordListView);
 listView.setAdapter(adapter);
 } else {
 clearList();
 }
 }


 How could I extract the payload and use it to pass to different activity? 
 E.g. if I had a simple integer in the payload.

 Thanks heaps for  your help!!!




-- 
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] Re: How to exract payload from NDEF message

2012-09-15 Thread solnichko
I have added the bolded code, but getting en in front of the string:

Hi in the Boilerplate example the NfcReaderActivity has the following 
 method:

 private void showList() {
 if(messages != null  messages.length  0) {

 // display the first message
 byte[] messagePayload = messages[0].toByteArray();


  *byte[] textPayload = 
messages[0].getRecords()[0].getPayload();
  String id = new String(textPayload);
  Toast.makeText(getApplicationContext(), id, 
Toast.LENGTH_LONG).show();*
  // Output: *en1*
  // How to get rid of *en*? 


 // parse to records
 NdefMessageDecoder ndefMessageDecoder = 
 NdefContext.getNdefMessageDecoder();
 ListRecord records = 
 ndefMessageDecoder.decodeToRecords(messagePayload);

 // show in gui
 ArrayAdapter? extends Object adapter = new 
 NdefRecordAdapter(this, records);
 ListView listView = (ListView) 
 findViewById(R.id.recordListView);
 listView.setAdapter(adapter);
 } else {
 clearList();
 }
 }


 How could I extract the payload and use it to pass to different activity? 
 E.g. if I had a simple integer in the payload.

 Thanks heaps for  your help!!!




-- 
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] Re: My AVD is super slow

2012-09-15 Thread solnichko
When creating a new AVD  try this: 
http://tools.android.com/recent/emulatorsnapshots

It helped me :)

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