Search:

Type: Posts; User: ChristopherLowe

Page 1 of 11 1 2 3 4

Search: Search took 0.65 seconds.

  1. Replies
    6
    Views
    7

    Re: Drawing and Scrolling

    If you are drawing to Bitmap you could use drawBitmap (Bitmap bitmap, Rect src, Rect dst, Paint paint). The idea is to first generate the bitmap and store it as a member variable then redraw the...
  2. Replies
    8
    Views
    9

    Re: Reset on counter?

    As I said in your last thread, tutorials are okay but check the Android docs. It's your primary source of information.

    As I also said in your last thread, we are here to help you (which you make...
  3. Replies
    8
    Views
    9

    Re: Reset on counter?

    It looks like you are declaring the startButton and pauseButton as member variables of the class, but not the resetButton so it's only scoped for the onCreate method.

    Wait, hold on... It's not...
  4. Replies
    8
    Views
    9

    Re: Reset on counter?

    The purpose of a reset button is a timer is to reset the time no? You could just set the TextView back to 00:00:00

    Also; cross posted here. Please see The problems with cross posting.
  5. Replies
    5
    Views
    6

    Re: SEO Section

    No they aren't. Also, SEO isn't about perfecting a website it's about improving the search ranking. It's an exercise in marketing and brand awareness.

    The point that Copeg makes is valid. SEO...
  6. Replies
    8
    Views
    9

    Re: Reset on counter?

    resetButton = (Button) findViewById(R.id.resetButton);

    resetButton.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
    timeSwapBuff +=...
  7. Replies
    6
    Views
    7

    Re: Drawing and Scrolling

    It kinda depends on what you are trying to achieve. If it's just UI elements you should be able to get away with wrapping it up with a ScrollView in the layout xml. ScrollViews are the easiest...
  8. Replies
    19
    Views
    20

    Re: Robot Game; Few errors (help)

    I've had a look at the tutorial you've been following. It's not a tutorial, rather a set of copy and paste instructions. Understand that creating a game for Android is a complex undertaking,...
  9. Replies
    2
    Views
    3

    Re: no launch activity found

    <activity android:name=".Splash"
    android:label="@string/app_name">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category...
  10. Replies
    19
    Views
    20

    Re: Robot Game; Few errors (help)

    The warnings from the ArrayList are because they aren't using generics. This is the correct way of defining an ArrayList with type safety ensuring it will only accept objects of a certain type (for...
  11. Replies
    19
    Views
    20

    Re: Robot Game; Few errors (help)

    Tutorials are okay I suppose but the Android docs have the final say. Stick with ic_launcher.



    Nope. I'm here to help and guide, not solve your problems for you. Doing so would deprive you of...
  12. Replies
    7
    Views
    8

    Re: decimal to hexadecimal

    The approach is faulty. Hexadecimal is just a way of expressing a number in a different base. It's incorrect to look at a character and return what that character would be in decimal. You need to...
  13. Replies
    19
    Views
    20

    Re: Robot Game; Few errors (help)

    Why is it in /res/raw? Images live in /res/drawable. Also, I'd recommend sticking to the conventions in the android docs with naming resources. I stick to "ic_launcher" for the applications icon....
  14. Replies
    7
    Views
    8

    Re: decimal to hexadecimal

    Good for you! Trying something then learning from the mistakes and trying something else is the best way to learn :)


    Now you are on the right track! But instead of writing something from...
  15. Replies
    7
    Views
    8

    Re: decimal to hexadecimal

    When you find yourself doing this ... stop and think about what you are trying to accomplish. Computers are excellent at repetition and loops are a fundamental concept for all programming languages....
  16. Replies
    19
    Views
    20

    Re: Robot Game; Few errors (help)

    Icon.png or icon.png... It's case sensitive. Your IDE should be able to autocomplete this for you.






    <string name="map1">
    All your strings belong to us..
    </string>
  17. Replies
    7
    Views
    8

    Re: decimal to hexadecimal

    char a = A;


    This is attempting to assign the primitive variable a to the value of another variable A. You can define a character literal with the ' symbol.



    char a = 'A';
  18. Replies
    19
    Views
    20

    Re: Robot Game; Few errors (help)

    I recommend reading up on Android resources. @drawable/icon is trying to reference an image called 'icon.png' in the drawables directory which probably doesn't exist. map1.txt should be formatted...
  19. Re: ActionEvent

    Woah, confusing thread.

    I suspect you don't really understand the difference between a class and an object. When you define a variable or method as static you are saying it belongs to the class,...
  20. Re: ActionEvent

    You need to tell the button that the class is the action listener.



    button.addActionListener(this);


    You can read up on Action Listeners here

    --- Update ---
  21. [SOLVED] Re: Why should a programmer follow GUI standards in programming the user interface?

    Conventions exist for two very good reasons; you and the other guy. It might be amusing to through all manner of craziness into your code but when it comes to maintenance you will wish you had...
  22. Re: Protecting your computer from Java based Attacks!

    It uses reflection to inform you if something is using potentially malicious routines, like opening a socket or deleting files.

    @DMoneigh neat idea. I like your coding style.
  23. Re: What is wrong with my C++ coding?

    Definitely not ADA (terrific language btw). It's some kind of declarative language.
  24. Re: Sending XML to PHP Service via POST

    Your shared code.. does it use any of the new Java 8 features like lambdas? Android won't support them.
  25. Re: Sending XML to PHP Service via POST

    10 minutes just for deserialization!? I'd hazard a guess and say there is a problem in your implementation. There is no reason it should take that long.

    On an unrelated note if you are stuck...
Results 1 to 25 of 271
Page 1 of 11 1 2 3 4