Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 070D417403 for ; Fri, 13 Feb 2015 13:32:09 +0000 (UTC) Received: (qmail 19256 invoked by uid 500); 13 Feb 2015 13:32:02 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 19212 invoked by uid 500); 13 Feb 2015 13:32:02 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 19200 invoked by uid 99); 13 Feb 2015 13:32:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 13:32:02 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cjp822@gmail.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-ob0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 13:31:36 +0000 Received: by mail-ob0-f175.google.com with SMTP id va2so19845543obc.6 for ; Fri, 13 Feb 2015 05:30:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=80ucykwymC6daA+2g8L3ApjNl8KwP/9ZK0nt5lcC7JI=; b=yF0wT4dongVa7p0foh9o61mm6Ha6J4CdqS5bC+lVtRT1VlFiOfesebAo4eCW7jhD4r GU3oVQiVd2Tdst8SLgwJB5nz/zGBCipFbM2G6A54qVQ2P9oR++Bfx3nevtl04Ki8EjOd 3Z5Cm+Yye8rUVKMira+pE0x9rDxsY9DCX4aaJhqzuTUZjCB9o89X/8GVAsNuxd3uO0wf fUXs0gdCQmLlTyw/yuIFxH1hjjo5wxwdtnCQD7WULFrRmZsq/f5nzbPnG6dCresaTtrh E4TonwDFW9H7NHvikRaBilj85J9I5D2oYWsnU4zFZ9QVho5kP26dyiWQ6d61OhiA3smp svrA== X-Received: by 10.202.223.6 with SMTP id w6mr5934428oig.89.1423834250136; Fri, 13 Feb 2015 05:30:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.60.101.226 with HTTP; Fri, 13 Feb 2015 05:30:29 -0800 (PST) From: Connor Pearson Date: Fri, 13 Feb 2015 08:30:29 -0500 Message-ID: Subject: Thoughts on CB-7827 To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=001a113d631eb2d274050ef83e21 X-Virus-Checked: Checked by ClamAV on apache.org --001a113d631eb2d274050ef83e21 Content-Type: text/plain; charset=UTF-8 Hi all, I'm wondering what the status of CB-7827 is. It causes the APK and activity name to be set to a hardcoded value. It's been open since October and has more votes and watchers than any other Cordova bug. According to the Android documentation ( http://android-developers.blogspot.com/2011/06/things-that-cannot-change.html), you should never change the android:name attribute. So developers working on an already published app must perform a manual fix of several files every time the android platform is added. The root cause of the issue is Cordova now hardcodes the main activity name as CordovaApp (or MainActivity). This was done to fix CB-6511. I have a couple of ideas for fixing this bug without regressing CB-6511: - Use the project name as the activity name then fall back to the hardcoded name if the project name uses 16 bit characters. - Allow the user to specify android-activityName in config.xml. Similar to android-versionCode. - Another option could be to combine the two, attempting to use android-activityName first then falling back to the project name then finally falling back the hardcoded name. Do you think any of these ideas are worth pursuing? I'd be willing to work on a pull request, but I want to make sure I'm going in the right direction. Thanks, Connor --001a113d631eb2d274050ef83e21--