man radas jautajums ka savienot sms ar mysql nu piemeram es telefona sms ierakstu textu un tas nosutas uz manu majaslapu un uzradas man galvenais lai tikai aizsutas uz datubazi. ka var??
Laboja Maadinsh, labots 1x
Laboja nezināms, labots 1x
Lasītāju vērtējums: (4 balsis)
0 #124.09.2010. 15:48
Esmu parliecināts ka tas ir iespējams, bet 100% tas maksā, un arī katrs sms ko tu aizsūtītu maksātu dārgāk nekā prosts sms draugam.
0 #224.09.2010. 15:48
Vienkāršāk būs ar twitteri, to gan var realizēt un iesist ziņu caur gprs nemaksā gandrīz neko ja ej caur opera mini un esi noņēmis ielādēt bildes...
0 #324.09.2010. 15:48
nu isteniba es domaja taka draugos piemeram pasuta statistiku bes drizak veletos ka pasuta nevis statistiku bet punktus.
+1 #424.09.2010. 15:48
Aizmirsu kur, bet bija lapa kur vareja novilkt tos skriptus.
+2 #524.09.2010. 15:48
Izmanto http://fortumo.lv/ vai kaut ko līdzīgu.
+2 #624.09.2010. 15:48
exs.lv izmanto fortumo. Tur ir arī koda piemēri.
0 #724.09.2010. 15:48
tad ka man sakombinet ar mysql?
0 #824.09.2010. 15:48
Ko tieši tu nemāki - ievietot ierakstu tabulā? Tad labāk vispār vēl kam tādam neķerties klāt
0 #924.09.2010. 15:48
moska kad nosuta tadu kodu kaa user id pemeram POINTS 34234 un tad datubaze pieskaitas piemeram 1000pointi
0 #1024.09.2010. 15:48
Nu, un kur ir problēma? fortumo.lv ir piemērs kā dabūt to id, tālākais ir viens elementārs SQL kverijs.
0 #1124.09.2010. 15:48
bet to sudu atradu bet rada eroru es iemetu PHP bet met eroru
0 #1224.09.2010. 15:48
Nu tad uzraksti kādu kļūdas paziņojumu rāda. Domā te ir gaišreģi?
0 #1324.09.2010. 15:48
Additional configuration
Define two additional activities in the AndroidManifest.xml of the application, and provide minimum application permissions:
Payment call
For real payment call MPayDialog activity with required extra parameters. Code example:
Intent payIntent = new Intent(this, MPayDialog.class);
payIntent.putExtra(MPayDialog.KEY_SERVICE, "MyServiceName");
payIntent.putExtra(MPayDialog.KEY_ID, "c27fc3ebe03cbbe6d3ae0bc943bf3c96");
payIntent.putExtra(MPayDialog.KEY_SECRET, "838b436392a4efabe8dc25b55b72cfc8");
payIntent.putExtra(MPayDialog.KEY_PRODUCT, "MyProductName");
payIntent.putExtra(MPayDialog.KEY_CONFIRM, 3);
this.startActivityForResult(payIntent, 1);
All following parameters are mandatory:
KEY_IDService ID. The value should be taken from the general info page of your service in Fortumo.KEY_SECRETSee "In-application secret:" on the general info page of your service in Fortumo.KEY_SERVICETextual name for service, optional. Developer can choose any text here to identify used service. E.g. application name. Spaces are not allowed here.KEY_PRODUCTTextual name for purchased product, optional. Developer can choose any text here to identify purchased product or item, e.g. "propacket1". Spaces not allowed here also.KEY_CONFIRMOnly value "3" is supported here currently.
Payment result
To get payment result implement onActivityResult() in your application. Code example:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK) {
// payment ok, read data from the bundle. Could be useful to know
Bundle bnd = data.getExtras();
String msisdn = bnd.getString(MPayDialog.KEY_MSISDN);
String code = bnd.getString(MPayDialog.KEY_CONFIRM_CODE);
String country = bnd.getString(MPayDialog.KEY_COUNTRY);
String amount = bnd.getString(MPayDialog.KEY_PRICE);
String currency = bnd.getString(MPayDialog.KEY_CURRENCY);
String status = bnd.getString(MPayDialog.KEY_FINAL_STATUS);
// do paid events here
} else{
// payment unsuccessful
Log.d(TAG, "payment resultCode not ok: " + resultCode);
}
}
Return parameters are:
resultCodeRESULT_OK (-1)Payment successful and billing check was confirmed ("CONFIRMED").1Something was not ok in the process. SeeFINAL_STATUS to get detailsMSISDNPhone number of user. Usually phone number in international format, but in some countries, due to end-user privacy protection rules, this parameter may be blank or encrypted by mobile operator.CONFIRMATION_CODEPayment code. Can be used to verify payment.COUNTRYTwo-letter code for user country (e.g. "us").AMOUNTCharged amount, e.g. "0.99".CURRENCYCharged currency, e.g. "USD".FINAL_STATUSLast status of payment billing confirmation. Possible values:"CONFIRMED"Successful payment. User got message "Payment successful"."TIMEOUT"Billing check timed out without getting final confirmation. User got message "Payment timed out". Timeout for checking status is set to 10 seconds. If payment system cannot verify billing during this time, then this message is given. Note that it can be quite common in some networks, where billing reports are delivered from mobile operators sometimes hours after billing message. It is up to application whether this status is considered as successful or unsuccessful case for the end-user."BILLFAIL"Billing failed. User got message "Payment failed. Perhaps not enough prepaid credit".
0 #1424.09.2010. 15:48
Tas ta kvispār nav PHP kods
0 #1524.09.2010. 15:48
NU TAS IR XML TO ES ARI MEGINAJU REKU PIRMAIS KO MEGINAJU
0 #1624.09.2010. 15:48
Nu un kas tev tur neiet?
0 #1724.09.2010. 15:48
nu ka parasti ja ir eror tad izmet Error: Unknown IP
http://78.84.75.134/sms.php
0 #1824.09.2010. 15:48
Pļāaaa, tak izlasi vispirms kā viņu vispār lieto
Tev tak vinu nav pašam jāver vaļā.
0 #1924.09.2010. 15:48
tu pats tur esi registrejies?
0 #2024.09.2010. 15:48
Esmu.
0 #2124.09.2010. 15:48
pamegini pats vai tev sanak ar datubazem
0 #2224.09.2010. 15:48
Protams, ka man sanāk
Izlasi sākumā visu kas tur rakstīts.
0 #2324.09.2010. 15:48
bet kuru tu nemi? sito:
In-App Payments for Android???
0 #2424.09.2010. 15:48
Kāds tavuprāt androīdam sakars ar php?
Tur tak skaidri iedots PHP piemērs, tas pats ko tu te iepostoji. Lasi kā viņu lietot.
0 #2524.09.2010. 15:48
probēma tada ka tas nepiekonektejas varbut vari atsutit man paraugu kurs strada?
0 #2624.09.2010. 15:48
"Tam" ne pie kā nav jākonektējas. Tak izlasi vienreiz kā tas vispār strādā.
0 #2724.09.2010. 15:48
Moska man neiet tape ka man ruteris, bet portforwarding viss ir izdarits.
0 #2824.09.2010. 15:48
Tu esi analfabēts vai tikai izliecies?
0 #2924.09.2010. 15:48
neesu jau profins