tag:blogger.com,1999:blog-71747629825750526142024-03-08T23:34:16.538-08:00Aspiration LimitedThis blog is about technology, mainly Linux and Android. Mostly I shall share my own learning experience here. Tips and tricks, tutorials etc. I can't promise to be accurate here and welcomes all suggestions. I am getting these information from people and I am sharing it with you, so feel free to comment and spread this knowledge in rest of the world. Please experiment all advice on test systems, no guarantees :)Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.comBlogger45125tag:blogger.com,1999:blog-7174762982575052614.post-91307040466853326292015-08-02T09:55:00.001-07:002015-08-02T09:55:28.003-07:00Thanks<p dir="ltr">Thanks to everyone who've visited my blog and even with small number of major posts has helped it cross the 25k mark. Which is an achievement for me in spite of my idle period. I hope to restart where I left off earlier even though android has gone many miles further more. </p>
<p dir="ltr">Thanks again. </p>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com34tag:blogger.com,1999:blog-7174762982575052614.post-36005392836407088032015-07-13T20:52:00.001-07:002015-07-14T15:22:04.973-07:00An inspiring site for mobile development<p dir="ltr">Hi <u>all</u>. Just came across this site for mobile development. Please feel free to visit it for your app development <u>needs</u>. Here is the bio and link given by Mr. John Read.</p>
<p dir="ltr">"I am a research writer. My main interest is in <a href="http://www.cygnismedia.com/mobile-phone-application/">mobile phone app development</a>, but I also love to read & write about other technologies too. I like to share my knowledge, expertise, and experiences with different tech-communities on the web via social media platforms and tech blogs."</p>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com1tag:blogger.com,1999:blog-7174762982575052614.post-20456382685361611562015-04-01T19:36:00.001-07:002015-04-01T19:36:07.330-07:00Free rechargeWe all use data for our internet needs. There are few apps which you can use to earn Talktime as we'll.<div><br></div><div>I just discovered an app called mCent that gives free mobile airtime for trying apps on your phone. Give it a try. This app is on top for giving most rewards. Here is the link.<div><br></div><div>Https://MCent.com:443/app/?mcode=4AOGNI&tcx=OTHR</div><div><br></div><div>There is another app which is quite good in giving recharge.</div><div><br></div><div>Found an amazing app called Earn Talktime on Google Play with nearly 65 lakh users and 4.3 rating.</div><div>Earn unlimited free Talktime by simply downloading the app.</div><div>Click on http://8465982.earntalktime.com</div><div><br></div><div><br></div><div>Finally one more app which gives good compensation.</div><div><br></div><div>Http://ladooo.com/1472540066</div><div><br></div><div>Thanks</div><div>Ashish </div></div>Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com1tag:blogger.com,1999:blog-7174762982575052614.post-57912660469377298592014-09-11T08:10:00.001-07:002014-09-11T08:10:07.389-07:00Creating a new site on JavaThis would have the text on Java language SE unto EE.<div><br></div><div>Please wish me luck.</div><div><br></div><div>ashishkyadav.freehosts.club/JavaFriends</div>Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com1tag:blogger.com,1999:blog-7174762982575052614.post-47139885640294343402014-08-24T22:47:00.001-07:002014-08-24T22:48:22.919-07:00Nice blog on Android development<p dir="ltr">Found this nice blog in Android weekly newsletter</p>
<p dir="ltr">ptrprograms.blogspot.com.es</p>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com2Chhindwara,22.051035 78.93253tag:blogger.com,1999:blog-7174762982575052614.post-83721898688545876842014-08-22T01:22:00.001-07:002014-08-22T20:26:33.662-07:00Android runtime aka ART<p dir="ltr">Recentaly Android L had been in news a lot. There are many posts on net which describes the features coming in. The one which I like the most is android runtime or ART. Originally android uses dalvik runtime which converts the instructions at the time of running the app which had been a major reason of android being slow. In ART app code gets converted into executable ones and for ever. After that there is no conversion of code while running the app. This results in approximately 30% faster execution, hence a fast device and memory saving too. What few people know is that this feature is present in current kitkat version also. Only that its not the default setting. Goto settings, developer options, default runtime; and select ART and reboot the device. </p>
<p dir="ltr">It will take a while in upgrading apps. After that you will notice a faster device. Please keep in mind that at <u>present</u> some apps might not work properly. If that's a major issue you will need to revert back to dalvik runtime. At present I only had issue with one app which I can live with. Please also note that if you are not running kitkat you may have more issues or won't have the option of ART which depends on the version of Android you are running. </p>
<p dir="ltr">PS:<br>
a nice intro of ART</p>
<p dir="ltr">http://www.anandtech.com/show/8231/<u>a-closer-look-at-android-runtime-art-in-android-l</u></p>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com2Chhindwara,22.058296 78.93054tag:blogger.com,1999:blog-7174762982575052614.post-15693124969154073572014-08-20T16:27:00.001-07:002014-08-20T16:27:22.686-07:00Best e-reader on Android<p dir="ltr">Look no further, moon+ reader pro is the best. What's more is that currently you can get it for 50 percent off. So if you are looking for reader for your pdf and epub files grab it from Google play store. </p>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com8Chhindwara, Chhindwara22.057438 78.93817tag:blogger.com,1999:blog-7174762982575052614.post-50779840996306138782014-08-17T23:16:00.001-07:002014-08-17T23:20:38.497-07:00Android development with Java<p dir="ltr">Here is a nice introduction of how to develop android apps using Java</p>
<p dir="ltr">Please copy paste the link given below. </p>
<p dir="ltr">www.linuxuser.co.uk/tutorials/<u>android-development-with-java</u></p>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com0tag:blogger.com,1999:blog-7174762982575052614.post-67689429612711658482014-08-16T00:09:00.000-07:002014-08-16T00:09:38.458-07:00Keyboards on Android<div dir="ltr" style="text-align: left;" trbidi="on">
Hi All<br />
<br />
I am currently being able to write this post using keyboard that comes with Keepass2Android, which is smallest still typable keyboard on android. Other keyboards take up too much space.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNJDv-_oePL2AWbDrMS30DUXoLor_HBJDRSEGeB8w-MsKytIvXctgbQGFrEMuff75FaGVwXiC3k_ji2YyQITVK15A3pO1nQhyphenhyphen2W1IlE5OdzTiPtFqcOd1qJNlVSEWFgJjseSOlUCABCCVN/s1600/Screenshot_2014-08-16-12-33-54.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNJDv-_oePL2AWbDrMS30DUXoLor_HBJDRSEGeB8w-MsKytIvXctgbQGFrEMuff75FaGVwXiC3k_ji2YyQITVK15A3pO1nQhyphenhyphen2W1IlE5OdzTiPtFqcOd1qJNlVSEWFgJjseSOlUCABCCVN/s1600/Screenshot_2014-08-16-12-33-54.png" height="187" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com0tag:blogger.com,1999:blog-7174762982575052614.post-84534416755238623502014-08-15T23:58:00.000-07:002014-08-17T21:50:47.133-07:00C, C++, Java programming on Android<div dir="ltr" style="text-align: left;" trbidi="on">
Hello folks, recently I've been trying to do some programming on my tablet galaxy tab 2. For that I installed couple of apps whose list I am presenting here for those who are looking to learn programming on tablet.<br>
<br>
1. AIDE<br>
For android and Java programming look no further. You can also pay to get guided tutorials. Excellent app, free for expert coding.<br>
<br>
2. CPPDROID<br>
For C, C++ programming on your tablet. Excellent source editor; write, save, compile. Its as easy as one two three. Unfortunately it's better to pay and get rid of ads to reclaim screen estate. Along with that I use terminalide keyboard which itself is great app for programming but lacks smoothness of CPPDROID. This app also has nice tutorials and examples.<br>
<br>
Other app worth mentioning are SAND ide, DroidEdit and SourceReader. Please look for them on Google play. Hope this helps. Thanks for stopping by n reading.</div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com0tag:blogger.com,1999:blog-7174762982575052614.post-40929313124532031732014-08-08T17:12:00.000-07:002014-08-08T17:12:06.144-07:00Best android apps lIst<div dir="ltr" style="text-align: left;" trbidi="on">
<a href="https://androidniche.wordpress.com/2014/08/09/best-android-apps-list/" target="_blank">https://androidniche.wordpress.com/2014/08/09/best-android-apps-list/</a></div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com0tag:blogger.com,1999:blog-7174762982575052614.post-558744716414457222014-08-05T23:44:00.000-07:002014-08-06T00:04:02.151-07:00Legendary Indian cartoonist Pran passes away<div dir="ltr" style="text-align: left;" trbidi="on">
His greatness was in his simplicity not sophistication or elaboration. May his soul rest in peace.<br />
<br />
http://m.jagran.com/news/Homevishesh-11535638.html<br />
<br />
http://www.ndtv.com/article/india/cartoonist-pran-creator-of-chacha-chaudhary-dies-571434?site=classic</div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com0tag:blogger.com,1999:blog-7174762982575052614.post-64340861466590626752013-10-30T22:14:00.003-07:002014-08-18T09:05:19.707-07:00Build essential package on Ubuntu <p dir="ltr">There had been lots of time during installation of packages on Ubuntu or other derivatives of it, when I used to install development packages separately. Like gcc g++ etc individually. However the is a easier way to do it. Just install "build-essential" package and this meta package will install those quintessential packages for you. No need to separately select and install those packages anymore. </p>
<p dir="ltr">Thanks. </p>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com0tag:blogger.com,1999:blog-7174762982575052614.post-23009387442330104262013-10-30T22:14:00.001-07:002013-10-30T22:14:35.619-07:00Clear data in your Android device before going for reinstall<p dir="ltr">Hi, </p>
<p dir="ltr">I used to have this phenomenon that I reinstall line after I take a backup change ROM and restore. Line always used to misbehave after restore and I used to reinstall it. Later I learned that a cleanup of data in settings is almost as good as reinstall and it saves time if app is a huge one. </p>
<p dir="ltr">Try it out next time if any of your app misbehave. </p>
<p dir="ltr">Thanks </p>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com0tag:blogger.com,1999:blog-7174762982575052614.post-36806769149332585792013-05-06T09:09:00.000-07:002013-05-06T23:55:25.390-07:00Appeal : Help Required for Anvi's Bone Marrow Transplant<div dir="ltr" style="text-align: left;" trbidi="on">
Dear All,<br />
<br />
Today I receive this mail from <a href="http://ashish-yadav.blogspot.com/2012/12/please-help-anvi-fifteen-year-old.html" target="_blank">Anvi</a>'s mom , she needs approximately INR. 21,
30,000.<br />
<br />
Please spread the word.<br />
<br />
Here is the original mail.<br />
<br />
<a name='more'></a><br />
<br />
<h3>
<span style="color: #00681c;"> <b>Ruchita Pednekar</b> </span></h3>
ruchitapednekar [ at] gmail [dot] com<br />
<br />
<br />
Dear All,<br />
We are sorry…..this delayed update is a result of phases that we went
through during the past 2 month stay in Bangalore for Anvi’s transplant. And
since then we have been going through different phases of life and facing all
sorts of challenges. The day we admitted Anvi at Narayana Hrudayala
Hospital for her pre transplant check up, she was directly shifted to ICU
because of an active respiratory infection. Following a complication in a
procedure she was put on ventilator for 3 days. During our stay in
hospital she went through lot of procedures and many blood tests. After
fighting all odds and several phases of hard time, by god’s grace, doctor’s
efforts and prayers of our family and well wishers, Anvi has come out strong
and with the will power to fight it out and begin a new life.<br />
And now when Anvi is doing well and according to the doctors in best of her
health for the Bone Marrow Transplant, new challenge arises. The perfect match
donor from USA for Anvi, for which we have been informed that importing the
bone marrow donor cells from USA will cost $ 38,715 i.e. approximately INR. 21,
30,000. It came as a shock to us as we were not aware of this fact earlier.
Also Anvi was scheduled to be admitted today for her transplant but our budget
planning has been critically disturbed by this new update and hence the
transplant procedure has been paused till we find a way out to accumulate the
required funds. As per new calculations the total budget is approximate 34
lakhs and we would need 20 lakh more to complete the transplant. An appeal to
you all to help us raise these funds by broadcasting this in your friends
group. Will be thankful to you all if you could pass this on to whoever is
interested in helping us in any form. We know that there are so many people who
have been kind and helped us monetarily to accumulate a huge amount but we
still require your help to raise the required funds and sincerely looking
forward to everyone’s help, prayers and blessing for Anvi …….<br />
P.S : We have attached the invoice which we have received from NMDP USA for
transporting the donor’s cell to India. Also we have already spent Rs. 7 lakhs
for Anvi’s treatment out of which Rs 2.9 lakhs were sent to USA as donor’s
search management and infection control test fees. And the rest amount is spent
on Anvi’s hospitalization, several test and medications. Now Anvi is being
treated under medical supervision of Dr. Sharat Damodar MD, DNB, DM Consultant
Haematologist and Head of Bone marrow transplant unit and Dr. Shobha Badiger
MD, Consultant Pediatric Oncologist at <a href="https://www.google.com/url?q=https%3A%2F%2Fwww.facebook.com%2Fpages%2FNarayana-Hrudayalaya-Woman-Child-Institute%2F168668436520196%3Fref%3Dstream&sa=D&sntz=1&usg=AFQjCNFeRVGM6-daHVdxD4zHbOYadvWMVQ" target="_blank">Narayana Hrudayalaya Woman & Child Institute</a> Bangalore.
If you have any doubts please feel free to ask us, also doctor's nubers can be
shared for authentication, we are so thankful for all the support we have
received till date, all this is possible only because of your help.<br />
Here is how you can help :<br />
Name of
the account holder- Ruchita Pednekar<br />
Account number - 06660060000059<br />
Bank - Kotak Mahindra bank <br />
Branch - Opera House, Mumbai - 400004<br />
IFSC code - KKBK0000666<br />
Regards,<br />
Rupesh & Ruchita Pednekar<br />
7795839199 / 9768971719<br />
<br />
<br />
<a href="http://www.mediafire.com/view/?n46sef336aa1pwe" target="_blank">India-Narayan Hrudayalaya - Invoice</a><br />
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com4tag:blogger.com,1999:blog-7174762982575052614.post-10277278794273089252013-04-02T05:41:00.000-07:002013-04-02T05:41:01.096-07:00 KDE 4.10 Applications Get Major Overhaul<div dir="ltr" style="text-align: left;" trbidi="on">
KDE 4.10 delivers a long list of application upgrades for this release which cannot be overlooked. There are some new applications available and loads of fun features, meaning more fun for KDE lovers everywhere. Here is a closer look at all the latest excitement that you have all been waiting for.<br />
<br />
<a href="http://linuxlibrary.org/kde-4-10-applications-major-overhaul/" target="_blank">http://linuxlibrary.org/kde-4-10-applications-major-overhaul/</a></div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com8tag:blogger.com,1999:blog-7174762982575052614.post-32023260766696267332013-03-04T23:29:00.000-08:002013-03-04T23:29:15.255-08:00What's new in Intelij IDEA 12<div dir="ltr" style="text-align: left;" trbidi="on">
Recently when I checked update for Intellij IDEA I found that new version of ide has been released. Check the link below to see new features:<br />
<br />
http://www.jetbrains.com/idea/whatsnew/<br />
<br />
What I noticed is that Android support has been improved. With update to Android 4.2, IDEA 11 was no longer working with SDK, which is working now.</div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com5tag:blogger.com,1999:blog-7174762982575052614.post-55516972181831487342013-02-27T21:14:00.000-08:002013-02-27T21:14:14.574-08:00Connecting internet with tata docomo on Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
Here is a small post for those who still likes or are bound to use wvdial to connect to Internet.<br />
<br />
I have a Tata Docomo sim with huawei e173 usb modem.Following is my /etc/wvdial.conf on Ubuntu 10.4.<br />
<br />
<br />
[Dialer Defaults]<br />Init1 = ATZ<br />Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0<br />Password = internet<br />Phone = *99#<br />Modem Type = Analog Modem<br />Stupid Mode = 1<br />Init3 = AT+CGDCONT=1, "IP", "TATA.DOCOMO.INTERNETHVC"<br />Baud = 9600<br />New PPPD = yes<br />Modem = /dev/ttyUSB_utps_modem<br />ISDN = 0<br />Username = internet<br />Auto Reconnect = yes<br />
<br />
Though officially (at the time of writing this) only Tata Docomo dongles are supported, and most probably you will get this reply from CC. Still a helpful soul at CC sms'd me this line<br />
<br />
AT+CGDCONT=1, "IP", "TATA.DOCOMO.INTERNETHVC<br />
<br />
rest is from other sources from Internet and auto generated. A good way is to run wvdialconf and then try to add the missing lines from above, rather than copy pasting whole file.<br />
<br />
Hope that helps.</div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com4tag:blogger.com,1999:blog-7174762982575052614.post-72273324651183249052012-12-03T08:13:00.001-08:002012-12-03T20:38:08.165-08:00Please help Anvi fifteen months old<div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
This post is to support the cause of treatment of Anvi. She is fifteen months old from Mumbai and she needs a life saving bone marrow transplant operation. Please read more about her here:<br />
<br />
Please spread the word more and more to support her treatment. You could be a part of saving the life of this fifteen month child.<br />
<br />
<a href="http://www.ndtv.com/article/cities/mumbai-couple-struggle-to-save-their-daughter-here-s-how-you-can-help-300360?fb" target="_blank">http://www.ndtv.com/article/cities/mumbai-couple-struggle-to-save-their-daughter-here-s-how-you-can-help-300360?fb</a></div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com4tag:blogger.com,1999:blog-7174762982575052614.post-16545477281535266642012-11-24T00:40:00.002-08:002012-11-24T00:40:28.923-08:00Calling system applications in Android<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
In my previous posts I have used reading contacts through API calls, however there is an easy method for doing standard tasks by calling system's pre installed apps. In this post I am going to cover the details of how we can call the system apps through intents.<br />
<br />
<br />
We are going to create a spinner control for providing the user some options and hit a submit button.<br />
<br />
Here's main.xml which defines the UI.<br />
<br /></div>
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjRbkG_cdpQARfCnrnMOJqMLfILPSPvFsKP8F_WYYRbwvBljlUFtrEuECdUSBwFCmrVf4arGC3N19ny22EPV1jeRA4hWoh5O5qZhwGeFoibD1YasB1C4bT9acJC9qCwYSlFgPX3K84PcFW/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Spinner
android:id="@+id/spinner1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:entries="@array/application_array"
android:prompt="@string/app_prompt" />
<Button
android:id="@+id/btnSubmit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Submit"
android:onClick="btnSubmitOnClick"/>
</LinearLayout>
</code></pre>
<br />
<br />
Spinner control requires a string array (application_array) for it's entries which is defined in strings.xml.<br />
<br /></div>
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjRbkG_cdpQARfCnrnMOJqMLfILPSPvFsKP8F_WYYRbwvBljlUFtrEuECdUSBwFCmrVf4arGC3N19ny22EPV1jeRA4hWoh5O5qZhwGeFoibD1YasB1C4bT9acJC9qCwYSlFgPX3K84PcFW/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> <?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">callingsystemapps</string>
<string name="app_prompt">Choose a application</string>
<string-array name="application_array">
<item>Browser</item>
<item>Dialler</item>
<item>Map</item>
<item>Contacts</item>
</string-array>
</resources>
</code></pre>
<br />
<br />
In main.xml we have also have defined onClick method btnSubmitOnClick which is defined in MyActivity.java<br />
<br /></div>
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjRbkG_cdpQARfCnrnMOJqMLfILPSPvFsKP8F_WYYRbwvBljlUFtrEuECdUSBwFCmrVf4arGC3N19ny22EPV1jeRA4hWoh5O5qZhwGeFoibD1YasB1C4bT9acJC9qCwYSlFgPX3K84PcFW/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> public void btnSubmitOnClick (View v)
{
Spinner spinner1 = (Spinner) findViewById(R.id.spinner1);
if (spinner1.getSelectedItem().toString().equals("Browser")){
Intent i = new
Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://www.google.com"));
startActivity(i);
}
else if (spinner1.getSelectedItem().toString().equals("Dialler")){
Intent i = new
Intent(android.content.Intent.ACTION_DIAL);
startActivity(i);
}
else if (spinner1.getSelectedItem().toString().equals("Map")) {
Intent i = new
Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("geo:37.827500,-122.481670"));
startActivity(i);
}
else if (spinner1.getSelectedItem().toString().equals("Contacts")) {
Intent i = new
Intent(android.content.Intent.ACTION_PICK);
i.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE);
startActivity(i);
}
</code></pre>
<br />
<br />
Only difference between the four is the passing intent which is as below:<br />
<br />
<pre style="background-color: #f0f0f0; border: 1px dashed rgb(204, 204, 204); font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 646.4666748046875px;"><code style="word-wrap: normal;">ACTION_VIEW</code></pre>
<pre style="background-color: #f0f0f0; border: 1px dashed rgb(204, 204, 204); font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 646.4666748046875px;"><code style="word-wrap: normal;">ACTION_DIAL</code></pre>
<pre style="background-color: #f0f0f0; border: 1px dashed rgb(204, 204, 204); font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 646.4666748046875px;"><code style="word-wrap: normal;">ACTION_PICK</code></pre>
<br />
<br />
Along with that we are passing parameters depending upon intent type. After that it's just calling startActivity on the intent.<br />
<br />
Try running the example and you shall get like this.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9FbX1IaAvEowQt2Ix-Mp_koCI8bOejmzkmhlthvcAHainUkB5LMFyZSFzlXWAcVQcOeREaskTeKqqtTKssQZrsp3kfT6yBR62XnywrOVHZlI-rgzLfpQyzaPEuhQvFwwg_sSSjUx-1UJF/s1600/Screenshot+-+Saturday+24+November+2012+-+02%253A05%253A21++IST.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="291" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9FbX1IaAvEowQt2Ix-Mp_koCI8bOejmzkmhlthvcAHainUkB5LMFyZSFzlXWAcVQcOeREaskTeKqqtTKssQZrsp3kfT6yBR62XnywrOVHZlI-rgzLfpQyzaPEuhQvFwwg_sSSjUx-1UJF/s320/Screenshot+-+Saturday+24+November+2012+-+02%253A05%253A21++IST.png" width="320" /></a></div>
<br />
<br />
Thanks for reading, don't forget to check links page for resources.</div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com10tag:blogger.com,1999:blog-7174762982575052614.post-43098358431898913652012-11-21T02:03:00.002-08:002012-11-21T22:54:25.266-08:00getActionBar and targetSdkVersion in Android development<div dir="ltr" style="text-align: left;" trbidi="on">
<div xmlns="http://www.w3.org/1999/xhtml">
Hi All,<br />
<br />
Recently I was trying to reiterate Android docs training just to fill in anything I missed previously. There I came across this piece of code:<br />
<br />
<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjRbkG_cdpQARfCnrnMOJqMLfILPSPvFsKP8F_WYYRbwvBljlUFtrEuECdUSBwFCmrVf4arGC3N19ny22EPV1jeRA4hWoh5O5qZhwGeFoibD1YasB1C4bT9acJC9qCwYSlFgPX3K84PcFW/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> // Initialize member TextView so we can manipulate it later
mTextView = (TextView) findViewById(R.id.edit_message);
// Make sure we're running on Honeycomb or higher to use ActionBar APIs
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
// For the main activity, make sure the app icon in the action bar
// does not behave as a button
ActionBar actionBar = getActionBar();
actionBar.setHomeButtonEnabled(false);
}
</code></pre>
<br />
<br />
I tried to put that in a simple hello world example and it worked on an 2.2 emulator, however it failed to run on 4.0 emulator. On debugging it turned out that getActionBar was returning null value. Though there was on-line help available for some other directions it just came to my mind to check AndroidManifest.xml file. There I saw only "android:minSdkVersion="8"" I remembered that there was a target SDK as well which can be defined. So I checked a project created by eclipse and found the "android:targetSdkVersion="15"" line and added it to "uses-sdk " tag in AndroidManifest.xml and the app started working on 4.0 emulator.<br />
<br />
This clears two things, first is that Idea IDE adds only minSDKVersion while eclipse adds targetSDKVersion as well. Which is reflected in new project also but could effect like this.<br />
<br />
Second, if you search for getActionBar returning null you get loads of advice but maybe not this. So check if you are having this issue.<br />
<br />
Thanks for reading. Thanks for Android guys for creating such a good documentation, which by and large so much better than Facebook developer docs. Only wish Facebook docs were also as clear as the Android docs.<br />
<br />
<div class="zemanta-pixie">
<img alt="" class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=eaae51f6-e3ef-8839-bca2-e16293258bcd" /></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com11tag:blogger.com,1999:blog-7174762982575052614.post-29058091208930604862012-11-20T00:00:00.001-08:002012-11-20T00:00:44.622-08:00Quick tips for improving Java apps performance<div xmlns='http://www.w3.org/1999/xhtml'>"Ever had performance problems? Yeah me too. If my manager screams <br/>“faaaaster” one more time, i will have hearing impairment for the rest <br/>of my life. BTW, did i sense a German pronunciation in all that noise?"<br/><br/><a href='http://www.javacodegeeks.com/2011/09/quick-tips-for-improving-java-apps.html' target='_blank'>http://www.javacodegeeks.com/2011/09/quick-tips-for-improving-java-apps.html</a><br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=464328e3-25ee-8715-8790-831d4cda39f3' alt='' class='zemanta-pixie-img'/></div></div>Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com4tag:blogger.com,1999:blog-7174762982575052614.post-575640077350362492012-11-18T22:59:00.000-08:002012-11-18T22:59:05.409-08:00Nexus 4 unboxing and first impressions<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #333333; font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 23px;">Google’s newest flagship handset, the LG Nexus, 4 is finally upon us. The highly anticipated stock Android smartphone features some of the highest-end specs of any phone currently on the market, but does it manage to satisfy? Stay tuned for a complete review. However, in the meantime, be sure to catch our unboxing and first impressions below.</span><br />
<span style="background-color: white; color: #333333; font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 23px;"><br /></span>
<a href="http://supertechblog.com/2012/11/17/nexus-4-unboxing-and-first-impressions/" target="_blank">http://supertechblog.com/2012/11/17/nexus-4-unboxing-and-first-impressions/</a></div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com2tag:blogger.com,1999:blog-7174762982575052614.post-91535935820321120602012-11-17T04:39:00.001-08:002012-11-17T04:39:59.402-08:00Capture the output of var_dump in a string<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h2 style="background-color: #f4f4e2; background-image: url(http://softkube.com/wp-content/themes/SOFTKUBE/css/images/lines_bg.gif); background-position: 0% 100%; background-repeat: repeat no-repeat; border: 0px; color: #404135; font-family: Arial, Helvetica, sans-serif; font-size: 24px; font-weight: normal; line-height: 30px; margin: 7px 0px 10px; outline: 0px; padding: 2px 0px 10px; vertical-align: baseline; width: 580px;">
Introduction</h2>
<div style="background-color: #f4f4e2; border: 0px; color: #3e3e3e; font-family: Verdana, sans-serif; font-size: 12px; line-height: 1.8em; outline: 0px; padding: 0px 0px 20px; vertical-align: baseline;">
You are programming in PHP and you have an array variable that you’d like to explore at different execution paths. Of course, the best way is to use a PHP debugger like <a href="http://xdebug.org/" style="border: 0px; color: #0e9bcf; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">xdebug</a> or <a href="http://www.zend.com/en/community/pdt" style="border: 0px; color: #0e9bcf; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">Zend Debugger</a>, but, what happens when you’re too lazy to install a debugger? What happens when you don’t want or can’t install a debugger and you just need to check the content of that array by dumping it in your log file? Well, you might think you’re stuck, but, read on…</div>
<div style="background-color: #f4f4e2; border: 0px; color: #3e3e3e; font-family: Verdana, sans-serif; font-size: 12px; line-height: 1.8em; outline: 0px; padding: 0px 0px 20px; vertical-align: baseline;">
<br /></div>
<div style="background-color: #f4f4e2; border: 0px; outline: 0px; padding: 0px 0px 20px; vertical-align: baseline;">
<span style="color: #3e3e3e; font-family: Verdana, sans-serif;"><span style="font-size: 12px; line-height: 21.600000381469727px;"><a href="http://softkube.com/blog/capture-the-output-of-var_dump-in-a-string/" target="_blank">http://softkube.com/blog/capture-the-output-of-var_dump-in-a-string/</a></span></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com3tag:blogger.com,1999:blog-7174762982575052614.post-81696308084459290072012-11-08T21:26:00.000-08:002012-11-08T21:29:16.446-08:00How to change look & feel of NetBeans IDE and application<div dir="ltr" style="text-align: left;" trbidi="on">
Standard GUI toolkit of Java is Swing. NetBeans IDE and Platform is written in Swing. It's widely used and accepted. It's cross-platform and it's doesn't look very well under (GTK+) Linux.<br />
<br />
Read more here:<br />
<br />
<a href="http://devblog.virtage.com/2011/09/how-to-change-look-feel-of-netbeans-ide-and-application/" target="_blank">http://devblog.virtage.com/2011/09/how-to-change-look-feel-of-netbeans-ide-and-application/</a></div>
Anonymoushttp://www.blogger.com/profile/02755350788573885791noreply@blogger.com7