I use Android Developer Tools which is basically Eclipse from what I can understand.
ericgahn
Posts
-
Binary XML missing layout_width. -
Binary XML missing layout_width.Hi Dominic; Thanks for your reply. I will try it out. Sorry did not reply earlier. I was sick. Eric
-
Binary XML missing layout_width.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 -
Application ArchitectureAh! Then I must say thank you. Eric
-
Application ArchitectureHi Dominc That is Xamarin. I am trying to keep to Java and basic Android for now. Thanks Eric
-
Application ArchitectureHi; 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
-
Application ArchitectureHi 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
-
Application ArchitectureThanks for this
-
Application ArchitectureHi 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
-
MySQL Stored Procs -Thanks Wayne.
-
MySQL Stored Procs -Hi all; I am learning to write stored procs on MySQL and am going crazy.
DELIMITER $$
DROP PROCEDURE IF EXISTS CleanCopyEnvData$$
CREATE PROCEDURE CleanCopyEnvData ()
BEGINinsert 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 1I 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.
-
Pointers, Functions and XCode messagesCPallini 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?
-
Pointers, Functions and XCode messagesThank you for your reply. Very helpful. I googled malloc() and used this site to further understand suggested soln. Eric
-
Pointers, Functions and XCode messagesHi 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.
-
MacBook ProThank you
-
MacBook ProMarc I know it is not about Objective-C and I did Google but all that comes up is Retina related.
-
MacBook ProI 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
-
Differences between, Objective-C, iOS programming, etc...Thanks
-
Differences between, Objective-C, iOS programming, etc...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