Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
App crash after package name change
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Version 4.8 was recently ...
by
Ten_Mile_Hike
[
Today
at 01:43:17 am]
Who can explain this ?
by
J-G
[
Today
at 01:02:01 am]
Discipline your AI coding...
by
avra
[
Today
at 12:19:27 am]
FPC Unleashed (inline var...
by
Fibonacci
[
Today
at 12:03:13 am]
[New Component] ExtTabCtr...
by
d7_2_laz
[June 10, 2026, 10:52:55 pm]
Conscious Artificial Inte...
by
schuler
[June 10, 2026, 09:11:29 pm]
TDWEdit
by
Ed78z
[June 10, 2026, 08:24:43 pm]
Trayslate 1.3.0 - Free tr...
by
AlexanderT
[June 10, 2026, 08:12:24 pm]
TShellListView
by
Ed78z
[June 10, 2026, 07:59:41 pm]
[SOLVED] Curious why this...
by
1HuntnMan
[June 10, 2026, 07:53:21 pm]
IndySecOpenSSL is now ava...
by
Thaddy
[June 10, 2026, 06:24:37 pm]
Toying Pascal Documenting...
by
paule32
[June 10, 2026, 05:22:32 pm]
Gitlab site history date.
by
Fred vS
[June 10, 2026, 05:07:59 pm]
Cursor changes to arrow o...
by
atlatl
[June 10, 2026, 05:02:45 pm]
Sizes and SizeInt
by
440bx
[June 10, 2026, 02:15:13 pm]
how to add a ForEach call...
by
jamie
[June 10, 2026, 12:42:04 pm]
XLibre, finally and fortu...
by
kagamma
[June 10, 2026, 12:15:10 pm]
[SOLVED] Watches panel is...
by
CM630
[June 10, 2026, 12:06:33 pm]
How to monitor changes in...
by
Martin_fr
[June 10, 2026, 11:55:18 am]
Printer Info
by
J-G
[June 10, 2026, 11:26:52 am]
Strange Behaviour at Runt...
by
andrew Bubble
[June 10, 2026, 11:19:45 am]
Can I get the position an...
by
CM630
[June 10, 2026, 11:00:33 am]
WEBP, no DLLs
by
CM630
[June 10, 2026, 08:52:43 am]
Dataset EnableControls/Di...
by
Sharfik
[June 10, 2026, 07:40:21 am]
TVirtualDBTreeEx and upda...
by
Sharfik
[June 10, 2026, 07:36:30 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: App crash after package name change (Read 7790 times)
stab
Full Member
Posts: 237
App crash after package name change
«
on:
November 22, 2012, 02:45:06 pm »
Hi,
Made and installed an app with a buttonclick and the Native ListView Dialog and it worked OK.
Then I tried to change package name to be able to install more than one app in a android device by changing "lcltest" to "something" in every file.
Succeeded to install and get the simple buttonclick to work but when I try to use the Native ListView Dialog the app just closes.
Regards
stab
Logged
felipemdc
Administrator
Hero Member
Posts: 3538
Re: App crash after package name change
«
Reply #1 on:
November 22, 2012, 04:03:05 pm »
In the project's file which is androidlcltest.lpr ,you can find like this line: CDWidgetset.ActivityClassName := 'com/pascal/lcltest/LCLActivity';
Change it to correspond to your new package name.
This question is almost the same as this previous one:
http://lazarus.freepascal.org/index.php?topic=18978.0
If this doesn't help, please copy here what "adb logcat" shows, as explained here:
http://wiki.freepascal.org/Custom_Drawn_Interface/Android#Oh_no.21_My_LCL_Android_application_doesn.27t_work
«
Last Edit: November 22, 2012, 04:04:40 pm by felipemdc
»
Logged
felipemdc
Administrator
Hero Member
Posts: 3538
Re: App crash after package name change
«
Reply #2 on:
November 22, 2012, 04:07:05 pm »
I documented this here:
http://wiki.freepascal.org/Custom_Drawn_Interface/Android#Wrong_package_name
Logged
stab
Full Member
Posts: 237
Re: App crash after package name change
«
Reply #3 on:
November 22, 2012, 06:50:42 pm »
Thanks for answering,
I changed lcltest to newpkg in files:
.lpr
android\abd_install
android\AndroidManifest.xml
android\build.sh
android\build_debug_apk.bat
android\res\values\strings.xml
android\res\values
android\src\com\pascal\lcltest\LCLActivity.java
and changed directory name:
android\src\com\pascal\lcltest\
to
android\src\com\newpkg\lcltest\
Was I supposed to only change
CDWidgetset.ActivityClassName := 'com/pascal/lcltest/LCLActivity';
to
CDWidgetset.ActivityClassName := 'com/pascal/myapp/LCLActivity';?
Attaching abdOK.log and adbFailed.log
Regards
stab
Logged
felipemdc
Administrator
Hero Member
Posts: 3538
Re: App crash after package name change
«
Reply #4 on:
November 23, 2012, 12:07:47 pm »
You need to change everywhere: In the directory name itself, in the "CDWidgetset.ActivityClassName :=", in the manifest file I think too... etc. I don't have a finished list of all places. But all of them should match.
Logged
felipemdc
Administrator
Hero Member
Posts: 3538
Re: App crash after package name change
«
Reply #5 on:
November 23, 2012, 12:11:32 pm »
oho .... I found a bug there =) In one place the acticity name was hardcoded still =D
I fixed it now in revision 39352, so please update your lazarus and try again.
The log helped me fix it.
Logged
stab
Full Member
Posts: 237
Re: App crash after package name change
«
Reply #6 on:
November 23, 2012, 11:23:48 pm »
Thanks alot,
Downloaded new version and tested, all work OK.
Regards
stab
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
App crash after package name change
TinyPortal
© 2005-2018