Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
E

ericgahn

@ericgahn
About
Posts
19
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Binary XML missing layout_width.
    E ericgahn

    I use Android Developer Tools which is basically Eclipse from what I can understand.

    Android help android xml

  • Binary XML missing layout_width.
    E ericgahn

    Hi Dominic; Thanks for your reply. I will try it out. Sorry did not reply earlier. I was sick. Eric

    Android help android xml

  • Binary XML missing layout_width.
    E ericgahn

    Hi All; Please help as I am going nuts. Whenever I start a new application I always run it 'naked' just to confirm that everything is ok. From this afternoon all applications I create are coming up with the error as in the logcat dump below. As far as I can see the activity_main.xml file is correct and there is only this one form in the project. All old applications run ok without hiccups. Any help appreciated. Regards Eric activity_main.xml

    LogCat Dump

    10-30 17:36:54.762: I/dalvikvm(1792): Could not find method android.view.ViewGroup.onNestedScrollAccepted, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onNestedScrollAccepted
    10-30 17:36:54.762: W/dalvikvm(1792): VFY: unable to resolve virtual method 11378: Landroid/view/ViewGroup;.onNestedScrollAccepted (Landroid/view/View;Landroid/view/View;I)V
    10-30 17:36:54.762: D/dalvikvm(1792): VFY: replacing opcode 0x6f at 0x0000
    10-30 17:36:54.772: I/dalvikvm(1792): Could not find method android.view.ViewGroup.onStopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onStopNestedScroll
    10-30 17:36:54.772: W/dalvikvm(1792): VFY: unable to resolve virtual method 11384: Landroid/view/ViewGroup;.onStopNestedScroll (Landroid/view/View;)V
    10-30 17:36:54.772: D/dalvikvm(1792): VFY: replacing opcode 0x6f at 0x0000
    10-30 17:36:54.782: I/dalvikvm(1792): Could not find method android.support.v7.internal.widget.ActionBarOverlayLayout.stopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.setHideOnContentScrollEnabled
    10-30 17:36:54.782: W/dalvikvm(1792): VFY: unable to resolve virtual method 8957: Landroid/support/v7/internal/widget/ActionBarOverlayLayout;.stopNestedScroll ()V
    10-30

    Android help android xml

  • Application Architecture
    E ericgahn

    Ah! Then I must say thank you. Eric

    Android csharp android design architecture help

  • Application Architecture
    E ericgahn

    Hi Dominc That is Xamarin. I am trying to keep to Java and basic Android for now. Thanks Eric

    Android csharp android design architecture help

  • Application Architecture
    E ericgahn

    Hi; The trigger will be a field in the data received from the webservice. When a trigger is received, a notification/toast will be displayed and then it is up to the user when to open the UI to check the full details what was received. Like the GMail app: you are notified when an email is received but you decide when to open the app to read the email. That part I have it sorted and planned and is something I had implemented on Windows Mobile (in another life). What I need to know are the steps (and Objects to inherit from) required to do it in Android. My mind is not yet clear about the intents/broadcasts/etc.... Thanks again. Eric

    Android csharp android design architecture help

  • Application Architecture
    E ericgahn

    Hi Dominic; What I need to know is how to build ONE application that starts automatically as a service, but has a UI which the user will use when the service raises a notification. Which activity will have broadcast, be a broadcast receiver, etc.... Thanks Eric

    Android csharp android design architecture help

  • Application Architecture
    E ericgahn

    Thanks for this

    Android csharp android design architecture help

  • Application Architecture
    E ericgahn

    Hi all; I must start this discussion with three statements. (a) I am one of those who learns by doing (b) I have a basic understanding of Android programming (c) I am a .NET developer (ie: I know how to program). What I seek is advise on how to go about developing an application I have in mind. This application will be running in the background (therefore a Service) periodically polling a URL to check for new messages. If a new message is found, a notification or toast is displayed. So far, so good. I think I know how to do all that. The service will start automatically at device boot up. This, I think, I have also found how to do. The problem I have is that as part of the same application I want a UI which the user can then use to process the received message/s. How do I go about implementing this within the same app. The aim is to have ONE installation package. I do not think what I seek is rocket science. I would appreciate any notes or links to relevant guides or tutorials. Regards Eric

    Android csharp android design architecture help

  • MySQL Stored Procs -
    E ericgahn

    Thanks Wayne.

    Database help database mysql sql-server oracle

  • MySQL Stored Procs -
    E ericgahn

    Hi all; I am learning to write stored procs on MySQL and am going crazy.

    DELIMITER $$

    DROP PROCEDURE IF EXISTS CleanCopyEnvData$$

    CREATE PROCEDURE CleanCopyEnvData ()
    BEGIN

    insert into EnvData(UserDate, XAction, Balance, UserID)
    select
    CAST(udate as Date)
    , CAST(amount1 as Decimal(6,3))
    , CAST(amount2 as Decimal(6,3))
    , CAST(UID as UnSigned)
    from
    DataLoad;

    END $$

    DELIMITER ;

    I get an error:

    Error starting at line : 17 in command -
    END $$
    Error at Command Line : 17 Column : 1
    Error report -
    SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'END $$' at line 1

    I am using Oracle SQL Developer and the INSERT statement works ok when executed on its own. I can do these things blindfolded with my arms tied on MSSQL. Any help appreciated. EG.

    Database help database mysql sql-server oracle

  • Pointers, Functions and XCode messages
    E ericgahn

    CPallini wrote:

    void MakeSphere(float *centre, float *radius, Sphere *);

    So if I understand correctly a Sphere 'instance' would be created in Main() and then a pointer to this instance passed to the function?

    C / C++ / MFC help question swift data-structures performance

  • Pointers, Functions and XCode messages
    E ericgahn

    Thank you for your reply. Very helpful. I googled malloc() and used this site to further understand suggested soln. Eric

    C / C++ / MFC help question swift data-structures performance

  • Pointers, Functions and XCode messages
    E ericgahn

    Hi all; I am relearning C after about 20 years. (I had a done a course after which never wrote a line of C code to earn beer money). I would appreciate any sort of help with my current quandary - a function returning a pointer and returning structure variables.

    #include typedef struct
    {
    float Centre[3];
    float Radius;
    } Sphere;

    Sphere *MakeSphere(float *centre, float *radius);
    void PrintSphereDetails(Sphere *s);

    int main(int argc, const char * argv[])
    {

    float c1\[3\] = {10.0,20.0,30.0};
    float r1 = 10.0;
    Sphere \*s1 = MakeSphere(&c1\[0\], &r1);
    
    PrintSphereDetails(s1);
    
    return 0;
    

    }

    Sphere *MakeSphere(float *centre, float *radius)
    {

    Sphere s;
    
    s.Centre\[0\] = \*centre++;
    s.Centre\[1\] = \*centre++;
    s.Centre\[2\] = \*centre;
    s.Radius = \*radius;
    
    return &s;
    

    }

    void PrintSphereDetails(Sphere *s)
    {

    printf("------------------------------------------------\\n");
    printf("Centre: (%6.2f, %6.2f, %6.2f)\\n", s->Centre\[0\], s->Centre\[1\], s->Centre\[2\] );
    printf("Radius: %6.2f\\n\\n", s->Radius);
    

    }

    I am working in XCode and the code works, but I get a warning "Address of stack memory associated with local variable 's' returned." for the code line return &s in function MakeSphere. That is exactly what, I think, I need so what is XCode telling me? Another problem, which XCode solved for me has to do with the way to get the values of the structure variables in function PrintSphereDetails. Initially I had them as s.Centre[0] but XCode flagged these and recommended doing s->Centre[0]. What is the difference? Regards Eric

    The author's comes from a long line of evolved fish.

    C / C++ / MFC help question swift data-structures performance

  • MacBook Pro
    E ericgahn

    Thank you

    Objective-C and Swift hardware question

  • MacBook Pro
    E ericgahn

    Marc I know it is not about Objective-C and I did Google but all that comes up is Retina related.

    Objective-C and Swift hardware question

  • MacBook Pro
    E ericgahn

    I cannot find a proper Mac forum so will ask this q here. Are all non- Retina MacBook Pro's from 2012? I am interested in getting one due to it being user upgradeable (and the 13" model can go up to 16Gb) and has the optical drive inbuilt so I do not have to lug around an extra piece of loose hardware. Thanks Eric

    Objective-C and Swift hardware question

  • Differences between, Objective-C, iOS programming, etc...
    E ericgahn

    Thanks

    Objective-C and Swift ios swift tutorial

  • Differences between, Objective-C, iOS programming, etc...
    E ericgahn

    I am starting out in Apple dev environments. I have downloaded some pdf's and located some tutorials on the Internet however do not know where to start. There are some on iOS programming, some Objective-C, some Soryboard etc... Any pointers on how to proceed and sequence will be appreciated. My main interest initially is iPhone. Thanks Eric

    Objective-C and Swift ios swift tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups