Android Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsMobile ProgrammingAndroid Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 21st, 2012, 04:25 AM
GeorgeKroon GeorgeKroon is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Posts: 2 GeorgeKroon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 3 sec
Reputation Power: 0
Webview loadurl from activity problem

Hello,

I've been trying to get an app working for a while now but it seems like i'm crashed..

My main activity creates 3 tabs that i want
addTab("Scan", R.drawable.tab_scan, scanActivity.class);
addTab("Search", R.drawable.tab_search, searchActivity.class);
addTab("View", R.drawable.tab_home, viewActivity.class);
So every tab has it's own class.

Now the scan tab scans a barcode and gives back a website link (String) and I want the View tab to display this website.

How do I get the string from the scanactivity to to the viewactivity?

I've tried sharedPreferences but that doesn't seem to work.
(It does when i place the save command above the create tab in the main activity)

It seems that after creating the tabs, i can't send strings to it.

Is there something I'm missing? could someone please help me?

George

Reply With Quote
  #2  
Old June 21st, 2012, 07:54 AM
GeorgeKroon GeorgeKroon is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Posts: 2 GeorgeKroon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 3 sec
Reputation Power: 0
Fixed,

Placed a String in the activity creating the tabs

and the tab creating the string has onPause writing to String
while the receiving tab has onResume get String

Reply With Quote
Reply

Viewing: Dev Shed ForumsMobile ProgrammingAndroid Development > Webview loadurl from activity problem

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap