yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] Mamatha:
I am trying to send an image to our asp.net webservice from android.Here is my sample code :

// Getting image from Gallery

Uri selectedImage = data.getData();
String[] filePathColumn = { MediaStore.Images.Media.DATA };

Cursor cursor = getContentResolver().query(selectedImage,
filePathColumn, null, null, null);
cursor.moveToFirst();

int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
picturePath = cursor.getString(columnIndex);

cursor.close();

/*	BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 4;*/

thumbnail = (BitmapFactory.decodeFile(picturePath));
img_photo.setImageBitmap(thumbnail);

// converting imag into base64 string

img_photo.buildDrawingCache();
Bitmap bm = img_photo.getDrawingCache();

ByteArrayOutputStream baos = new ByteArrayOutputStream();
bm.compress(Bitmap.CompressFormat.PNG, 100, baos); // bm is the bitmap

byte[] photo = baos.toByteArray();
System.out.println("this is byte array" + bytearray);

String temp_base =Base64.encodeToString(photo,Base64.NO_WRAP);

// calling webservice

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);

request.addProperty("CarID", SellCarDetailView.sellcardetails_carid);
request.addProperty("pic",temp_base);
System.out.println("this is piccontent" +temp_base);
try {

SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
soapEnvelope.encodingStyle = SoapEnvelope.ENC;
// new MarshalBase64().register(soapEnvelope);
soapEnvelope.dotNet = true;
soapEnvelope.setOutputSoapObject(request);
HttpTransportSE aht = new HttpTransportSE(URL);
//AndroidHttpTransport aht = new AndroidHttpTransport(URL);
aht.call(SOAP_ACTION, soapEnvelope);

// SoapObject response = (SoapObject)envelope.getResponse();
SoapPrimitive response = (SoapPrimitive) soapEnvelope.getResponse();
String temp3 = response.toString();

Log.v("TAG", temp3);

} catch (Exception e) {
e.printStackTrace();
}

How ever i am getting "invalid parameter" at web service end.

// Asp.net code

[ScriptMethod(UseHttpGet = false, ResponseFormat = ResponseFormat.Xml)]
[WebMethod(EnableSession = true)]
public string UploadPictureByCarIDFromAndroid(string CarID, string make, string model, string year, string UserID, string pic, string AuthenticationID, string CustomerID, string SessionID)
{

string bStatus = "Failed";
MobileBL objMobile = new MobileBL();
UsedCarsInfo objCarPicInfo = new UsedCarsInfo();

try
{
try
{
if (AuthenticationID == ConfigurationManager.AppSettings["AppleID"].ToString())
{
objCarPicInfo.Carid = Convert.ToInt32(CarID);
byte[] picContent = Convert.FromBase64String(pic);
// byte[] picContent = Base64.decode(pic);
MemoryStream ms = new MemoryStream(picContent, 0,picContent.Length); // getting "invalid length"
ms.Write(picContent, 0, picContent.Length);
Bitmap oBitmap1 = new Bitmap(ms);// getting "invalid length" error here
// System.Drawing.Image image = System.Drawing.Image.FromStream(ms, true);

}
}
catch (Exception ex)
{

}

}
catch (Exception ex)
{
}

return bStatus;
}

I am getting "invalid length" error when sending the image.Any help is highly appreciated.
[Java for Android App Development] warlock9_0:
i think a better approach is with stream rather file path

for example you can try

Get image from gallery

Uri selectedImage = data.getData();
BitmapFactory.Options options = new BitmapFactory.Options();
//your options

Bitmap img_photo = BitmapFactory.decodeStream(getContentResolver().openInputStream(selectedImage), null, options);

convert to base64

ByteArrayOutputStream stream = new ByteArrayOutputStream();
img_photo.compress(Bitmap.CompressFormat.PNG, 100, stream);
byte[] byteArray = stream.toByteArray();
String temp_base =Base64.encodeToString(byteArray,Base64.DEFAULT);

i cant see anything wrong in the web services call but shouldn't you send all the parameters the function needs?

also, try to change this

// SoapObject response = (SoapObject)envelope.getResponse();
SoapPrimitive response = (SoapPrimitive) soapEnvelope.getResponse();
String temp3 = response.toString();

to this

SoapObject response = (SoapObject)envelope.getResponse();
String temp3 = response.getProperty(0).toString();
[Java for Android App Development] Mamatha:
Thanks for giving reply, i tried your code but getting the same problem.
[Java for Android App Development] warlock9_0:
sending to web service is ok?

trying this in the web service end?

Bitmap bmpReturn = null;

byte[] byteBuffer = Convert.FromBase64String(base64String);
MemoryStream memoryStream = new MemoryStream(byteBuffer);

memoryStream.Position = 0;

bmpReturn = (Bitmap)Bitmap.FromStream(memoryStream);

memoryStream.Close();
memoryStream = null;
byteBuffer = null;
[Verizon Samsung Galaxy S III] blueice5249:
I was trying to return my Galaxy S3 to stock to return it to Asurion.

Now I can't boot into recovery. I can't boot into the phone. I can only boot into Odin. I've tried recovery and things in guides and it fails in Odin.

I try booting up the phone and get the Firmware Upgrade Encountered an issue. Please select recovery mode in Kies & try again. Except this doesn't work either!
[Verizon Samsung Galaxy S III] twistedillutions:
Did u follow the thread on top.

Make sure usb debugging is on and go into download mode. Download all the required files. Drivers odin and the ics file. Its was very simple and work fine.
[Verizon Samsung Galaxy S III] blueice5249:
Yes, it fails in Odin.
[Verizon Samsung Galaxy S III] ThePagel:
If you're returning it and don't care if aosp Roms can be loaded on again you can try the 4.3 Odin file and see if it works.
[Verizon Samsung Galaxy S III] blueice5249:
I'm retrying with new partitions this time. How long should it take though?
[Verizon Samsung Galaxy S III] ThePagel:
For full Odin no longer than 20 minutes.
[Verizon Samsung Galaxy S III] twistedillutions:
I was about to suggest wat pagel posted.. Beat me tobit
[Verizon Samsung Galaxy S III] blueice5249:
I'd like to, I can't find a file that doesn't take 6 hours to download
[Verizon Samsung Galaxy S III] twistedillutions:
Those files take a long time. Wen i downloaded the ics file took about an hr.. Its cuz of the mirror download
[Verizon Samsung Galaxy S III] blueice5249:
The 4.3 literally takes 6 hours. Don't have that kinda time lol. How long is Odin supposed to take?
[Verizon Samsung Galaxy S III] twistedillutions:
Odin is quick. It takes longer to download the stock image file
[Verizon Samsung Galaxy S III] blueice5249:
It seems like it's hung up on boot.img
[Verizon Samsung Galaxy S III] ThePagel:
Try this 4.3 download. And if odin keeps failing try the Verizon utility found on that thread. http://xdaforums.com/showthread.php?t=2586319

---------- Post added at 12:31 AM ---------- Previous post was at 12:29 AM ----------

Funny how I was the first to upload ml1 and still the fastest download.
[Verizon Samsung Galaxy S III] twistedillutions:
Those mirror type download takes a while. Last time i had to download a file tru a mirror i choosed one from Texas i believe and went well. Went i choose wat was given at first was gonna take 2hrs.
[Verizon Samsung Galaxy S III] ThePagel:
Illinois mirror 6 is fast. At least the last few times I tried it was fast.

---------- Post added at 12:51 AM ---------- Previous post was at 12:49 AM ----------

Give Verizon tool a shot it downloads straight from a Samsung or Verizon server so its nice and zippy.
[Verizon Samsung Galaxy S III] twistedillutions:
Wen i went back to stock i saved all the files on my fone and pc. So i wnt go tru the download process again. Im soo glad i didn't take the 4.3OTA
[Verizon Samsung Galaxy S III] blueice5249:
Verizon utility won't run on my computer for some reason :( Thinking I might be screwed here.
[Verizon Samsung Galaxy S III] ThePagel:
Did you install SUABnRSetup?
[Verizon Samsung Galaxy S III] blueice5249:
Yes going to restart. maybe thats the prob.
[Verizon Samsung Galaxy S III] ThePagel:
Good luck I'm going to bed. If you followed that guide step by step and fail its probably the PC your on. Just remember if you can get into download mode you can fix it (just might be a pain)!
[Verizon Samsung Galaxy S III] blueice5249:
Got it! The Verizon thingy ma bobber worked after I restarted my computer and changed USB ports! :good::highfive:
[Verizon Samsung Galaxy S III] ThePagel:
Very cool!
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] rtrofimovich:
Hey. So I just recently got bored with the stock s4 ROM and decided to go back into the rooting business. I flashed TWRP recovery and LiquidSmooth ROM. Everything is great but I realized I lost the Samsung keyboard. Now, I know it's not the greatest keyboard out there, but it did allow me to view and send the little built in emojis. I am using SwiftKey beta keyboard that supports emojis but they are the Android looking emojis, not the real ones. I've looked high and low for an original apk or zip I can flash that will install the stock keyboard but can't find anything. Can someone help me out? . Thanks!
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] daniel4653:
Can't run stock touchwiz keyboard on AOSP.
[Sony Xperia Z Ultra] ij0rgei:
What are some of your white balance settings? Seen someone post red 20 and blue 60. is that going to be the best?

Currently have Crizal Prevencia non glare coating on my glasses and it gives everything a yellow hue due to the blue violet light blocker in the coating. It's giving me a bit of trouble dialing it in. thanks in advance.
[Sony Xperia Z Ultra] Thiolo:
Mine is

Red: 0

Green: 0

Blue: 40
[Sony Xperia Z Ultra] hansip87:
I have tweaked mine again and rgb around 5,20, 30 is better. But off course different people different taste. Mine obviously prefer bluish white. But generally the blue is the weak spot and the red one is quite strong. The green is in the middle, but very sensitive to the red value (red and green as yellow). So in the end try it yourself :)
[Sony Xperia Z Ultra] dannejanne:
R: 0

G: 0

B: 24

Matches my PC screen.
[Sony Xperia Z Ultra] marcgear:
R; 10

G; 0

B; 60

But i am still tinkering with it
[Sony Xperia Z Ultra] hansip87:
Just a headsup, yesterday when i was originally setup the balance of rgb to 5,20, and 45, my girlfriend (which is a graphic designer and she usually uses a Mac in her work) said that it's bluish to her liking when she handled it, so we tinkered with it and she said that when rgb was set to 0,0,0 it is truer to a real white. So.. I don't know bout you guys but after that comment i can say that this whole white balance thing is really for personal preference only. One setting does not mean much to other's preferences.
[Sony Xperia Z Ultra] blueether:
Yep I found 0,0,0 just fine, maybe 0,0,5.

Also remember perception of white will differ with differing ambient light
[Sony Xperia Z Ultra] dannejanne:
Some prefer more red and some more blue. But for it to be "correct" it should be on the warmer side.

Sent from my Z Ultra
[Sony Xperia Z Ultra] nashcasten:
Mine is 0, 30, 255 :silly:

I like it more blue and compared it with my samsung LED TV... its nearer... im not really sure...
[Sony Xperia Z Ultra] dannejanne:
I reset mine to 0 0 0. In the end I think factory settings are the best.
[Sony Xperia Z Ultra] shaolin95:
Call me crazy but with my calibrated monitor to D65, I am using 120,0,0 that seems to match my monitor the best. This is D65 so for people used to blueish images this will seem very red. :)
[Sony Xperia Z Ultra] mingkee:
My eyes are weak on blue, so the sun light appears muddy for me.

My setting is 30:45:160
[Android Apps and Games] jacksparao:
We wanted to know weather the app is working as expected, we have tested in few device and happy with performance.. We need XDA member should confirm before posting the app in Play Store..

All the Beta Tester will get the same app paid version with updated features for free... Post your testing report here, possible with logcat or image where we can understand the clear the issue.. I will reply everyone doubt and question on time..

Find the Apk Here View attachment 2550111

Have you put your phone in silent mode and searching for it...

Then Silient Phone Finder app is what you need!!!!

This app is to find your phone when it is on silent mode and you are not aware where you had kept it. All you have to do is to download this app and set a custom message along with an alarm sound

In order to find your phone, type in the set custom message and send it to your phone number by using a different phone.Alarm will start playing in your misplaced phone thus enabling you to find the exact location of the phone.

Click THANKS button to support my work......
[Android Apps and Games] JimmyMcFallon:
Works flawlessly for my n900t Note 3!! Great job! I'll deff donate when I can!
[Android Apps and Games] jacksparao:
Thanks

Thanks you very much for quick testing report..

If you want to support my work.. please click Thanks button..
[Android Apps and Games] vandy87:
Working Fine in Nexus

Very fast and easy action..
[Android Apps and Games] jacksparao:
Thanks Dude.. Confirm the Nexus version
[Android Apps and Games] jacksparao:
Any Tester here

Please test and confirm the app is working as expected...
[Android Apps and Games] jacksparao:
Guys any tester here ?
[Android Apps and Games] kumbangdesa:
Hi Jack..Just download this..I'll test it later and give a report to you.. :)
[Android Apps and Games] kumbangdesa:
I confirm it work like a charm with Xperia Z1.
[Android Apps and Games] jacksparao:
Request

If possible you can suggest your friend to test.. I minimum 50 XDA user to confirm once its I will make it in live... looking forward..

Thanks, any suggestion will be appreciated..
[Android Apps and Games] kumbangdesa:
Hi jack..I'll suggest my friends to do the test..

I'm really hope you can make a phone ringing in silent mode since notification sound for sms is to short (just 1 or 2 second)..So it difficult to track the phone all around the house if someone forget to place it.. Is it possible to do it?.. Thanks.. :o
[Android Apps and Games] dmoses1969:
Tried it on my Galaxy Note II and it did not work. Tried sending messages from 2 different phones. I am running SlimKat 4.4.2 and using Hangouts as my default messaging app.
[Android Apps and Games] MrRehan:
Tried on my Galaxy S4 4G, Put my phone on silent and then sent the message from another phone and instead of playing the Alarm tone which i set up, it just played my normal notification sound (Whistle)
[Android Apps and Games] Sid Droid:
confirmed working on nexus4...double aces man!!!
[Android Apps and Games] jacksparao:
Thanks

Really am little confused can you explain me more.. The Alarm will ring around 2mins if am right

We had a plan to call from one particular number which is set already in app. In-case if the mobile number not there, what will happen in that case its kind of pain.. you can send sms very easy even using any person mobile... ..
[Android Apps and Games] jacksparao:
Remove Hangout

Can you disable hangout and try sending message I doubt because of hangout its not working.. looking forward hearing from you..
[Android Apps and Games] jacksparao:
Tim

How long the Alarm was ringing ?
[Android Apps and Games] jacksparao:
Thanks

Thanks for the confirmation..
[Android Apps and Games] dmoses1969:
Ok, Hangouts disabled and tried again. Sent myself 2 messages from my wife's phone and nothing happened.
[Android Apps and Games] jacksparao:
Will check and revert back

Will check and revert back
[8125, K-JAM, P4300, MDA Vario Software Upgrading] darksider:
hi,ive bought already this device,its really nice,but wanted to ask,which roms can i use for it,and which is for you the best...i have now: german, version 5.1.70 build 14406.1.1.1, it is usuable for someone,i could upload it...thx
[Android Q&A, Help & Troubleshooting] bosingcalma:
create dump ..my device is not supported....shv-e210s
[Android Q&A, Help & Troubleshooting] SMillerNL:
I have no idea what you want with this thread
[Galaxy S I9000 Q&A, Help & Troubleshooting] merbiyatch:
cant seem to find any custom roms that support the gti9000t model. maybe a link would help? thanks.
[Galaxy S I9000 Q&A, Help & Troubleshooting] xsenman:
Basically the T was meant for specific regions ( like latin America, Israel etc) , as such the important thing is your modem, you need to note down what version you have at the moment and use it back when you use any i9000 custom ROM. AS such you should make a serch on this forum, if you don't find ant specific guide for i9000T, you can use the i9000 guides

look at this for reference [Tutorial] How to Unbrick, Flash, Downgrade, Root, Update i9000 from Froyo to Kit Kat

Check this out! Links to useful Guides and " Banned " Documentaries ​
[Galaxy S I9000 Q&A, Help & Troubleshooting] merbiyatch:
thanks! how do i use my old modem if i use a custom rom?

and what if the phone is factory unlocked already?
[Galaxy S I9000 Q&A, Help & Troubleshooting] xsenman:
The tutorial has the guide of flashing modems, which can be switched at any time and with most i9000 ROM's, if your network reception is poor a modem switch is the answer . IF it is unlocked you can change networks, so it is just fine for you as you can switch different SIM cards to use different networks,

Check this out! Links to useful Guides and " Banned " Documentaries ​
[Google Chromecast] wideasleep1:
A little birdie told me we are on the verge of Chromecast coming out of 'preview' mode within the week. I have no prior experience with this source, so it's just supposition, but I got to thinking, and it makes sense that the superbowl would be an excellent opportunity to announce the gate is being flung wide open. Might we see a quick/cryptic Chromecast ad during the superbowl?
[Google Chromecast] bhiga:
Given Google's current media push for Chromecast and Google Play, I wouldn't be surprised to see a Superbowl ad. Whether or not that coincides with the SDK release... I hope your birdie flies close to Mountain View. :)
[Google Chromecast] wideasleep1:
Well, he said CC support would be 'active' in their app next week...either the gate's flung open, or at least a new series of 'approved' apps...we'll see! :)
[Google Chromecast] wideasleep1:
Okay..looks like they may have over-stated. :( They are now going to release their hardware without Chromecast support, and add it later. They couldn't wait, and no one even knows why El Goog is stalling. Still it will be interesting to see if Google/Chromecast is even mentioned during the pre-game or during the bowl.
[Google Chromecast] Asphyx:
So your Birdy is working on a Hardware project not a Software project? Interesting....

I'm betting that Google is not going to do many releases in a onesy twosey "Whenever Ready" manner and will instead wait till there is at least 5-10 ready for release to make for a much bigger/better Announcement.

Better for the App Devs from a Marketing standpoint and better for Google to make it appear like an event.

Just look at what the last announcement did for aVia and Plex!

I expect them to do this at least for the first year before they go to a more normal send an update and new stuff appears in the store.

If your birdy is making Hardware for the CCast I sure hope it is some sort of WiFi Keyboard that can launch a Player App that lets you control the CCast and make it work like an Android stick to launch content without the need for another device.
[Google Chromecast] wideasleep1:
Well sorta...the little birdie is from their tweets (get it?) and they make a software package PVR wrapped in a hardware package. As late as last week, they claimed the hardware (and software) would arrive WITH CC support ON LAUNCH. Clearly this wasn't correct. As I didn't watch the Superbowl, have no idea if CC was mentioned...
[Google Chromecast] Asphyx:
Ahhh I see...Sorry didn't mean to sound like I was trying to pry more info out of you was just curious when the Hardware was mentioned.

I didn't watch the SB either (I watched the Walking Dead marathon) and from what I hear the Fish Bowl was more exciting than the Superbowl anyway! LOL

If they said it would be ready for Launch then that means they probably have it working and now it is just a matter of Google Whitelisting which I expect will happen when they have enough new options to make an Event out of it.

PVR does sound interesting...I hope it supports M-Card.
[Google Chromecast] wideasleep1:
Negative.. There are options with ccard (Channelmaster and others) but most new tech is targeted towards cord-cutters like myself..I only stream and now PVR HD OTA.
[Google Chromecast] SpasilliumNexus:
Looks like the gates have opened!

http://chrome.blogspot.com/2014/02/chromecast-is-now-open-to-developers.html

https://developers.google.com/cast/
[Google Chromecast] wideasleep1:
Hooray! Let's hope the whitelisting is liberal.
[Google Chromecast] tjsooley:
http://www.androidpolice.com/2014/0...le-cast-sdk-now-part-of-google-play-services/
[Google Chromecast] Asphyx:
I don't expect it to go away anytime soon...

But now that the SDK is public there will come a point where it's not manageable to test and approve every app that supports CCast for Whitelisting and the Whitelist will then become a Blacklist.

I think the most interesting thing I read from those links was that the CCast support for DIAL is actually built into the Android Media Router.
[Google Chromecast] wideasleep1:
And we still wait...can any CC devs update us on what is going on?
[Google Chromecast] bubbleguuum:
Confirming....

The 4.2 Google Play service rollout surely takes its time. I haven't yet received it.

Chromecast, or the story of a SDK that never wants to be out since August 2013...

Amusingly, it is available on iOS.
[Google Chromecast] k9cop:
What is this sorcery I see before me?

MOLON LABE
[Google Chromecast] wideasleep1:
Just a heads-up that Bubble updated his BubbleUPnP app for CC support today! Enjoy!

https://play.google.com/store/apps/details?id=com.bubblesoft.android.bubbleupnp
[Google Chromecast] bhiga:
AND it supports transcoding with BubbleUPnP Server, so it's a potential alternative to Plex.

Sent from a device with no keyboard. Please forgive typos, they may not be my own.
[Nexus 5 General] skusa93:
Wouldn't believe it if I hadn't taken it myself
[Nexus 5 General] Solsun:
Great picture!!
[Nexus 5 General] ljbaumer:
That's pretty sweet man, are you just using the stock camera app?

I was just there the other week!
[Nexus 5 General] ApriliaM3:
Please use the existing thread HERE and search before creating a new thread in future...

Thread Closed.
[Upgrading, Modifying and Unlocking] ersepias:
Hi, I bought the tablet Chuwi V88HD. Device info OS:

Android version: 4.2.2

Android SDK version: 17 (android 4.2.x)

Kernel: Linux Version 3.0.36+ (bob@bob-desktop) (gcc version 4.6.x- google 20120106 (prerelease) (GCC) ) # 423 SMP PREEMPT Thu Oct 31 17:30:57 CST 2013

Is there any custom rom? have installed the latest firmware? or the last kernel?

I have looked through the forum but I have not seen anything clear and I do not break :confused:

Thanks for the help
[Upgrading, Modifying and Unlocking] ersepias:
You can help me please
[Upgrading, Modifying and Unlocking] Drogocop:
Hi, I've been looking for the same without any luck so far.

Everything seems to be related to the V88 which comes with volume +& - and home buttons which makes the flash process totally different.

I'm still looking for a way of bringing my V88HD back to life.

Any help would be much appreciated.
[Upgrading, Modifying and Unlocking] pguerilla:
Just got mine today .. so no updates on a stable 4.4 KK on the Chuwi v88HD ?
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] oldblue910:
Hi everyone,

If any of you have a completely bone stock MJ5 installation that has never been rooted, etc., could you please pull two files for me and upload them somewhere? I need the following files:

/system/bin/mobicore-presetup.sh

/system/bin/prepare_param.sh

If anyone could provide these, I'd appreciate it.

Thank you!
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] frome901:
would they be able to pull them files if they weren't rooted? anyway i have them but im rooted