[Q] how to put a file on url using PUT - Java for Android App Development

I new to android and same for web services. I want to learn how to use PUT request for placing file on a url. But I couldn't find any sample or tutorial for doing so.. Please help me by providing any tutorial or anything...
I know this is not the place for such questions but I have been searching for long but couldn't find any solution.

Well there are several way to get it:
1.) Using standard HttpClient
2.) Using an external library like Volley
It is up to you to choice the right way, you should consider how complex is your application.
You can search on google using Android HTTP Client: GET, POST, Download, Upload, Multipart Request
you can find a full tutorial explaining how to to use HTTP connection to invoke a WS.
Bye

Related

I can't download this application

Hi after reading about Avot in one of the forums I decided to download this application. but unfortunately I'm unable to download this application. when I type in the address I get a pop up asking me
whether i want to download this application and when I marked yes it downloads the application but it doesn't complete the download what should I do?
http://m.avotmedia.com/AvotmVppcV3.cab

Run a Java applet on HD2?

Is there anyway to get the Oanda FXTrade platform to run on the HD2? The only solution I've been able to come up with is remote desktop, but that is far from optimal. This link: http // www smartphonemag com/cms/blog/9/how-do-i-run-well-known-oandacom-stocks-applet-my-pocket-pc-incl-tons-brand-new-never-publish (had to edit out the "."'s and replace them with spaces to get around the spam filter) talks about running it on WM, but the link to the .jar file is bad (and I had tried it before on my Tilt when the link did work, but never could figure out how to get it to work).
Here is link to the Java Web Start that I normally run from my PC: https //fx1 oanda com/java/beta jnlp (again "."'s replaced with spaces).
Has anyone had any luck at finding a way to run Java programs on the HD2/other WM devices? The 800x480 screen and 1GHz CPU would be perfect for mobile trading. I would be so grateful if anybody has any suggestions.
yup man..been waitin the same... pls help..
Same here, if anyone finds a solution I will be really interested to know!!
For now, I'm using Metatrader for the same purpose...
Yes, this is needed so much. I have different websites that need java applets for my hd2. Is there a solutuion today?
I think the Oanda FXTrade platform has changed since he wrote this article.
even this page: http://www.winmobiletech.com/sekalaiset/OandaComAppletInvoke.html
that he wrote to access the oanda platform is failling due to http 404 (file not found) edit: not the page itself but the page trys to request the platform.class file for the beta.jar and it returns a http connection failed to the java console.
I have looked into this quite fully.
It seems the stuff he was referring to was all beta code and has now been removed.
I have found the current jnlp file:
http://fxtrade.oanda.com/fxgui/desktop/fxtrade.jnlp
The new codebase seems like it should be:
https://fxtrade.oanda.com/fxgui/www/fxtrade
and there are now three jar files instead of one:
https://fxtrade.oanda.com/fxgui/www/fxtrade/trading-app.1.10.17.jar
https://fxtrade.oanda.com/fxgui/www/fxtrade/trading-res.1.10.17.jar
https://fxtrade.oanda.com/fxgui/www/fxtrade/protobuf-java-2.1.0.jar
I have tried to modify what he has done in the tutorial you posted to add the new information.
Unfortunately this has been unsuccessful and I am unsure where to go from here.
maybe someone who knows a bit more about jar/jnlp architecture could take it from here?
download the applet, then go to start > tools > jblend
there should be a list of applets.

Android website developing - help with iframes

Does anyone create mobile-website? I am trying to create a download dialog inside an iframe however for some reason it doesn't work it takes me to the page inside the iframe but once I click the download link NOTHING HAPPENS anyone know why?
the download dialog work on any regular browser but not on android.
iframe example:
<iframe src="myframewithdownloadcontent.html" name="download" width="500" height="500" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
inside the "myframewithdownloadcontent.html" this is what I have:
Download
Doesn't matter if its a pdf zip or any other type of file nothing happens when I click the download link or even if I create an automated download the DIALOG NEVER OCCURS!!!
any help will be highly appreciated THANKS!
so if no one here knows, then does anyone know a good forum/place where I can as this question

Please Help me error , i Can't reset my phone

When i install NAND ANDROID my computer don't see ADB driver and now i can't restore my phone please help me
Hi, it should work -
follow my tutorial
and back to wm6.5:
http://forum.xda-developers.com/showpost.php?p=13031875&postcount=1
Install Android driver and try again.
Thank u but i can't go this link
Welcome to xda-developers.co
The xda-developers.co portal is your gateway to sites for business, travel, shopping, and more! Browse our resources or just try the search!
And note : i can't go inside my phone
excuse me I ate a (m) developers.co = developers.com.
I have changed address.....
excuse yet.
now it works. click and follow the tutorial
http://forum.xda-developers.com/showpost.php?p=13031875&postcount=1
akiller12 said:
Welcome to xda-developers.co
The xda-developers.co portal is your gateway to sites for business, travel, shopping, and more! Browse our resources or just try the search!
And note : i can't go inside my phone
Click to expand...
Click to collapse
That is not a valid link. it should be .com not .co
Please be careful when typing in the address and make sure that you go to the right one, there are a few malicious sites out there.

All Lumia Devices | Windows Phone 10 on Lumia 735 RM-1038 (SD-Card)

Hi there,
i have figure out the easiest way, to get it work on Lumia 735 RM-1038 device and other Lumia devices
WORKING METHOD, NO CONFUSION
FOCUSING ON LUMIA 735 RM-1038
i suggested to you to have a clean installation using either one of this, Windows Phone Recovery Tool or Lumia Software Recovery Tool
(Flashing/Reformat/Recovery/Whatever)
download this file Mod Edit: Link Removed as it requires registration
follow this method http://forum.xda-developers.com/windows-phone-8/general/tutorial-how-to-windows-phone-10-t3041993
from : Raghulive, (no need to download attachment files from this thread)( No need to install Metro Commander)
BUT don't get confuse till you reach step 4, "(STOP at step 4, don't do anything, just stop)"
4 ) open "Files " App go to 'SD-card/WPSystem ' rename "Apps" folder to "Appx"
Go to Appx Folder open {178ac8a1-6519-4a0b-960c-038393741e96} folder ,
"(STOP at step 4, don't do anything, just stop)"
so continue with this method
follow this method http://forum.xda-developers.com/win...thod-how-to-install-windows-10-phone-t3044746
from : T4ufik_Hidayat
From this line
3.Now open Custom_WPSystem.xap application. At startup you can see “SD Card permissions” as red color. Now click that , browse and select SDcard (just SDCard!) to apply permissions.
4.Now you can see “SD Card Permissions” as green color.
5.After changing SD Card permissions click on browse xap button.
6.Browse and select Custom_pfd.xap from SD card and click Apply XAP Button.
7.After successfully applying custom_pfd tool to preview for developers goto Preview for Developers apps. ( u can see the icon changed)
8.Now your phone is hacked and you can edit registry of your WP8.1.
9.Browse to HKLM\SYSTEM\Platform\DeviceTargettingInfo | you will see green bar as “You can edit here!”
10.Change these values of some this key.
– Change PhoneFirmwareRevision from default to ->>02040.00019.14484.24002 and click the write button.
– Change PhoneManufacturerModelName from default to ->> RM-984_1006 and click the write button.
– Change PhoneOperatorName from default to ->> 000-IN and click the write button.
11. Then, go to windows insider app and Tap “Get preview build”
if you can’t see any build available for your phone, click in ... (the 3 dots icon ) then select sign in with different account > Sign in with Microsoft Account. After that login back with same windows insider account” and then choose the build what you want, you can select “Insider Fast” or “Insider Slow” about what you want to try.
12. Download the update using WiFi!
Thank you.
"HAPPY BRICKING YOUR PHONE as WINDOWS SAID".
we don't care. as long as we get our developer preview. haha
UNFORTUNATELY : i have noticed that the background wallpaper doesn't work, maybe have to change to other model, you may try
DON'T FORGET TO THANK ME
Please don't use crappy, sketchy download sites that push borderline malware and want access to my social network accounts! XDA allows you to attach files, including ZIP archives, directly to your posts. There is no excuse for sending somebody to that atrociously bad excuse for a website. Don't do it again.
below. lol
excuse me sir, which link do you refer to?
some software may detect it, as a malware etc. do you learn the internet?
poor developer perhaps? or maybe you want to promote your site/profile?
do some researches before make any conclusion..
GoodDayToDie said:
Please don't use crappy, sketchy download sites that push borderline malware and want access to my social network accounts! XDA allows you to attach files, including ZIP archives, directly to your posts. There is no excuse for sending somebody to that atrociously bad excuse for a website. Don't do it again.
Click to expand...
Click to collapse
Your English is really hard to understand (though probably better than I am at your native language). With that said, the idea of a 60-post user suggesting that I am a "poor developer" and don't know the Internet is... kind of hilarious. I take it you're new around here?
www.4shared.com is (like nearly all of its sort) an extremely sketchy website, full of tracking links and popup advertising. It may not actually be malicious but I wouldn't trust anything downloaded from a site like that unless I had no other choice. It also wants me to sign in, preferably with a social networking site (more tracking!) before letting me download. That is, in a word, unacceptable. In fact, it violates the forum rules:
• Off-site downloads are permitted if the site is non-commercial and does not require registration.
Click to expand...
Click to collapse
EDIT: I'd post the file from that link myself, after verifying it to be safe, but I'm not going to sign into that site to do it. If you want people to follow your steps, host the file here on XDA.
Why is One tutorial posted 3-4 times with the same steps and files. I think its clearly mentioned in one of the earlier posts of how this tutorial works. Kids just trying to get some fame here. :/
GoodDayToDie said:
www.4shared.com is (like nearly all of its sort) an extremely sketchy website, full of tracking links and popup advertising. It may not actually be malicious but I wouldn't trust anything downloaded from a site like that unless I had no other choice. It also wants me to sign in, preferably with a social networking site (more tracking!) before letting me download. That is, in a word, unacceptable. In fact, it violates the forum rules:
Click to expand...
Click to collapse
^This
Links that require registration are not allowed. I will close this thread and remove your link for now. When you have an alternative link that requires NO registration, I will open the thread and you can and it to the OP.
PM when you have a new link. Thanks,
Darth
Forum Moderator

Categories

Resources