Questions tagged [activity-oncreateview]
11 questions
1
vote
1 answer
How to get onCreate to load before onCreateView when using getActivity in onCreate?
I have a code that is using GooglePlayAPI to get the location. In that piece of code I am using getAcvitity since this is a fragment and I put it in my OnCreate. Because I want the values displayed in a recyclerview I put that part of my code in…

ksb
- 87
- 1
- 8
0
votes
0 answers
How to use Android Multi-Webview?
I made the Android multi-webview available and then opened a new window at window.open(). I put javascript code in a new window and tried to get a return, but the code was put in an existing window instead of a new window. Any solution? Help…

breadjune
- 1
- 1
0
votes
0 answers
ClassCastException: com.nambimobile.widgets.efab.ExpandableFabLayout cannot be cast to Activity onCreate
So I'm adding an expandable fab, but I'm having this error and I don't understand why...
this is the exact error in log:
ava.lang.ClassCastException: com.nambimobile.widgets.efab.ExpandableFabLayout cannot be cast to…

XtinaG
- 1
- 1
0
votes
1 answer
How to convert a Fragment to a Activity Android?
I have a working app using threads in fragments, the thing is I need to change the layout. It's not gonna be a Fragment anymore but a standard Activity.
My big problem is that I don't know exactly where to place what's in "onViewCreated" and…

ALEXANDRE CHAGAS VIEIRA JUNIOR
- 329
- 3
- 18
0
votes
2 answers
Send data from Activity to Fragment when fragment is onCreateView
Sorry for my english. I have one activity and in this activity in FragmentPagerAdapter exist 5 fragments. All fragments use one object model for inforation(product name, product image ...).
My activity get data from data base. And then it data send…

r1299597
- 609
- 3
- 10
- 20
0
votes
1 answer
django createviw- create another model object and use it in current model
I have two models as given below.
class Account(models.Model):
ASSET='A'
LIABILITY='L'
INCOME='I'
EXPENSE='E'
ACCOUNT_TYPE=((ASSET,'Asset'),
(LIABILITY,'Liability'),
(INCOME,'Income'),
(EXPENSE,'Expense'))
…

art
- 1,358
- 1
- 10
- 24
0
votes
3 answers
onCreateView wait queries result
I need to execute a query to my DB to get some IDs and then use those IDs to execute another query to Realm DB and return the result to the Adapter which is used to create UI. My problem is that the adapter is created in onCreatView (main thread)…

Fyruz
- 75
- 1
- 20
0
votes
1 answer
Activity onCreateView not receiving all widgets in layout
I have a simple layout like this:

Notbad
- 5,936
- 12
- 54
- 100
-1
votes
1 answer
Where do lifecycle methods, and other methods, get their parameter values?
In the following Android lifecycle method:
@Override
public View onCreateView(
LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = super.onCreateView(inflater, container,…

FernandoH-G
- 74
- 11
-1
votes
1 answer
Android Wear not triggering onCreateView
I'm writing a Android Wear (watch) app to complement the tablet / phone app.
The onCreateView doesn't get called when I debug (or run the app).
Is there a different order of execution or method name instead of onCreateView that needs to be used with…

Carl Bruiners
- 87
- 3
- 11
-1
votes
1 answer
Saving/loading an Android layout with previously programmatically added buttons
I have a very simple question about loading layout in main activity. I have a simple layout defined in activity_main.xml which is loaded in MainActivity's OnCreate() using
setContentView(R.layout.activity_main).
Then on a button click, I add…

Bill
- 65
- 1
- 6