php


Android :How to load but not open URL


I have PHP link that updates totals on my database for my website. This website has no UI at all. When the user clicks on my button I just want it to load the link in the background and not view it. Using,
public void cButton(View view){
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
startActivity(browserIntent);
}
will prompt Android to open up its native browser, I just want to load the link.
Any methods you guys have in mind :) ?
I suppose you simply want to do an HTTP request? In this case you don't really want to start activity for loading the page in a browser. For such purpose Google is providing quite simple to use library. Hope this will help you: https://developer.android.com/training/volley/simple.html

Related Links

Automatic logged out [closed]
phing and phpUnderControl … working together
php: remove brackets/contents from a string?
Simple(r) ORM for PHP [closed]
Is there an easy way in PHP to convert from strings like '256M', '180K', '4G' to their integer equivalents?
Alternating CSS Style with multiple Mysql Results
“how many search results from mysql” help
Efficiency of code for organizing values from a database
Link to Wordpress 'latest posts' page when using static front page
(pdflib) Table of contents with dynamic page numbers
A public static function in a class not executing
Creating new SQLite DBs with PDO
Using Singletons in PHP
Programmatically access & post a form that requires session
Zend_Paginator; is it optimized?
How to create an array from output of var_dump in PHP?

Categories

HOME
office365
lambda
weblogic12c
facebook-messenger
yahoo-weather-api
concurrency
plpgsql
magento-2.0
google-webmaster-tools
gentelella
ag-grid
xades4j
cqrs
getopenfilename
pm2
spring-jpa
web-deployment
tfsbuild
coroutine
home
gollum-wiki
pyopencl
jstree
jpa-2.1
plyr
high-availability
unrar
xdebug
phpstorm-2016.1
steam-web-api
quickcheck
image-optimization
xerces-c
unification
widestring
selenide
assemblies
fiware-wirecloud
nuclio
kitura
daz3d
jenkins-slave
linq-to-excel
uiautomatorviewer
entropy
swiperefreshlayout
pecl
system.net.mail
eclemma
gravatar
vimperator
flush
django-validation
openshift-cartridge
android-studio-import
gitlab-omnibus
text-align
dnsjava
utf8-decode
global-scope
rails-api
oxygene
roxy-fileman
iosched
application-blocks
compiler-flags
hyphen
hints
void-pointers
chartfx
dynamic-rdlc-generation
popup-blocker
series-40
liveconnect
uploading
differentiation
delphi-prism
haiku
botnet
page-curl
servlet-container
3des
anonymous-types
mongrel
urchin
iphone-sdk-4.3
gtktextview
sqlsitemapprovider
autobench
rendering-engine

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App