yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] alobo:
Hey Dubliner, it looks like there's some HTML getting output instead of the JSON. I suspect something's going wrong and throwing an error in the PHP script or with the database access. A PHP error/warning message will output HTML and cause problems when you try to parse it as a JSON object. Can you try accessing your script in a browser, preferably using the Post-man Rest Client? If you can paste the error here, I can help troubleshoot it.
[Java for Android App Development] Herchizante:
403 Forbidden

the screenshot:

http://imageshack.com/a/img194/4258/8wl7.png

My WAMP is online but with my local ip I recieve Forbidden error :eek:

help, please
[Java for Android App Development] alobo:
Try the solutions posted here and let me know if anything works.
[Java for Android App Development] Herchizante:
nothing changes

it doesn't work to me. I restart WAMP (and my Windows 8) with:

<Directory "c:/wamp/apps/phpmyadmin4.0.4/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>

in my phpmyadmin.php but nothing changes :eek:

---------- Post added at 11:08 AM ---------- Previous post was at 10:51 AM ----------

i have to change 'httpd.conf' too and it works now :rolleyes:
[Java for Android App Development] alobo:
Glad to hear it works! I'll add this fix to the main post in case any other users run into this problem.
[Java for Android App Development] Saurabh Shah:
nice post :good:
[Java for Android App Development] vijai2011:
Mysqli_* has been deprecated and not recommended. New PDO has advantages like 12 different database support, prevents mysql injection by using prepared statements etc... and its more easy to use too! below is the exact code from OP translated to PDO.

Do not quote the entire OP for just a 2 word reply!!!! It feels horrible scroll so long after reading a very short reply!
[Java for Android App Development] Nikotiko:
If the PHP is available for public use, with that kind of mysql connection it's extremely prone to mysql injection, and even with escape, PDO is advised to be used.

Prepared statements prevent all injections, and I've rewritten the relevant PHP here:

//setup variables
$firstname = trim($_POST["FirstNameToSearch"]); // trim the string to remove spaces from beginning and end (never trust the user)

//connect to Database
try // try will attempt a connection
{
$con = PDO("mysql:host=localhost;dbname=mytestdatabase","username","password");
}
catch(PDOException $e) // catch an error if try fails, like wrong credentials or no db found
{
// stop execution and print the error
die("Error: ". $e->getMessage())
}

// set PDO error mode to exception. errors will throw exceptions when encountered
$con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

// set charset, utf8 helps avoid issues
$con->exec("SET NAMES utf8");

// run your query and select only the columns that are needed, saves memory and makes understanding the database structure easier!
$query = $con->prepare("SELECT FirstName, LastName, Age, Points FROM users WHERE FirstName = ? LIMIT 1");

// bind the query variable to the first ?-token in the query
$query->bindParam(1, $firstname);

// run the query
$query->execute();

echo json_encode($query->fetch()); // print the result encoded in json. fetch will return an array

You can ask me for more info if there's anything unclear :)

You can thank [MENTION=4311415]vijai2011[/MENTION] for hinting me about the thread!
[Java for Android App Development] vijai2011:
And you wrote that really quick ::eek:
[Java for Android App Development] alobo:
Thanks to both of you for the awesome feedback! The PDO code looks like a huge improvement - I'll be incoperating it into the guide soon (with credits to you!)

Looks like I will be updating some of my production code too :D
[Java for Android App Development] halzx:
Error: java.lang.string cannot be converted to jsonobject

Excellent Tutorial!! but I'm stuck at the last part

I'm using IntelliJ community editor with the latest Android SDK and using Genymotion as the emulator to test the scripts but when I hit Get Data button I get the error "

Error: java.lang.string cannot be converted to jsonobject"

What could be wrong ? :(

I capture the screen at the moment the error shows up in the emulator.

thanks.

UPDATE***************** SOLVED : issue was that I added an extra line with "echo $Fi........; on the login.php script just to display the key and I forgot to remove it, that said, I removed it and it works now! :P
[Java for Android App Development] basavak:
Thanks, nice tutorial

Nice tutorial .... Thanks
[Java for Android App Development] FrozenRocker:
Thank you for this great guide!

I have one more question. How to make program and script to update Age and Points for FirstName (ex. John)?

How can I do that?

Thanks in advance.
[Java for Android App Development] Nikotiko:
For a function like that you would like to have the page password protected, so I recommend you update those fields using phpmyadmin, because it's a ready tool for that.

However, the sql code for that is (for example):

Let's say your table name is tableName.

"UPDATE tableName SET Age = ?, Points = ? WHERE FirstName = ?"

The question marks represent parameter tokens which you must define in the php script, so for that to work you need to use the php script guide I wrote in this post.

I'll be more than happy to assist further if necessary.
[Java for Android App Development] andresgouts:
Login

Hi!

first sorry for my poor english.

Well, im trying to do a login form with this guide, and I get the app make the conection with the db and bring the results, but when i try to pass to the other activity and show the information of the user the aplication fail.

I hope you can help me, thanks.
[Java for Android App Development] alobo:
What is the error you encounter? If you post a logcat and a code snippet, I can try to help.
[Java for Android App Development] mytechsol:
Who are paid service providers available for this same requirement?

Hi,

I am in need of same setup, sending and receiving database from server.

I would like to go with Paid Service provider like Amazon.

But I don't know which service to be subscribed for this requirement and who are other competitors for the same service.

My data isn't huge, Language planned to use, PHP, MySQL, ASP, .NET.

Could someone suggest me on which could be best option?
[Java for Android App Development] ltlexcellent:
Multiple result

Hi I am quite new in this area. In my case, if there are 2 first names "John", how could i receive it in the textview?

Anyway, Nice tutorial!!
[Java for Android App Development] KJ4CCH:
Wow this is really cool! It seems so simple, thanks for the information!
[Java for Android App Development] Ather:
is there anyway to load an image from mysql db? i made an app to manage records and i need a pciture loaded aswell (if i save it in DB as blob) what would be the best way to retrieve ID's picture?
[Java for Android App Development] Edieneo:
I cant access my database through Postman? It shown "Could not complete query. Missing parameter" , I did everything, I change the type, put the URL and key also the value that 'John' as your tutorial.
[Java for Android App Development] Nikotiko:
Did you really have to quote the WHOLE thread?
[Java for Android App Development] Edieneo:
I'm sorry, I'm new at here sir.
[Java for Android App Development] Cooper Bryant:
Itspresso - Digital agency | Technology served with hot designs

The following code executes the POST, gets the result and converts it to a string:

Code:

HttpResponse response = httpclient.execute(httppost);

HttpEntity entity = response.getEntity();

String result = EntityUtils.toString(entity);
[MDA II, XDA II, 2060 General] kamiar:
Hi everybody, is theer any chance to get Word Completion and Dictionary in w2003se chinees translated to english?

Thanks
[MDA II, XDA II, 2060 General] kamiar:
anybody???
[MDA II, XDA II, 2060 General] kamiar:
Pleeeeeaaaaaaaasss somebody help me with this issue.

Thanks
[MDA II, XDA II, 2060 General] Rudegar:
http://xdaforums.com/viewtopic.php?t=16273
[MDA II, XDA II, 2060 General] kamiar:
Hi,

I checked the last post but it didnt help, i dont have even the option for Word guessing and Spell Cheking, anyone has a solution for this? please help.

Thanks
[MDA II, XDA II, 2060 General] kamiar:
Hi,

I checked the last post but it didnt help, i dont have even the option for Word guessing and Spell Cheking, anyone has a solution for this? please help.
[MDA II, XDA II, 2060 General] kamiar:
hi everybody,

anyone have a solution for this?
[Nexus 4 Q&A, Help & Troubleshooting] dodgebizkit:
What differences so it make on the n4 to have this on?

Positive effects? Negative effects?

Cheers

----------------------------------------------------------------

Sent from my right hand, which surprisingly isn't busy right now...

Using Nexus4 stock and unrooted, Kii keyboarding it up!
[Nexus 4 Q&A, Help & Troubleshooting] Chromium:
I find that it makes general UI performance even smoother, but ive noticed a decrease in battery.
[Nexus 4 Q&A, Help & Troubleshooting] kbeezie:
It's mainly beneficial to applications that do not utilize hardware acceleration, basically forcing every single app's drawing to be rendered by the GPU instead of CPU selectively.

Pro would be smoother drawing in certain apps where HW acceleration is not utilized

Con would be decrease in battery life, and possibly increase in overall phone temperature.

On a quad core phone you might find that you won't get too much of a noticeable improvement.
[Galaxy S III Q&A, Help & Troubleshooting] jedsoncosta:
I backuped some photosphere pictures of my S3 phone, and when I made a full reset of my phone to make it clear, i put the pictures back to the photosphere folder, but I cannot see them in 360º anymore, they are like normal pictures, can anybody help me?
[Galaxy S III Q&A, Help & Troubleshooting] sadeshmagic:
Did you use the default gallery to view them?? Or did you use the 4.2 gallery?? If its the default gallery it wouldn't work... :)
[Galaxy S III Q&A, Help & Troubleshooting] Glebun:
or maybe you just didn't back it up correctly
[HTC Rezound] docslate:
I am running ecliptic rez 9 with Handcent but I'm not sure if either of these is the problem.

I noticed this last night when my answering service tried to page me and then called me after I didn't respond to the SMS. I rebooted my Rezound and the most recent SMS from 3 hours prior was pushed through again. I even sent myself a test SMS via vtext gateway which was blocked. Tried deleting all copies of the duplicate culprit but it persisted. Eventually, the problem just seemed to resolve itself and I'm not sure why. And the tonight, it occurred again. If I delete the last appropriately delivered message and reboot I now get 3 consecutive notifications of the same message but new messages are not received.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] chase357_501:
Im looking for the gn2 messaging style app for gs4.

I know they have it on freegs4 rom, but im running force.

itd be awesome to get that,

also, when are we going to get call recording, and flashlight toggle!!!

:mad:
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] cerj:
Pull the one you want from free rom, rename the force one with bak after .apk. push the free one and set permissions and reboot. Should work fine, make a nandroid before, just in case

Sent from my N7 using Xparent Blu Tapatalk
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] chase357_501:
you have any idea where it would be located within the rom?

I cant seem to find it.

found every other app, haha.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] clark44:
/system/app/SecMms.apk
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] chase357_501:
Yeah, i found it earlier, for some reason i was looking for mms.apk not secmms.apk. but whatever.

the only thing im having trouble with right now is,

putting the SecMms.apk from freegs4 to my rom.

ive got the apk on my desktop, i know how to change permissions once in my /system,

but i cant get the .apk to copy over, what do i need to do for that?
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] chase357_501:
nevermind, i got it, i ended up using droid explorer.

works pretty nice.

now all we need is that flashlight toggle and call recording!
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] gharlane00:
http://xdaforums.com/showthread.php?t=2298596

There is an option to turn the flashlight on by long pressing the brightness icon.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] chase357_501:
according to other users, it doesn't work on force rom, or any rom for that matter.

as a matter of fact, the op says not to use with any rom, just for stock rooted.

but thanks for trying anyways!
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] devoureddreams:
It works just fine on force rom im using the brightness mod on it without a problem
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] chase357_501:
wait, so did you go thru and pick the mods you wanted?

or did you flash all of them?

im a little confused on what you did.

give me a step by step if you would
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] chase357_501:
nevermind, I thought it was a flashable zip.

didn't know it was an app, I figured it out!

thanks!
[Verizon Droid Incredible 2] brokenchains:
Yo. Seems like a goodbye thread? Not exactly. (but still kind of)

I recently went on vacation and drowned my Incredible 2 in the pool. That was 4 days ago so I think I'm past the point of hoping it will come back to life. Besides that I payed up a Verizon ETF and switched to T-Mobile's $30 unlimited data plan with a Samsung Galaxy S4.

I'm switching a little bit earlier than I thought because of this but this has been my plan for a while - timeline just got sped up. Anyway the whole point of this thread is

Does anyone want the phone for parts?

I'd be happy to send it on to anyone who might be able to use it. Remember it's a water-damaged phone, but maybe there's a chance for repair or parts.
[Verizon Droid Incredible 2] FordNate:
These phones are almost indestructible. Glad I found out pools can kill it. Congrats on getting the s4.
[Verizon Droid Incredible 2] Addiso:
I'd take it for the usb part but don't know if it'll work because of the water damage, have an old inc2 that has a loose usb port and doesn't charge, and my sister wanted it.
[Nook HD, HD+ Q&A, Help & Troubleshooting] gregs1213:
I'm running Cyanogen 10.1 and I can't get the photo gallery to sync (from google photos/picasa).. I've checked to make sure my photos are to be sync'd under the Google Account settings.. I've tried disabling the app, freezing, force stopping and then re-starting.. I even re-flashed the rom, and still nothing. It's sync'd up fine about 2 weeks ago when I got my new cell phone. Anyone have any ideas?

EDIT: FINALLY GOT IT! Found PicasaSync.zip, and flashed it and worked right away!

http://goo.im/devs/Formula84/gapps-...n_Packages/gapps-addon-JZO54K-Picasa-Sync.zip
[Nook HD, HD+ Q&A, Help & Troubleshooting] euqilobaid:
I have exactly the same problem. I'm running latest stable CyanogenMod ROM on Nook HD+. I've installed attached PicasaSync.zip, and sync started to work. But now when i select gallery app to ie. assign photo to a contact gallery app crashes. Please help!
[T-Mobile Samsung Galaxy S 4] panicx72:
Hi,

I've read about Android having a new update (a while now) allowing apps to be moved to your External SD.

I got a 16GB SD card, but I can not find the button 'Move to SD'.

Also, when I'm using apps like App2sd it says my device is not compatible therefor the apps cannot be moved.

Some help please?

Thanks!
[T-Mobile Samsung Galaxy S 4] Spastic909:
Did you get the update? And if so what country are you in?
[T-Mobile Samsung Galaxy S 4] panicx72:
I'm from Belgium.

Isn't the update released for like a week now already?
[T-Mobile Samsung Galaxy S 4] ferlogan:
Th3 update is available only in Germany at th8s time the update giv3 you the ability yo move apps to sdcard you can read more here http://www.androidpolice.com/2013/0...function-in-lieu-of-freeing-up-storage-space/

Now if you don't want to wait anymore just root your device and install an app from play stare . Folder mount that's all you need im just going to wait for the update Im wiht t movile the update already hit Germany. India I think we will get it soom :D
[T-Mobile Samsung Galaxy S 4] panicx72:
Does everyone has the problem with their S4 having the App2sd saying that the internal SD is beeing emulated or something?
[General Questions and Answers] winosxbuntu:
cyanogenmod team has been developing the best and most stable Roms since rooting, they do the best in making them bug free but Roms cant replace Stock that is nearly perfect

- the stock camera app that works and takes pretty good pictures/videos whereas the camera app on cyanogenmod 10 or below takes nasty pictures, design/interface is crappy but overall it works

- Data/mobile network connection is worse than when am running android stock, because am always gettin EDGE (2G) speeds, sometimes gettin nothin and i get mobile network disconnected, APN is fcked up, it doesnt load up web pages/download apps since its fcking slow plus 3G/4G comes back when am at the city and there is a good connection (EDGE)/2G/nothing comes along when i hit the country side.

fix it, iknow there are other ROMs that i can use but Cyanogemod is close enough to be classified as GOOD AS STOCK CAN BE

other problems lies on the Rom but this are the only important/relevant one i could find

i believe in their hardwork to give the consumer the best/most stable ROMS/FIRMWARE but there are things to be fixed like the two i stated above

AT&T Samsung Galaxy S3 I747 on stock jelly bean (4.1.1)

thanks
[General Questions and Answers] tandeejay:
Not sure if this is relevant to you as my phone is a HTC Desire HD, but I had network problems on my DHD running CyanogenMod 10.1 Unofficial until I flashed the latest radio.

Turns out there were compatibility issues with the older radio firmware.
[General Questions and Answers] HENRY131:
I think that you should friend try the new official version of CyanogenMod 11 is now available on the website of cyanogenmod, I have tested and works correctly, but honestly expected much more, I prefer the cyanogenmod 11 Temasek is infinitely better in my opinion.

a greeting.:good:
[Verizon Samsung Galaxy S 4] willsully1221:
Im having bad battery problems with my phone. Ill post all of the screenshots of the processes going on. I will barely use my phone and it will drain rapidly. I dont think this is supposed to happen.
[Verizon Samsung Galaxy S 4] willsully1221:
I dont have GPS on and all of it seems to drain when the screen isnt on
[Verizon Samsung Galaxy S 4] brizey:
Turn off location reporting in maps (you can also get there from the google settings app).
[Verizon Samsung Galaxy S 4] willsully1221:
Location is and has been off
[Verizon Samsung Galaxy S 4] BusyPooping:
try killing the apps...
[Verizon Samsung Galaxy S 4] metalunna:
I see your wifi it on..I was having TERRIBLE idle battery drain while on Wifi. I did everything I could think of...

Until I went into one of my old Access Points and saw that "Multicast" was enabled. I turned it off and since then my Android OS levels went way down..At one point it was keeping the phone awake almost Half of the Phone On time.

THis killed me for 2 weeks...Look through all of your Router and your attached Access Points (if you have any) and disable Multicast..

Let me know if it helps out.. I'm curious if others were as affected as me.

---------- Post added at 10:36 PM ---------- Previous post was at 10:30 PM ----------

If you are rooted you can run a "Shark" log. - Available via Store

This helped me a lot...I was able to see what IP's were causing the most traffic...Stupid me though..Even though I keep track of all of my LAN devices, I forgot that my *.*.1.2 device was actually my OLD access point that I use for legacy devices...For a while I was looking at it and thought it was the New AP I have (that the phone was connected to). If I wasnt so stupid, I would have narrowed it down sooner.
[Verizon Samsung Galaxy S 4] willsully1221:
Thank you for the reply but can you help walk me through this
[Verizon Samsung Galaxy S 4] metalunna:
It depends on the type of router /Access Points you have.

How are you set up?

Do you know the make and model of your Wireless Device (Router/ or Access Point)

Are there more than one in your location?

Note--If you are using a public or school's AP, then you are out of luck in less you have some friends in high places.

I
[Verizon Samsung Galaxy S 4] willsully1221:
I need to keep wi fi on though for data purposes and a few other reasons. Andbi also am connected to wifi at school and friends houses and other places
[Verizon Samsung Galaxy S 4] metalunna:
Disabling Multicast on the router will not disable the wifi.

You will need to find out the maker of your friends Router or access point that you connect to..Form there, just look through the settings .(can even try looking it up - Example - Google "Linksys disable multicast"

As far as your school - I cant help you there unless you know someone in the Network department that is willing to make a system wide unauthorized change.. Prolly not gonna happen. So I cant help you there..Sorry
[Verizon Samsung Galaxy S 4] willsully1221:
How do I see the router's settings though? Computer, phone, etc?
[Verizon Samsung Galaxy S 4] metalunna:
You can sign in via Phone or computer. The address is usually 192.168.1.1.

I do not know your user name or password.

If you do not know your router's address, and you are on a PC open a command prompt and type ipconfig. Look for your gateway address.

get your gateway from your phone go into "Settings" COnnections" "Wifi" click on your Current wifi connection - Click VIEW - Your gateway will usually be the first sets of numbers...and the 4th will be a "1"...example - 192.168.1.1 or 10.10.0.1

Once again..I do not know your routers name or password - Nor can I help you get them.

Once you are signed into the router, look for the Multicast setting - It is usually in the "advanced" section

Good Luck
[Verizon Samsung Galaxy S 4] willsully1221:
Ya, unluckily, I cant find anything about multicast
[Verizon Samsung Galaxy S 4] DarkMenace:
On the Asus RT-AC66R it shows as Multicast Rate(Mbps). Might be named differently on different routers. What router Model and Manufacture do you have?
[Verizon Samsung Galaxy S 4] willsully1221:
All I know is its Verizon Quantum
[Verizon Samsung Galaxy S 4] DarkMenace:
Look at the bottom or back ot should show a Model Number. You can also find it by logging into the router.
[Verizon Samsung Galaxy S 4] chrishoyt2012:
Good chance its an app you downloaded....I keep my WiFi on all day...I'm now just at 23% after taking my phone off the charger at 6:30am.....and that's with moderate to heavy use all day...and WiFi on all day.
[Verizon Samsung Galaxy S 4] willsully1221:
Yesterday the battery didnt go below 89 percent all day
[Galaxy S 4 Q&A, Help & Troubleshooting] solidsebazz:
Can i change my build or the file that tells the server where my pone is from? i have an I9500 and i know sammy has been rolling XXUBMEA for some time now, i think my phone is from south america although im not very sure, i know the ota update is rolling for indian roms right now and some others, is there a way to tell the server that my phone is from india so i can get the ota update withouth having to wipe my rom and download a full rom from hotfile at 50Kb/s? that will take forever, besides my connection is not good and hotfile doesn't allow resuming. :(

Thanks! :laugh:
[Galaxy S 4 Q&A, Help & Troubleshooting] HS™:
U can't change it

And hotfile isn't giving 50kbps I have been getting 220 / least 175 know speed which is good or go to indian thread read last few pages some one has uploaded torrent for thr latest download from there

Indian thread is in general 1 st link of S4
[Galaxy S 4 Q&A, Help & Troubleshooting] solidsebazz:
Thanks!. will try it out. can you spare the link for the torrent download?