Android Question Starter Service is not called

grafsoft

Well-Known Member
Licensed User
Longtime User
Hi,

I created a Starter service, everything worked. But now it does not work anymore.

The code is huge, I cannot post it. Any suggestions?

I tried to remove the service and add it again, it did not work.

The funny thing is - it runs on one device, but not on the other.
 

LucaMs

Expert
Licensed User
Longtime User
Maybe so :) Maybe you should try the start service, it can save a lot of trouble.

Very probably.


[P.S. off topic, then you could answer in private: shoud I write: "Very probable"? Is "Very probably" completely wrong? Thank you :)]
[My answer: searching on Google "Very probable" I get 477,000 results, 536,000 for "Very probably"]
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
P.S. off topic, then you could answer in private: shoud I write: "Very probable"? Is "Very probably" completely wrong? Thank you :)
I think it should be "most probably". Just 2cent from a german (no native english speaker)
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
Very probably.


[P.S. off topic, then you could answer in private: shoud I write: "Very probable"? Is "Very probably" completely wrong? Thank you :)]
[My answer: searching on Google "Very probable" I get 477,000 results, 536,000 for "Very probably"]
The correct way is just to say either "Probably" or "most likely".
 
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
1. There is no logging in Release mode, right?
2. Can you point me to "usb debugging" in the manual or some other documentation?
 
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
There is also a very wstrange error on this de4vice:

B4X:
t_useyrinfo="使用は情報を保存しました"

The variable is declared in the same activity as global.

LogCat connected to: B4A-Bridge: Lenovo MEDION E4503
--------- beginning of main
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
Installing file.
PackageAdded: package:photo.Tagger
Copying updated assets files (39)
** Activity (main) Create, isFirst = true **
Error occurred on line: 159 (Basis)
java.lang.RuntimeException: Object should first be initialized.
at anywheresoftware.b4a.sql.SQL.checkNull(SQL.java:48)
at anywheresoftware.b4a.sql.SQL.ExecNonQuery(SQL.java:66)
at Photo.Tagger.main._activity_create(main.java:994)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:305)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
at Photo.Tagger.main.afterFirstLayout(main.java:100)
at Photo.Tagger.main.access$100(main.java:17)
at Photo.Tagger.main$WaitForLayout.run(main.java:78)
at android.os.Handler.handleCallback(Handler.java:810)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:189)
at android.app.ActivityThread.main(ActivityThread.java:5532)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
** Activity (main) Resume **

So, I get wrong debugging info. I do not call an object here, I fill a variable. And I should not come to this line, my phone is set to Gerrman, not Japanese.
 
Upvote 0

Brian Dean

Well-Known Member
Licensed User
Longtime User

[P.S. off topic, then you could answer in private: shoud I write: "Very probable"? Is "Very probably" completely wrong? Thank you :)]


On the subject of "very probable" and "very probably" ...

"Probable" is an adjective, so should be used to describe a noun (a thing) - "Disaster was very probable".

"Probably" is an adverb so should be used to describe a verb (an action) - "I will very probably go".

But don't worry too much - everyone knows what you meant.
 
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
Very funny: On one machine (XP) the above mentioned problems stay and I cannot work. On another (Win 7) everything is OK. #

What should I do? Re-install B4A.exe? Discard the directories and copy everything from the other machine?
 
Upvote 0
Top