Posts by Alce de Terno • 49 points
6 posts
-
1
votes2
answers526
viewsA: C++ program for day of the week (with code example)
To solve the problem one should use the casting to float, avoiding int in any case frac = modf(float(n/7.0), &intpart); both float() casting and force 7.0 as splitter…
-
0
votes2
answers526
viewsQ: C++ program for day of the week (with code example)
It is known that the day of the week of a date provided between 1° March 1700 and 28 February 2100 can be determined by the following method: n=int(365.25∗g)+int(30.6∗f)−621049+d…
-
0
votes1
answer32
viewsQ: Asynctask and Adapter for Listview in conflict
I’m creating a chat app using socket and after developing all the layout I decided to enter the connection part... the problem is that when I receive messages the app closes and presents some…
-
1
votes3
answers370
viewsA: Listview with different layouts per line, according to filtered value
I needed an Adapter to provide me with the following: well, by my choice, set a specific layout for when I receive messages, or a specific layout for when I send the message. After a long time of…
-
0
votes0
answers220
viewsQ: java.lang.Runtimeexception: Unable to start Activity Componentinfo{}: java.lang.Nullpointerexception by checking my input
I’m new to android development and am passing a swing chat for android. The idea is to use a server socket that makes the connection. This is the third attempt to make it work... I received the…
-
1
votes1
answer670
viewsQ: Unable to instantiate Activity Componentinfo; java.lang.Illegalstateexception: System services not available to Activities before onCreate()
I have a project of a chat socket running in Swing and now I’m passing it to Android. Everything was working perfectly until I put in the code that makes the magic happen. The application closed and…