Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp

Pramod P Deore

Ranch Hand
+ Follow
since Jul 15, 2008
Pramod likes ...
Android Eclipse IDE Java
Mumbai
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
12
Received in last 30 days
0
Total given
25
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Pramod P Deore

Pramod P Deore wrote:Hello everybody, In my application I want to send sms, but the application must have to run in the background. It send the sms but it is not run in the background. I have following code.

//Background.java


My Service class look like this

//MyService.java


//AndroidManifest.xml



But when I run it It is not running in the background.

Thanks

5 months ago



3 years ago
Use external libraray like AchatEngine,MPAndroid chart.... there are many more which can be used
3 years ago
They are printing but output is too large therefore it override previous output and start displaying from 1712 !2156|
3 years ago
make sure you had added permission


4 years ago
Hi Welcome to javaranch, can you show us your code.
4 years ago
The size of a reference isn't well defined, but it is typically 4 bytes on a 32-bit system and 8 bytes on a 64-bit system.
5 years ago
A reference variable "obj" contains an address, or a reference to an address (similar to pointer variables in C++). A reference variable provides direct access to this memory address.
5 years ago
Your life is message to the world, make sure it is inspiring.
5 years ago
You can't restart a thread
5 years ago
In case 2nd of your example you can add validation of setter method so another programmer can't set any value that can be create problem in future for your code. But suupose you can't use getter and setter method to set variable value as in case 1 of your code then any value directly assign to your variable. So it is better to use private for variables and public for getter and setter methods.
5 years ago
Thanks Henry and Jeff now I got it.
5 years ago

.Now my query is that can Map accept duplicate keys that is ok ...but does it accept duplicate keys with duplicate values..can you advise me in which case the map throws the error if we play with Map...!!



Yes it accept duplicate keys with duplicate values.By definition, the put command replaces the previous value associated with the given key in the map.
5 years ago
Hi Darryl thanks for reply, But I couldn't get it, will you please explain it. Thanks
5 years ago
Local Inner class Cannot refer to a non-final variable inside an inner class defined in a method. Because A local variable, exists only during the method invocation. Means there scope is limited to that particular method. Now when I changed to it as final there scope also changes? Means local variables are stored on stack. and if I declared local variables as final now they are stored on Heap? What is the scope of final local variables?
5 years ago