Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #3K
~3K People Reached
Favorite Tags
Member Avatar for leon.lashway

I have learned a few programming languages and am now in the beginning stages of teaching myself C with "C Programming, Second Edition for the absolute beginner". I'm enjoying the book but have run into some difficulties in the second chapter exercies. The exercise states as follows: Create a program …

Member Avatar for deceptikon
0
429
Member Avatar for *sharath*

Does any one have any idea of creating a custom component like the below image instead of using the image itself. I know how to create a rectangle (a rounded one using the xml and not in java) which was discussed in the most of the links but i am …

Member Avatar for *sharath*
0
216
Member Avatar for *sharath*

I am trying to dynamically resize an image which is in the relative layout using the code int height = v.getHeight(); int width = v.getWidth(); height += 50; width += 50; RelativeLayout.LayoutParams layout = new RelativeLayout.LayoutParams(height, width); layout.setMargins(200, 200, 200, 200); layout.addRule(RelativeLayout.CENTER_IN_PARENT); v.setLayoutParams(layout); The rule works perfectly. The image gets …

0
84
Member Avatar for manishanibhwani

int n; scanf("%d\n", &n); printf("you typed %d\n", n); it seems to hang until I type one extra line of input....Can anyone explain this behaviour

Member Avatar for WaltP
0
174
Member Avatar for *sharath*

Can anyone give a simple example for GCM server and how to use it. Thanks in advance

Member Avatar for peter_budo
0
78
Member Avatar for *sharath*

I am using a json function to parse a link and return a json object. the code is below : public JSONObject getJSONFromUrl(String url) { // Making HTTP request try { // defaultHttpClient DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(url); Log.v("url", " " + url); HttpResponse httpResponse …

0
109
Member Avatar for *sharath*

i tried the code for GCM given in the link [Click Here](http://android.amolgupta.in/2012/07/google-cloud-messaging-gcm-tutorial.html#comment-form) Using this i am able to get the registration id for my application (i checked on the device and found it got printed onto the textview that i set). But now how can i check for the receiving …

0
69
Member Avatar for *sharath*

I am using sax parser in android and i am displaying the content parsed into a custom list view which even contains an image. The image is loading very slowly and thereby my list which contains 10 elements are displayed after few minutes and even if the list loads to …

Member Avatar for *sharath*
0
153
Member Avatar for *sharath*

I am trying to look into localization in android. I tried working with ttf files. But now i am having a doubt. If the data is not static say i am having a edit text and a button and the user will enter some text in english and click on …

Member Avatar for *sharath*
0
110
Member Avatar for *sharath*

Does the number of classes show any impact on the speed of an application? For example if there are more number of classes (or packages) does it make the application to run slow compared to the one that has less number of classes (or packages)? Thanks in advance.

Member Avatar for *sharath*
0
121
Member Avatar for *sharath*

can i know how can we use a double touch on tabs in android. I found that onclicklistener and onlongclicklistener are not working for tabs. so now am in need of a double touch on tabs. Thanks in advance.

Member Avatar for *sharath*
0
153
Member Avatar for I_m_rude

hi, int a[][2]={1,2,3,4}; int *p[]={(int*)a,(int*)a+1, (int*)a+2}; for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d ",*(*(p+i)+j)); Firstly, This is part of any code. And i want to ask that in *p[] definition, why it is written (int*) with every element since a is already an pointer. Secondly, when I am accessing *(*(p+1)+1) element in loop, then …

Member Avatar for I_m_rude
0
121
Member Avatar for *sharath*

i am using the following code to get the latitude and longitude values of a particular area. public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); List<Address> foundGeocode = null; /* find the addresses by using getFromLocationName() method with the given address*/ try { foundGeocode …

Member Avatar for *sharath*
0
87
Member Avatar for *sharath*

I am having a video running. and when i pause the video and click on capture button the screen should be captured. how can this be done? i tried the following code to capture but its taking a blank picture. View v1 = myVideoView.getRootView(); System.out.println("Root View : "+v1); v1.setDrawingCacheEnabled(true); Bitmap …

Member Avatar for *sharath*
0
99
Member Avatar for *sharath*

can anyone explain this lines please. private ArrayList<View> history; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.history = new ArrayList<View>(); group = this; View view = getLocalActivityManager().startActivity("Sales", new Intent(this, SalesRouteActivity.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)) .getDecorView(); replaceView(view); } public void replaceView(View v) { history.add(v); setContentView(v); } what does the line View view = getLocalActivityManager().startActivity("Sales", new …

Member Avatar for peter_budo
0
110
Member Avatar for *sharath*

can anyone help me out in displaying a calender. I tried out using date and time picker. But i need a way to make the user click a button and on the click of it a calender gets displayed. Any help would be appreciatable. Thanks in advance.

Member Avatar for peter_budo
0
128
Member Avatar for aasi007onfire

in our college we have a repeated C aptitude question... which goes like this.... [code] int i=5 printf("%d %d %d", i--,i,i++) [/code] and the answer given to us was 5,6,5.... when asked it was said that the compiler evaluates printf from right to left...... can somebody throw some light on …

Member Avatar for deceptikon
0
273
Member Avatar for *sharath*

can anyone help me in providing a way to zoom an image with a zoom in and zoom out button. I tried using webViews but i want the zooming to be done in any other way. I also checked the code for zooming touching the screen but it didnt help …

Member Avatar for *sharath*
0
141
Member Avatar for *sharath*

am having a check box in my launcher activity. i need to enable it so that it helps in performing some action using a broadcast receiver. its working fine until and unless i use the back button to navigate back. but now i need to save the state of the …

0
110
Member Avatar for *sharath*

hi all.[ I am new to android programming and i got struck when i am trying to work with speech recognizer. i tried this tutorial and it worked fine ](http://www.jameselsey.co.uk/blogs/techblog/android-how-to-implement-voice-recognition-a-nice-easy-tutorial/) but now i want speech recognition to be done as and when i enter the oncreate().i dont want any button …

0
82