[android-developers] inset a Base64.encode string into a xml

2011-06-07 Thread dilo.mt
Hi,

I need to inset a Base64.encode string within xml tags,



I need to inset the encoded sting with in those two tags.

i tried with this :

StringBuilder sb = new StringBuilder();
sb.append("");
sb.append(Base64.encode(byteArray));
sb.append("");

but it gives me an error saying that  tag not closed, this is a
part of a soap request. help me please.

-- 
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: ListView Row not firing the click event

2011-10-06 Thread dilo.mt
Hi,

There is nothing wrong with the code above. You have said when the
image button clicks, it works.
And you need to make the whole entry clickable. all the buttons by
default clickable.

I think you have image button and text or what ever inside a linear
layout or relative layout.
make sure the container of image button and text (i.e. layout)
setClickable(true) then you will be oki.

On Oct 6, 3:51 pm, NaveenShrivastva 
wrote:
> i have two view one is Expandablelist and other is listview plz
> guideline me how to handle here facing listchildclick event
>
> On Thu, Oct 6, 2011 at 8:17 PM, dinesh adwani
>
>
>
>
>
>
>
>  wrote:
> > If you have added any other view like radio button make it
> > setfocasable(false)
>
> > On Oct 6, 2011 3:46 PM, "Naveen"  wrote:
>
> >> i am using custom list , it's
> >> l1.setAdapter(new EfficientAdapter(this));
>
> >>                l1.setFocusable(true);
> >>        l1.setClickable(true);
> >>                l1.setOnItemClickListener(new OnItemClickListener() {
> >>            @Override
> >>            public void onItemClick(AdapterView adapter, View
> >> view,      int pos, long id) {
> >>        Log.i("listview", "clicked1");
>
> >>                                Toast.makeText(getApplicationContext(),
> >>                                                "Child ItemClicked " + pos
> >> ,
> >>                                                Toast.LENGTH_SHORT).show();
>
> >>            }
> >>        });
>
> >> it's not working
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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 convert the raw data from Camera.takepicture(shutter, raw,jpeg) to Bitmap?

2011-07-21 Thread dilo.mt
byte[] tempdata = ur byte array;
Bitmap bm = BitmapFactory.decodeByteArray(tempdata, 0,
tempdata.length);

On Jul 20, 10:08 pm, musfiq  wrote:
> Hi:
> I want to find the faces in an image after taking picture. I want to
> use the Facedetetor.findfaces(...,); But for that I need Bitmap
> file. How to convert byte [] to bitmap?
> /Musfiq

-- 
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: Parameters passed to a .NET webservice are always null when using ksoap2 jar

2011-07-21 Thread dilo.mt
use soap ui application to get a good idea about how the web server
handle the request and respose.

On Jul 21, 3:12 am, Shabu Thomas  wrote:
> Hi, I tried to call a .NET web service from a sample application using
> KSOAP2. I could successfully call a web service method without any
> parameter. But, even if I set a valid value to a string
> parameter, .NET service takes it as null. Let me give the code sample.
>
> private static final String SOAP_ACTION = "http://www.webservicex.net/
> GetGeoIP";
> private static final String METHOD_NAME = "GetGeoIPResult";
> private static final String NAMESPACE = "http://www.webserviceX.NET/";;
> private static final String URL = "http://www.webservicex.net/
> geoipservice.asmx";
> private Object resultRequestSOAP = null;
>
> .
>
>                     SoapObject request = new SoapObject(NAMESPACE,
> METHOD_NAME);
>
>                     String ipVal = "10.0.0.15";
>
>                     PropertyInfo p = new PropertyInfo();
>                     p.name = "IPAddress";
>                     //p.setType(PropertyInfo.STRING_CLASS);
>                     p.setValue(ipVal);
>
>                    request.addProperty(p);
>
>                    SoapSerializationEnvelope envelope = new
> SoapSerializationEnvelope(SoapEnvelope.VER11);
>                    envelope.encodingStyle = SoapEnvelope.ENC;
>                    envelope.dotNet = true;
>                    envelope.setOutputSoapObject(request);
>
>                    //envelope.implicitTypes = true;
>                   // envelope.setAddAdornments(false);
>
>                    HttpTransportSE androidHttpTransport = new
> HttpTransportSE(URL);
>                    androidHttpTransport.setXmlVersionTag(" \"1.0\" encoding=\"UTF-8\"?>");
>                    try
>                    {
>
>                             androidHttpTransport.call(SOAP_ACTION, envelope);
>                             //tv.setText("The Start");
>                        resultRequestSOAP =
> (Object)envelope.getResponse();
>                        result = resultRequestSOAP.toString();
>
>                    }
>                    catch (Exception aE)
>                    {
>                            //tv.setText(aE.toString());
>                        aE.printStackTrace ();;
>                        result = aE.toString();
>                   }
>
> I have searched a lot of blogs and none of them have give a proper
> solution better than what I have done. Would you please give me a
> better solution for this?
>
> Thanks & Regards
> Shabu Thomas

-- 
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 do you add an item in a list if a user presses yes button in an alert dialog box and don't add it if he presses no

2011-07-21 Thread dilo.mt
hope this will help you..

AlertDialog.Builder b = new AlertDialog.Builder(Main.this);
b.setItems(new String[]{"you", "may", "need", "to", "add"}, new
DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
AlertDialog.Builder bb = new AlertDialog.Builder(Main.this);
bb.setTitle("info");
bb.setMessage("Are you sure you want to add this to ur list?");
bb.setPositiveButton("Yes", new DialogInterface.OnClickListener() {

@Override
public void onClick(DialogInterface dialog, int which) {
Toast.makeText(Main.this, "Add to ur list",
Toast.LENGTH_SHORT).show();
//add to ur list
}
});

bb.setNegativeButton("No", new
DialogInterface.OnClickListener() {

@Override
public void onClick(DialogInterface dialog, int which) {
  Toast.makeText(Main.this, "no need to add to ur list",
Toast.LENGTH_SHORT).show();
  //do nothing
}
});
bb.create().show();

}
});
b.create().show();

On Jul 21, 2:31 pm, Arif Nadeem  wrote:
> Hello everyone, I am making an app in which if a user selects a
> submenu item I pop up an Alert dialog which asks his confirmation
> whether he wishes to save that item in his list and saves it if he
> presses yes and doesn't add it if he presses no.

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

2011-07-21 Thread dilo.mt
hope this will help you.

TextView tx = new TextView(this);
tx.setClickable(true);
txtextControl.setOnClickListener(new OnClickListener() {
@Override
public void onClick(final View view) {
  //add ur alert box here, dont ask me how, read the
documentation, :D im serious read it, u will find
  //how to add a alert box
}
});

thats it...


On Jul 21, 2:28 pm, TreKing  wrote:
> On Thu, Jul 21, 2011 at 2:05 AM, arun kumar  wrote:
> > i read the documents but not understanding how to code
>
> Sorry, but if you don't know how to code, you're not going to get very far.
> Learn to code in Java, then go back to the documentation and see how the
> relevant functions / classes are used. Then come back here if you have
> specific questions.
>
> Good luck.
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: Confusing XML reading.

2011-07-21 Thread dilo.mt
need more information to give you a good answer. what is the error you
getting?

On Jul 21, 6:39 am, minh  wrote:
> Hi everyone.
> I try to parser XML file using SAX parser. Can you help me.?
> Above is some line code i think it not correct. Someone can check for
> me, please:
>
> try{
>                 SAXParserFactory spf = SAXParserFactory.newInstance();
>                 SAXParser sp = spf.newSAXParser();
>                 xmlHandler myXMLHandler = new xmlHandler();
>                 try{
>                         File fxml = new File("/mnt/sdcard/myXML.xml");
>                         fxml.getName(); // test file null
>                         try{
>                                 sp.parse(fxml,myXMLHandler);
>                         }catch (Exception e) {
>                                         // TODO: handle exception
>                                 Log.e("ERROR","Can not parser file 
> xml"+e.toString());
>                                 }
>                 }catch (Exception e) {
>                                 // TODO: handle exception
>                         Log.e("ERROR","Can not new file xml from source");
>                         }
>
>                 /** Get result from MyXMLHandler ebook Object */
>                 ebook = xmlHandler.getEbook();
>
>                 /** Create handler to handle XML Tags ( extends
> DefaultHandler ) */
>
>         }catch (Exception e) {
>                         // TODO: handle exception
>                 Log.e("ERROR","Error parser file");
>                 }
>         try{
>                 String author= ebook.getAuthor();
>                 EditText txtEdit = (EditText) findViewById(R.id.editText1);
>                 txtEdit.setText(author);
>         }catch (Exception e) {
>                         // TODO: handle exception
>                 Log.e("ERROR","Ebook can not get author");
>                 }
>     }

-- 
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: quick menu implementation

2011-07-21 Thread dilo.mt
here you go..
very good post, need bit hard work,

http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/

On Jul 21, 10:50 am, "josh.bash"  wrote:
> hi everybody
> i am trying to implement quick menu design pattern. when i touch a
> button a menu should pop out giving user some options to act upon. can
> anybody tell me how to do it?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.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: what is the problem؟

2011-07-21 Thread dilo.mt
this is not the way to get the answer, post the error or exception you
got.

do you how to view to log file?
if not, got to window->open perspective->other and select DDMS on the
pop up window
from this you can view log file of the emulator(it is on the tabs name
as LogCat).

now go back to the java tab and run the application on emulator, if
you got the exception
go to the DDMS view and post it here, then we will help you.

good luck!!

On Jul 21, 7:58 pm, Asmaa Kamal  wrote:
> peace be upon you
>
> iam beginner in android developing
>
> when writing an application that deal with sqlite i found thid problem
>
> http://www.4shared.com/photo/ffMPYWic/android_events_problem.html
>
> the source code:
>
> http://www.4shared.com/document/D6ZXC0Q8/default.htmlhttp://www.4shared.com/file/S81x9u0e/proguard.htmlhttp://www.4shared.com/file/HgRUockz/classpath.htmlhttp://www.4shared.com/file/86U2mdSO/project.htmlhttp://www.4shared.com/document/6PaOOBOV/AndroidManifest.html
>
> what is the problem?
> any one can help 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