SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > General > General Topics > Subsim 3.0 R & D
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 06-14-12, 07:52 PM   #1
PeriscopeDepth
Sea Lord
 
Join Date: Jul 2002
Location: Pacific NW
Posts: 1,893
Downloads: 6
Uploads: 0
Default

Quote:
Originally Posted by McBeck View Post
Can you help me with one thing?
How do I link the layout with functionality? I mean, how do I set it up, so when you press a button in the layout, the default browser opens a url of your choice?
You have to do this in actual java code. Android tap callback methods are generally called onClick(). I would read through the google dev guides (the google docs are kind of terrible sometimes, though), find hello world type Android blog posts, and also looking through other people's Android code at github.com and bitbucket.org.

If you zip up the project I will put it up on a subsim bitbucket repo. I prefer git for source control, but mercurial is probably easier to use.

PD
PeriscopeDepth is offline   Reply With Quote
Old 06-15-12, 09:44 AM   #2
McBeck
Admiral
 
McBeck's Avatar
 
Join Date: Feb 2001
Location: Denmark
Posts: 2,002
Downloads: 15
Uploads: 0


Default

Quote:
Originally Posted by PeriscopeDepth View Post
You have to do this in actual java code. Android tap callback methods are generally called onClick(). I would read through the google dev guides (the google docs are kind of terrible sometimes, though), find hello world type Android blog posts, and also looking through other people's Android code at github.com and bitbucket.org.

If you zip up the project I will put it up on a subsim bitbucket repo. I prefer git for source control, but mercurial is probably easier to use.

PD
I have uploaded a zipped file, but the only thing I have put in are the tabs
If you could change the code to make it call
Button 1:http://www.subsim.com/radioroom/index.php
Button 2:http://www.subsim.com/nucleus/index.php?blogid=4
Button 3:http://www.subsim.com/subsim_reviews_index.html
And then send it back, so I can see how it works?


And yes, please create this project on bitbucket. Does it make sense to have 1 project for each platform?
__________________

"I like subcommanders...they dont have time for bull****!"

Proud member of the Subsim army of zombies
Becks website
McBeck is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:22 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.