call

UITableView delegate method called twice

Hello everybody, Today my question is about UITableViewController-s In particular I have noticed that the datasource delegate method - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView; is called twice (even if for instance I just create a navigation based application and without adding a line of code.. well adding an N...

How can i call an XSL template within a hyperlink in the XSL stylesheet

I am making my own XSL stylesheet which will perform different views on the same XML document Because the XML document is so large, i would like some links at the top of the outputted page to call each template that will be used to display the data. At the moment I can create links that use anchors to a place in the document but it wo...

Change Call Screen

I need to change or customize the call screen when initiating a call on Android. After searching on google I do not find any way to do it. There is no way to send DTMF tones during a call, the idea is to send a specific number to the call screen. So when a call is made is possible to see the number to dial during a call to the PBX. I ...

How to redirect the output of a system call to inside the program in C/C++?

Hi All, I'm writing a program in C++ which do some special treatment for all the files in the current directory on Linux OS. So i was thinking of using system calls such as system("ls") to get the list of all files. but how to store it then inside my program ? ( how to redirect the output of ls to let's say a string that i decl...

calling function in radiobutton group

with your help, i am now able to call the function for each radio button. however, i get a error message Reference to non-existent field 'ics_si' ics_si is my function, which has the following code, i do not know where i am making a mistake i have created the edit box for user to input the values for bore and stroke. and vdisp is cal...

Detect outgoing calls and problem with a real device

Hi, I have a strange problem. To detect outgoing calls I have registered a broadcast receiver for android.intent.action.PHONE_STATE. When the state becomes OFFHOOK, then a conversation is started. It seems working on emulator: the debugger in fact reaches some code while it doesn't work on real device (Acer Liquid). Is it possible? Wh...

Making a phone call from within an app

Is there any way to make a call from within an app without quitting the app? If yes please help. If not, what should I do to save the state of the app before quitting the app and resuming from that state on restart? Thanks for any reply.. ...

How does "Truphone Anywhere"<TM> place a GSM call on the iPhone?

As far as I understand, the only way to place a call from an app is using the tel:// URL scheme, which launches the native phone app. But the Truphone app available on the App Store can place VOIP call even when there is no WIFI available. They say they do it by making a GSM call to their server and routing the VOIP packets over the inte...

Create Global ASP.NET Function?

I think this is a pretty easy question...How do I make a asp.net function global? e.g. If I have a function GetUserInfo() defined on default.aspx how do I call this function from mypage2.aspx? ...

Call function in function arguments

I have a function, we'll call it funcA that returns an object. I want to pass that object to funcB. Can I do this? funcB(funcA()); so that funcA() is called first and the results are passed to funcB()? ...

how to save current state of application

hi, I am making an iphone application in which after login we will go through some steps and then finally we make a call from within the app. As we know on making call our app quits so plz suggest me how to resume that state on relaunching the app? 1-login 2-some steps 3-list of numbers 4-call Any help will be appreciated. Thanx.. ...

Constructor being called again?

I have this constructor; public UmlDiagramEntity(ReportElement reportElement, int pageIndex, Controller controller) { super(reportElement.getX1(), reportElement.getY1(), reportElement.getX2(), reportElement.getY2()); setLayout(null); this.pageIndex = pageIndex; this.controller = controller; reportElements = reportEl...

Is it possible to call WSDL method just by calling some url from browser?

Is it possible to call WSDL (bacikHTTPbinding) method just by calling some url from browser? ...

[PHP] How to pass array as multiple parameters to function?

I have a parameters array: $params[1] = 'param1'; $params[2] = 'param2'; $params[3] = 'param3'; ... $params[N] = 'paramN'; I have a caller to various functions: $method->$function( $params ); How can I parse the $params array, so multiple (and unlimited) parameters can be passed to any function: $method->$function( $params[1], $pa...

After making a call programatically, my android app crashes

The title explains all... I have this snippet of code in my application: String url = createTelUrl("3112007315"); Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse(url)); context.startActivity(intent); It does make a call, but once the call ends, my application crashes. I'd like to return to my application once ...

Android - How to programmatically answer a call

I know this has been asked before, but at this time the answer of the post is not true. http://stackoverflow.com/questions/2610587/how-to-programmatically-answer-a-call Vringo and other apps does answer the phone by pressing a button on their app, so there must be a way to do it. Anyone has a suggestion? ...

In Javascript, is it true that function aliasing works as long as the function being aliased doesn't touch "this"?

In Javascript, if we are aliasing a function (or, assign a "reference to a function" to another variable), such as in: f = g; f = obj.display; obj.f = foo; all the 3 lines above, they will work as long as the function / method on the right hand side doesn't touch this? Since we are passing in all the arguments, the only way it can me...

How to call iframe's function from this iframe

Hi, I have an iframe created in Javascript with some function f(): var iframe = document.createElement("iframe"); $(iframe).attr({ width: 0, height: 0, frameborder: 0, src: this.options.url, name: id, id: id }); document.body.appendChild(iframe); iframe.contentWindow.f = function(data) { alert("test"); }; Document load...

When is a parameterized method call useful?

A Java method call may be parameterized like in the following code: class Test { <T> void test() { } public static void main(String[] args) { new Test().<Object>test(); // ^^^^^^^^ } } I found out this is possible from the Eclipse Java Formatter settings dialog and wondered if there are...

Why does gprof tell me that a function that is called only once from main() is called 102 times?

Hello. I am a beginner, and wrote the following program for fun, to search through a directory and replace every occurrence of one word with another. I call the crt_ls_file() function once, and once only, but gprof tells me it is being called 102 times. I am wondering if anyone knows why this is. I have tried compiling the program will a...