Giter Club home page Giter Club logo

androidkickstartr's People

Contributors

a-thomas avatar days avatar jeremiemartinez avatar lucmazon avatar thomasfondrillon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

androidkickstartr's Issues

The name of the project in eclipse

When i create a project with a name of my choice, and import it in eclipse, the name showing in eclipse is not the name i specified but the fully qualified name of the main activity with an '_' at the end.

ex:
Application name: scary
Package name: com.scary
Main activity name: Shit

the name of the project in eclipse will be : "com.scary.Shit_"

that's weird.

Two solutions : I did something wrong or something's not right. :)

Custom Application class

This is a good practice that a lot of newer Android developers may not know the value of. Having the option to create a custom Application class and have it registered in the manifest would be a very valuable extra step in setting up. This should have the option to select the name of the class as well as a sub-package of the main package.

@AfterViews isn't working for some reason

Hello!

I've tried this project at home and it works as I expect after some tweaking, but when I tried same way at work I can't seem to get @AfterViews to work. Compiled project just starts on the emulator with style I specified in AndroidManifest.xml, but this is it. It doesn't even add hello message.

App and project

"Multiple dex files define.." error when using Eclipse+Maven-ABS

The Eclipse Maven compiler plugin does not understand the scope "test", thus it will add org.hamcrest, which is included in org.junit, twice to the buildpath.

to fix this, add the exclusion as shown in the picture
excludehamcrest
to the pom.xml of the actionbarsherlock project

(i submit this as issue because i dont want to mess around in the project code)

Push to github intead of download project

I would like to use a cloud IDE and it would be nice if andnroidkickstartr could push the created code to a github account.

Probably, the easiest would be to push to a repo under your account that I can then fork.

Option to Disable Sample Code Generation

The approach that AndroidKickstartR (and the Eclipse ADT activity wizard templates) take of code-generating a complete working sample is cool... the first time that you use the templates.

However, the odds of a developer actually using any of that code is relatively low. Few apps will be loading a string-array resource and using that to populate the titles of a set of action bar tabs, for example. It's not that the code is wrong, but that it is unrelated to the actual objective of the developer, forcing the developer to track down all of this stuff and get rid of it. Admittedly, Lint is getting better about reporting unused resources, which helps clear this out.

That being said, having an option to get rid of the sample code, generating just a bare activity with the minimal set of required initialization, would be useful for those using AndroidKickstartR for the second and subsequent times, so they do not have to track down and rip out all the stuff they didn't need (or even really specifically ask for). This will help AndroidKickstartR be more useful for seasoned developers, in addition to newcomers to Android.

Just a thought...

Filter the resources which are copied into the generated project

When the generation starts, all kickstartr res folder content is copied and pasted into the generated project.

try {
        File androidResDir = fileHelper.getTargetAndroidResDir();
        File sourceResDir = fileHelper.getResDir();
        FileUtils.copyDirectory(sourceResDir, androidResDir);
        LOGGER.debug("res dir copied.");
    } catch (IOException e) {
        LOGGER.error("problem occurs during the resources copying", e);
        return null;
    }

However, it's not necessary to copy all files in some case.
For example, if ActionBarSherlock is not selected, the arrays.xml file will not be used.

Proguard configs

I am currently using Proguard in almost all my projects and I thought it would be nice to have some Proguard configs possibly generated for Maven and No Maven projects.

If you think that something AndroidKickStartr should do, I could probably try to work on it. Let me know !

Default Java Compiler level settings on first import

There is a common issue in Eclipse when importing Android code that sets the default JDK compiler level to 1.5 which causes errors to be reported on all @OverRide annotations in the source. Here is what I found by looking at the change in the file system when importing the ABS library and setting the JDK Compiler level through the menus/dialogs in Eclipse. I imagine this will be the same in the main Android app project as well, but I can further test if you think it would help.

  • The ABS library doesn't import via the Android menu, so I used the General menu.
  • When importing into Eclipse, a few files are created (below). The default compiler level is set in the creation of one of these files (more on that later)

.project
.classpath
.settings/org.eclipse.jdt.core.prefs

  • When I open the dialog (via right-click, Project, Java Compiler) and set the compiler compliance level from 1.5 to 1.6, only one of these file's content is updated

.settings/org.eclipse.jdt.core.prefs

Was (when created by Eclipse):

eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.source=1.5

Is (after editing Java compiler compliance level):

eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6

Solution?

I copied the .settings folder that was created for the ABS library and pasted it into my app's project directory, and when I imported it via Android Existing Code for the first time, the correct compliance level was set and I had no errors.

My system:

Windows 7 x64

Eclipse SDK
Version: 4.2.0 (Juno)
Build id: I20120608-1400

Android tools (ADT plugin for Eclipse, and all the things it comes with)
Version: 20.0.0v201206242043-391819

Add support for ivy

Ivy is a powerful lean jar dependency manager.
It's supported by Eclipse and Intellij (via plugins).

Issues in generated AndroidManifest.xml

Testing using ABS.

  1. The theme value is not set. So, Android SDK complains about it, saying it must use a Sherlock Theme.
  2. Activity name is wrong in that file: my activity name has been added an undersore _
    Thanks a lot !

Update targetSDK to 17

please update targetSDK to the current version 17. Not a big deal though - nice work!

Scroll to input field which has invalid data entered

I had entered invalid characters for the project name and scrolled down to download the project but nothing happened. First I thought something was broke because there was no error prompt. I accidently scrolled to the top to find out that there were some tiny error messages.

Happened on Chrome (latest version) with AdBlock disabled and a resolution of 1680x1050.

Proposal: Either make a dialog box which states that there are errors (and thus making the user think to check his inputs again) or add an automatic scroll to the input field which has incorrect data entered upon clicking on the download button.

404 instead of project download

When i press "Download" button i got this (URL: http://ws.androidkickstartr.com/):

HTTP Status 400 - HTTP method POST is not supported by this URL

type Status report

message HTTP method POST is not supported by this URL

description The request sent by the client was syntactically incorrect (HTTP method POST is not supported by this URL).

After some tries I've got tarball, but with a lot of classes and with pretty class _ActionBarSherlockTrojanHorse

package android.support.v4.app;
// ...

/** I'm in ur package. Stealing ur variables. */
public abstract class _ActionBarSherlockTrojanHorse extends FragmentActivity implements OnCreatePanelMenuListener, OnPreparePanelListener, OnMenuItemSelectedListener {
    private static final boolean DEBUG = false;
    private static final String TAG = "_ActionBarSherlockTrojanHorse";


Can't remember this class in prev tarball.

error: Error retrieving parent for item

Style.xml

error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.Sherlock.Light'

I got this error after importing ptoject.
Please give me some solution.

Thanks.

Choose the target

Add an option that let's you choose the sdk target version and the minimum sdk version supported by the project you want to generate.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.