android


Turbolinks Android Adaptor - back button where to start


Very new to Android development and the Android adaptor for Turbolinks 5. I have written a small application that loads the website, clicking links works OK however pressing the back button on the phone; navigates back a page but then none of the links work and I can't swipe down to refresh.
Any ideas on where I need to start looking would be appreciated. Not sure what is even helpful to quote of the code I've done already but think this is the main bit:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Find the custom TurbolinksView object in your layout
turbolinksView = (TurbolinksView) findViewById(R.id.turbolinks_view);
// For this demo app, we force debug logging on. You will only want to do
// this for debug builds of your app (it is off by default)
TurbolinksSession.getDefault(this).setDebugLoggingEnabled(true);
// For this example we set a default location, unless one is passed in through an intent
location = getIntent().getStringExtra(INTENT_URL) != null ? getIntent().getStringExtra(INTENT_URL) : BASE_URL;
// Execute the visit
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.visit(location);
}
public void visitProposedToLocationWithAction(String location, String action) {
Intent intent = new Intent(this, MainActivity.class);
intent.putExtra(INTENT_URL, location);
this.startActivity(intent);
}

Related Links

getStreamVolume always returns 0
unknown error: Unsupported locator strategy: -android uiautomator
Build an Android project with error
Country leaderboard query
StatusBar color in React Native
Load an image from imageview to gridview
GSM/GPRS Module native integration on Raspberry 3 with Android Things
No Stacktrace in AndroidStudio
Android - Get array from JSONParser
How can you filter search by matching String to a field in Algolia?
Make images draggable over canvas in Android
Sending Data via Bluetooth LE from Arduino Mega to an Android App
Android URL scheme doen't open my app on click in app which has build-in browser
app compiling but not running after changing package name
Camera on LG Android 6.0.1 returns RESULT_CANCELLED random
Failed to resolve volley library

Categories

HOME
sonarqube
turing-machines
gdb
developer-tools
ggplot2
dns
amp-html
pyqt
owl-carousel
r-googlesheets
mips
big-o
retrofit2
crystal-lang
elasticsearch-5
p2p
octave
ibeacon-android
enthought
mod-security
opengl-es-3.0
jxl
code-generation
http-post
intershop
google-container-registry
googlebot
poedit
qliksense
slidetoggle
jquery-multiselect
flooding
carrierwave
papaparse
twos-complement
python-import
browser-extension
latitude-longitude
playframework-2.1
zoomify
xdocreport
recurrent-neural-network
odoo-website
dcmtk
contract
photos
dynamic-linq
opennms
builder
wcftestclient
dtsearch
tinymce-3
semantic-logging
context-sensitive-grammar
colorbar
flyout
pybrain
objectscript
latin
watch-os-2
respondcms
aurora
design-principles
ascii-art
inf
state-restoration
file-move
mod-proxy
apache-commons-daemon
google-refine
procedural-programming
post-commit-hook
encryption-asymmetric
gii
template-deduction
cancellation
xml-dsig
memset
radiant
cfcache
git-repo
artemis
gtm-oauth2
breakout
poker
node-blade
abstract-data-type
video-codecs
insert-id
chart-director
virtual-pc
idn
joomla3.1
httponly
urlrewriter
pinch
saxparseexception
multiplatform
inline-formset
nhprof
hbm2java
message-passing
blender-2.49
qtabbar
strtod
web-application-project
asynchronous-wcf-call
change-management
online-storage
leader

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile