Questions tagged [onstart]

onStart refers to one of the lifecycle methods for several components on the Android platform.

117 questions
0
votes
0 answers

startActivityForResult vs OnRestart (bundle or read from file)

Main Java Activity: TList tl = new TList(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_my); } public void AddmyCostumObj_buttonclik(View view) { …
0
votes
3 answers

Android 2 activities and pass datas

I have a problem with my app android. I new in this, and i'm learning. I have 2 activities, first call the second activity and in this activity i add string, and i want see this new string in the first activity, I try with this code protected void…
sdelcueto
  • 43
  • 7
0
votes
1 answer

Restarting Services in Android

In android application if I save the intent of the service that is running. How can I restart the service? I want it to run onStartCommand function again. Thanks
ida
  • 1,011
  • 1
  • 9
  • 17
0
votes
2 answers

How to start activity as its first created

How to start same activity again as its created first time. I used INTET to start activity again . but If user press home button at mobile this intent not works . is there anyother way to startactivity as its first created when its in background.…
Jaan
  • 1
  • 1
  • 4
0
votes
1 answer

Handling the RoleEntryPoint.OnStart() event of an Azure Webrole in the second website

First Why I'm doing this: I have a WCF service deployed as an Azure Webrole using HTTPS as endpoint. I need to have a custom "load balancer probe" set for this service. Azure load balancers does not support HTTPS, so I've deployed a second website…
Hamid
  • 35
  • 1
  • 7
0
votes
1 answer

Inclusion of onStart Method causes Null Pointer Exception

I'm trying to bind a service in my main activity and am getting a null pointer exception. In order to bind the service, i've added onStart() and onStop() methods to the activity, which in themselves seem to be causing the null pointer exception.…
0
votes
1 answer

Android activity start up view and onStart

I am trying to build an android game using java (this is the first time I have done this so I am very new). When the user selects they game they want to play from the main activity the GamePlay activity class is called. In this class I am trying to…
0
votes
2 answers

Get Layout Width and Height AFTER the form has been created

Hello im interested in getting the layouts width and height using android once the layout has been loaded, and then depending on the these measurements to create pictures , textboxes , button with proper dimensions for the Android device that my…
kasf
  • 113
  • 1
  • 2
  • 11
0
votes
2 answers

onStart method is called AFTER onComplete method

I have a button let's call it "Button1": This Button1 is supposed…
Sinda MOKADDEM
  • 796
  • 2
  • 12
  • 35
0
votes
1 answer

How to send a service to multiple fragments from a button click

I have multiple fragments contained in a viewpager, and I would like each fragment to do something when a button defined in the viewpager is clicked. How would I send a service to each of these fragments, triggering each fragment to do something?…
I'm_With_Stupid
  • 1,112
  • 4
  • 16
  • 35
0
votes
1 answer

Timer code crashes my app

I'm learning android development, and what I'm trying to do is to have a label that counts down from 40 minutes, and when it reaches 0 it would stop counting and do something else. This is my code: @Override protected void onStart() { …
ril2
  • 55
  • 2
  • 6
0
votes
2 answers

Whats wrong in my onStart code?

EDIT: I have found the problem and it is the Thread.Sleep is there any other way of making my application wait a second? I'm trying to learn android development so I'm using android studio. I have an activity, which isn't the main activity and I…
ril2
  • 55
  • 2
  • 6
0
votes
1 answer

Windows Service and database connection

(I am new to Windows Services) I have an automatic windows service that fetches some records from a database table, calls a web service method for every record and inserts the return value of the method and some other information into the table. My…
Narges
  • 65
  • 2
  • 10
0
votes
1 answer

Android- black screen for 15 seconds after onStart() when returning to activity

When I launch my app, if there has been x failed attempts to get into the main game, I launch a "SafeMode activity", where they then have options to reset or delete save data etc, which I launch like this from my "Main" activity: Intent intent = new…
Chris Moore
  • 157
  • 1
  • 3
  • 12
0
votes
1 answer

session_onstart does not fire classic asp

My Session_OnStart in my golbal.asa file won't fire on one machine but works as expected on the other. Both machines are Windows server 2003 with IIS6. Here is my code. global.asa