How to add image in java web service - Java for Android App Development

My android app want to display image from sql database, database contain image url.
i know how to create web service in java and how to access web service in android ,
how to add image folder in my web service and how to access image in android app
can any one help me.

Related

html to XML parser

hello guys!
i'm going develop a application, that extract information to the pages HTML, and to do this, i think that its more simple do the parse of the html pages to the xml language an then get th spscific XML tree structure, to extrat more easilly the fields that i want.
Any One konws if exists applications for mobile to do that (the parse and the seek in the tree stucture) in open source.
And for desktop a cool open source html parser?
Thanks for the help.
Psyke

[Q] Local HTML file in browser

Hello
I need to edit some HTML files on my tablet.
I know that we can't open a local HTML file in the browser. Only with HTML Viewer, but without javascript.
Is it possible to install a local server, as a workaround ?
Thank you for your help.
I can recommend you Dolphin Browser HD. It is not freeware, but it is the only one with which I could open local html files on my other device (i think there is a demo version if you don't want to pay. well, everyone knows what to do when they don't want to pay). And I think you can install pretty much any linux disto in chroot but you need root access first.

[Q] I can download a webservice (SOAP) for my application?

I have a web application with SOAP webservices.
Example.: wsdl2code.com/SampleService.asmx?op=HelloWorld
I'm developping a application for Android, and i want know if can i download the SOAP service at xml file to specific folder on my Android application?
Example: webservices/soap/HelloWorld.xml
Thanks

How to configure android application before or during instalaltion?

How to configure android application before or during instalaltion?
Is there any standard approach how to configure android application with custom settings before or during instalaltion?
Our users will not use Android market to install our application. They will download apk file from some local site in local network.
Our android application should communicate with server side application.
Different clients(corporate clients) will use different URLs for server side applications.
We need to setup correct URL for server side application before or during installation of apk file on user's phone/tablet.
It should be done automatically without interaction with user.
User should install apk file and after installation application should work with correct server side application.
How to do it?
One approach - create different apk files for different clients and set somewhere in application resources correct URL for server side application.
I do not like it. Actually client could change location of server side. In this case we will need to create new apk files.
Second approach:
- Create apk file.
- Install/store apk file as part of web application deployed on client's server.
- During installation of web application unpack apk file and put correct URL into some resource file.
- Pack apk again.
- Sign apk file.
- Call zipalign for this file. Is this step optional or required?
- Now user can open this web application in browser, download configured apk file and install it on phone/tablet
As result we will have custom apk file with correct URL for server side application inside.
User will install such apk on phone/tablet and application will connect to correct server side without any interaction with user.
Is the second approach correct?
Is it allowed to re-pack apk files at all?
Repackaging APK is WAY too fragile IMO.
Best to find another way.
EG, app starts, and sends request to public Internet server.
Public Internet server checks originating IP address and responds with special URL.
Or,... something on phone, like IP, MAC address, phone number, country etc. is used to calculate a URL or retrieve a URL from a list.
All that said, APK is a ZIP file and I think you could put some files in that won't require a resign.
mikereidis said:
Repackaging APK is WAY too fragile IMO.
Best to find another way.
EG, app starts, and sends request to public Internet server.
Public Internet server checks originating IP address and responds with special URL.
Click to expand...
Click to collapse
We can't use public internet server.
Our users work in corporate local network. Access to internet could be disabled.

could not find class referenced from method

Hi all...
I made a java web app for restaurant recommendation. I created SOAP web services for accessing the server. Now I need to make android client for that web app and I want to use the web services I made. So... I go to my command prompt and type the following
Code:
wsimport -keep -s src <WSDL_URI>
which generates source files that I need to use in order to consume web services. I then go to my Android project, create package named "com.restaurec.services" (that's the name of the package that the source files are in), and simply copy the files there. Then I import the necessary libraries (javax.xml.bind.jar, javax.jws-3.0.1.jar, and jaxws-api-2.2.1.jar) as external jars and try to run the application.
Now, in run time log cat says: Could not find class 'com.restaurec.services.BlahBlah' referenced from method 'com.example.MainActivity.method.
and then the application crashes with NoClassDefFoundException
I also tried to put the libraries (javax.xml.bind.jar, javax.jws-3.0.1.jar, and jaxws-api-2.2.1.jar) in libs folder, but that did not work either.
I was also trying to Order and Export (by the way, I have no clue what these options do, so if anyone could explain I would appreciate it), but that did not do the magic also.
Any help is appreciated!
Thanks in advance!

Categories

Resources