[android-developers] HI ALL
Hi all now i am implementing Website design. this is my website http://www.retigence.com Can you please give me feed back how its looking... And also give me the some tips to increase the google page ranking Thanking you, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to save application data in SD card/External storage device
in your AndroidManifest.xml gile change the location. android:installLocation="preferExternal" On Fri, Feb 10, 2012 at 2:49 PM, srinivasa reddy < srinivasa.andr...@gmail.com> wrote: > Hi, > > I want my application shall be installed in phone memory and the data > which i am storing through this application shall be in External storage > device. Please help me to solve this problem. > > BR, > Srinivasa > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to draw a line around text when pressed.......
hi all... i am implementing video downloading when press the text. its working fine. but i want user interface feeling.. when press text draw line around textplease help me.. thanks in advance.. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] animation for splash screen
hii all i am implementing splash screen for my app. i just implement display sometime and go to next activity. but i want to show any animation show my activity/ please give me idea how to do that. thanking you.. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to filt image into image button.
String myFileUrl =new URL(" http://i778.photobucket.com/albums/yy65/amyjayne10/Flowers/6d2b25051.gif";); try { HttpURLConnection conn= (HttpURLConnection)myFileUrl.openConnection(); conn.setDoInput(true); conn.connect(); int length = conn.getContentLength(); int[] bitmapData =new int[length]; byte[] bitmapData2 =new byte[length]; InputStream is = conn.getInputStream(); Bitmap bmImg = BitmapFactory.decodeStream(is); myButton.setImageBitmap(bmImg); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } this is my sample code On Fri, Jan 27, 2012 at 10:58 AM, aparna rani wrote: > hiii all > > i am implementing image button in android. problem is my image button area > is small but my image is larger than the screen. i am taking image from > URL. I know only one method resize image and fit into the image button. Is > there any other solution for thisplease help me > > thanks in advance > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to filt image into image button.
hiii all i am implementing image button in android. problem is my image button area is small but my image is larger than the screen. i am taking image from URL. I know only one method resize image and fit into the image button. Is there any other solution for thisplease help me thanks in advance -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Disabled EditText is not working properly...?
hi u can try this may helps edittext.setEnabled(false); edittext.setFocusableInTouchMode(false); On Wed, Jan 25, 2012 at 1:16 PM, Ratheesh Valamchuzhy wrote: > u can use visibility property in java code > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] help on uploading image to server
hii http://blog.sptechnolab.com/2011/03/09/android/android-upload-image-to-server/ i think this url helps.. On Wed, Jan 25, 2012 at 11:52 AM, chowdary nani wrote: > Hi all, > I am trying to upload image to php server but it is not up loading > here is my following code > public class ImageUpload extends Activity { > Bitmap bm; > > /** Called when the activity is first created. */ > > @Override > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > setContentView(R.layout.main); > > try { > > bm = BitmapFactory.decodeResource(getResources(), > R.drawable.icon); > > // bm = BitmapFactory.decodeFile("/sdcard/DCIM/forest.png"); > > executeMultipartPost(); > > } catch (Exception e) { > > Log.e(e.getClass().getName(), e.getMessage()); > > } > > } > > public void executeMultipartPost() throws Exception { > > try { > > ByteArrayOutputStream bos = new ByteArrayOutputStream(); > > bm.compress(CompressFormat.JPEG, 75, bos); > > byte[] data = bos.toByteArray(); > > HttpClient httpClient = new DefaultHttpClient(); > > HttpPost postRequest = new HttpPost( > > "http://ncpo.cc/android/uploadbespokecase.php";); > > // ByteArrayBody bab = new ByteArrayBody(data, "icon.jpg"); > > File file = new File("/sdcard/FB_loginnew.png"); > > FileBody bin = new FileBody(file); > > MultipartEntity reqEntity = new MultipartEntity( > > HttpMultipartMode.BROWSER_COMPATIBLE); > > reqEntity.addPart("uploaded", bin); > > reqEntity.addPart("photoCaption", new StringBody("sfsdfsdf")); > > postRequest.setEntity(reqEntity); > > HttpResponse response = httpClient.execute(postRequest); > > BufferedReader reader = new BufferedReader(new > InputStreamReader( > > response.getEntity().getContent(), "UTF-8")); > > String sResponse; > > StringBuilder s = new StringBuilder(); > > while ((sResponse = reader.readLine()) != null) { > > s = s.append(sResponse); > > } > > System.out.println("Response: " + s); > Log.d("Image up load", "Response " + s); > bm.recycle(); > > } catch (Exception e) { > > // handle exception here > > Log.e(e.getClass().getName(), e.getMessage()); > > } > > } > > } > Please any one help me . > i am un able to find the errror. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to connect using HttpClent
hii all. i am trying to connect to my database using url connection is working fine.but i am using httpclient its not working. my URL is *http://122.166.229.173:8080/indela/ServletDataBase* in server side i wrote program in servelets. this code is corking fine. getting results also. *URL url = new URL(FETCH_FRIEND_UPDATES_URI);* *URLConnection connection = url.openConnection();* *connection.setDoInput(true);* *connection.setDoOutput(true);* *connection.setUseCaches(false);* *connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");* *DataInputStream dataIn = new DataInputStream(connection.getInputStream());* *String inputLine;* *String result="";* *while ((inputLine = dataIn.readLine()) != null) {* *result += inputLine;* *}* *dataIn.close();* ** this code is not getting results. * * * HttpEntity entity = null; entity = new UrlEncodedFormEntity(params); final HttpPost post = new HttpPost(FETCH_FRIEND_UPDATES_URI); post.addHeader(entity.getContentType()); post.setEntity(entity); maybeCreateHttpClient(); final HttpResponse resp = mHttpClient.execute(post); final String response = EntityUtils.toString(resp.getEntity()); public static void maybeCreateHttpClient() { if (mHttpClient == null) { mHttpClient = new DefaultHttpClient(); final HttpParams params = mHttpClient.getParams(); HttpConnectionParams.setConnectionTimeout(params, REGISTRATION_TIMEOUT); HttpConnectionParams.setSoTimeout(params, REGISTRATION_TIMEOUT); ConnManagerParams.setTimeout(params, REGISTRATION_TIMEOUT); } } actually i my application i need to pass some parameters to the server side table because whereClause . please give me some code to connect to my url. thanks in advance. * -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to implement sync using Funambol
hiii i am implementing android application. In that i nee ti sync the mobile database and online server. i searched in google but i found using Funambol is possible. but i don't know start please give me some sample code for synchronization. thank you in advance -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to implement sync mobile data base and online mysql server
hi I am developing android app. How to implement sync between mobile database and online mysql server. please give me some example code for sync. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to implement edittext inside listview
specifying the static in the code On Wed, Sep 21, 2011 at 6:36 PM, Ratheesh Valamchuzhy wrote: > Are you dynamically increasing the rows or specifying it static in the > code > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to implement edittext inside listview
ya but increase the more no. of rows then it is not getting the data from edittext. the means increase up to to 12 row, On Wed, Sep 21, 2011 at 6:13 PM, Ratheesh Valamchuzhy wrote: > > Hi > > As per your code there is 5 tedittext in you app .. > > we can get the values of each edittext(5 nos) in that pgm... > see the code ... > === > > public View getView(final int position, View convertView, ViewGroup parent) > > { > ViewHolder holder; > if (convertView == null) > { > convertView = mInflater.inflate(R.layout.adaptor_content, null); > holder = new ViewHolder(); > holder.textLine = (TextView) convertView.findViewById(R.id.textLine); > holder.textLine2 =(TextView) convertView.findViewById(R.id.textLine2); > holder.Edittext = (EditText) convertView.findViewById(R.id.edittext_qty); > editTextList.add(holder.Edittext); > convertView.setOnClickListener(new OnClickListener() > { > private int pos = position; > @Override > public void onClick(View v) > { > > String q=editTextList.get(position).getText().toString(); > Toast.makeText(context, "data-"+ q, Toast.LENGTH_SHORT).show(); > > } > }); > convertView.setTag(holder); > } > else > { > holder = (ViewHolder) convertView.getTag(); > } > holder.textLine.setText(TitleString[position] + String.valueOf(position)); > holder.textLine2.setText(DetailString[position] + > String.valueOf(position)); > return convertView; > } > = > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to implement edittext inside listview
in each row...its take the values from how many rows display in a screen at app launched only. and remaining below screen its nit getting the values from edittext box. On Wed, Sep 21, 2011 at 4:50 PM, Ratheesh Valamchuzhy wrote: > Hi. > > please clear the question. > > i am implement listview and each view *(or row).* > having editlist box. > > problem when i trying to get data from all editboxes its takes only first > screen view.(*means getting the value from the first row only ie index=0* > ) > here show only 5 views. when scrolling* g=i* get the problem. > please help me? > > ::: when clicking the ok button we get the value of edittext in all rows > ... > > > > public void onClick(View view) > { > for(int i=0;i { > String q=editTextList.get(i).getText().toString(); > Toast.makeText(CustomListViewDemo.this, "Value -" + q, > Toast.LENGTH_SHORT).show(); > Log.v(" indela","indela"); > } > } > }); > > > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Getting data from EditText failed why.
thank you its working fine. On Sat, Aug 27, 2011 at 2:37 PM, gaurav gupta wrote: > Hi Aparna, > > * final EditText oldPassword = (EditText) > changePassword.findViewById(R.id.old_password);* > *Use this line* > ** > *final EditText oldPassword = (EditText) > textEntryView.findViewById(R.id.old_password);* > > On Sat, Aug 27, 2011 at 2:36 PM, gaurav gupta > wrote: > >> H >> >> >> On Sat, Aug 27, 2011 at 2:27 PM, aparna rani wrote: >> >>> hi i am implementing change password option in my app. i displayed dialog >>> alert box. >>> when i trying to get data from edittext failed. why i don't know please >>> help me? >>> >>> LayoutInflater factory = LayoutInflater.from(this); >>> final View textEntryView = factory.inflate(R.layout.password, >>> null); >>> >>> AlertDialog.Builder alert = new AlertDialog.Builder(this); >>> >>> alert.setTitle("Change Passwoed"); >>> alert.setView(textEntryView); >>> AlertDialog changePassword = alert.create(); >>> >>> final EditText oldPassword = (EditText) >>> changePassword.findViewById(R.id.old_password); >>> final EditText newPassword = (EditText) >>> changePassword.findViewById(R.id.new_password); >>> final EditText retypePassword = (EditText) >>> changePassword.findViewById(R.id.retype_password); >>> alert.setPositiveButton("Submit", new >>> DialogInterface.OnClickListener() { >>> public void onClick(DialogInterface dialog, int whichButton) >>> { >>> String oldPass=oldPassword.getText().toString(); >>> String newPass=newPassword.getText().toString(); >>> String retypePass=retypePassword.getText().toString(); >>> >>> if(oldPass.trim().length()==0||newPass.trim().length()==0||retypePass.trim().length()==0) >>> { >>> displayAlert("Enter three fields"); >>> } >>> >>> } >>> }); >>> >>> alert.setNegativeButton("Cancel", new >>> DialogInterface.OnClickListener() { >>> public void onClick(DialogInterface dialog, int whichButton) >>> { >>> // Canceled. >>> } >>> }); >>> alert.show(); >>> >>> //password.xml >>> >>> >>> >>> http://schemas.android.com/apk/res/android"; >>> android:orientation="vertical" >>> android:layout_width="fill_parent" >>> android:layout_height="fill_parent"> >>> >> android:layout_width="fill_parent" >>> android:layout_height="fill_parent"> >>> >>> >> android:layout_width="fill_parent" >>> android:password="true" >>> android:singleLine="true" >>>android:hint="Old Password"/> >>> >>> >>> >>android:hint="New Password" >>>android:layout_width="fill_parent" >>>android:password="true" >>>android:singleLine="true"/> >>> >>> >>> >> android:layout_width="fill_parent" >>>android:hint="Retype New Password" >>>android:password="true" >>>android:singleLine="true"/> >>> >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to android-developers@googlegroups.com >>> To unsubscribe from this group, send email to >>> android-developers+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >> >> >> > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Getting data from EditText failed why.
hi i am implementing change password option in my app. i displayed dialog alert box. when i trying to get data from edittext failed. why i don't know please help me? LayoutInflater factory = LayoutInflater.from(this); final View textEntryView = factory.inflate(R.layout.password, null); AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle("Change Passwoed"); alert.setView(textEntryView); AlertDialog changePassword = alert.create(); final EditText oldPassword = (EditText) changePassword.findViewById(R.id.old_password); final EditText newPassword = (EditText) changePassword.findViewById(R.id.new_password); final EditText retypePassword = (EditText) changePassword.findViewById(R.id.retype_password); alert.setPositiveButton("Submit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { String oldPass=oldPassword.getText().toString(); String newPass=newPassword.getText().toString(); String retypePass=retypePassword.getText().toString(); if(oldPass.trim().length()==0||newPass.trim().length()==0||retypePass.trim().length()==0) { displayAlert("Enter three fields"); } } }); alert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { // Canceled. } }); alert.show(); //password.xml http://schemas.android.com/apk/res/android"; android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to show pop up dialog
hiii i am implementing change password option. when i press i want to shows a pop up window. in popup window old password: editTextbox new password: edittext box retype password: edittext box ok button cancel button is it possible do in android. if it is possible give me some sample code thank you... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] going thru activities
*mButton=(Button)findViewById(R.id.button1);* * mButton.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { Intent myIntent = new Intent(currentClass.this, NextclassActivity.class); startActivityForResult(myIntent,0); } }); is is working just try it. * On Mon, Aug 15, 2011 at 12:56 PM, stansic wrote: > Hi I am working on an event management app, and I am new in developing > android applications. > I am trying to find a to switch to d next activity when a button is > clicked. I have used the button listener method but I did not work, > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Make app fullscreen
In ur* AndroidMainfest.xml* file you set the srceen size is true // this will helpful to you. On Tue, Aug 9, 2011 at 12:32 PM, Kristoffer wrote: > Hello again. > > I guess that i did not make myself clear here so iam now adding a > image so that you could se what iam talking about. > This image is a screencapture of the app, and you could se that its > not using full size. > > http://www.kramericasoftware.se/screenproblem.png > > Hope this helps you to help me :) > > On 8 Aug, 10:18, Kristoffer wrote: > > Hello. > > > > Iam new to SDK and Eclipse (i have just finished my first app in app > > inventor) > > But i feel that i wanna move on to SDK and eclipse. > > > > Iam going to rebuild my app that i build in app inventor, but i still > > have the same problem now with SDK and Eclipse that i had in app > > inventor. > > > > If i run the app on a big screen mobile (like HTC sensation) then the > > app will not use the whole screen, it leave like 2,5 cm in bottom just > > black. > > > > If i run the app on smaller screen (HTC Wildfire, Hero, Desire) then > > it uses the whole screen. > > > > I guess i have to "enable" something to make it fill bigger screens. > > Someone that have the time to help me? > > > > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to add scroll bar to view
hi i am implement a dynamically adding editText boxes. in mu app wanto add scroll view. please help me how to do scroll bar? import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.TableLayout; import android.widget.TableRow; import java.util.ArrayList; import java.util.List; import static android.view.ViewGroup.LayoutParams.FILL_PARENT; import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT; import static android.widget.LinearLayout.VERTICAL; public class Sample extends Activity { private List editTextList = new ArrayList(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLayout linearLayout = new LinearLayout(this); ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(FILL_PARENT, WRAP_CONTENT); linearLayout.setLayoutParams(params); linearLayout.setOrientation(VERTICAL); int count = 50; linearLayout.addView(tableLayout(count)); linearLayout.addView(submitButton()); setContentView(linearLayout); } private Button submitButton() { Button button = new Button(this); button.setHeight(WRAP_CONTENT); button.setText("Submit"); button.setOnClickListener(submitListener); return button; } // Access the value of the EditText private View.OnClickListener submitListener = new View.OnClickListener() { public void onClick(View view) { StringBuilder stringBuilder = new StringBuilder(); for (EditText editText : editTextList) { stringBuilder.append(editText.getText().toString()); } } }; // Using a TableLayout as it provides you with a neat ordering structure private TableLayout tableLayout(int count) { TableLayout tableLayout = new TableLayout(this); tableLayout.setStretchAllColumns(true); int noOfRows = count / 5; for (int i = 0; i < noOfRows; i++) { int rowId = 5 * i; tableLayout.addView(createOneFullRow(rowId)); } int individualCells = count % 5; tableLayout.addView(createLeftOverCells(individualCells, count)); return tableLayout; } private TableRow createLeftOverCells(int individualCells, int count) { TableRow tableRow = new TableRow(this); tableRow.setPadding(0, 10, 0, 0); int rowId = count - individualCells; for (int i = 1; i <= individualCells; i++) { tableRow.addView(editText(String.valueOf(rowId + i))); } return tableRow; } * private TableRow createOneFullRow(int rowId) { TableRow tableRow = new TableRow(this); tableRow.setPadding(0, 10, 0, 0); for (int i = 1; i <= 5; i++) { tableRow.addView(editText(String.valueOf(rowId + i))); } return tableRow; }* private EditText editText(String hint) { EditText editText = new EditText(this); editText.setId(Integer.valueOf(hint)); editText.setHint(hint); editTextList.add(editText); return editText; } } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] hi how to attach a file in own gmail function
hii i am implement the one gmail function for sending file public void addAttachment(String filename) throws Exception { BodyPart messageBodyPart = new MimeBodyPart(); DataSource source = new FileDataSource(filename); messageBodyPart.setDataHandler(new DataHandler(source)); messageBodyPart.setFileName(filename); _multipart.addBodyPart(messageBodyPart); BodyPart messageBodyPart2 = new MimeBodyPart(); messageBodyPart2.setText(subject); _multipart.addBodyPart(messageBodyPart2); } public synchronized void sendMail(String subject, String body, String sender, String recipients) throws Exception { try{ MimeMessage message = new MimeMessage(session); DataHandler handler = new DataHandler(new ByteArrayDataSource(body.getBytes(), "text/csv")); addAttachment("/sdcard/BarcodeScanner/Purchase/indela.csv"); message.setSender(new InternetAddress(sender)); message.setSubject(subject); message.setContent(_multipart); message.setDataHandler(handler); message.setContent(_multipart); if (recipients.indexOf(',') > 0) message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(recipients)); else message.setRecipient(Message.RecipientType.TO, new InternetAddress(recipients)); Transport.send(message); }catch(Exception e){ } } with out attachment its working fine. with attachment it take file. that file name is "noname". in side file content is "this is body" please help me what is wrong in my project. this project i am testing in samsung galaxy fit s5670. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to set vertical and horizontal scroll bar
hi how to set vertical and horizontal scroll bar in android please help me -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to switch ui from one to other
hi to all I am new to android development. in my application i have three activities. in 1st ui and second ui each ui having one button for ui calling 3rd.in 3rd ui having back button.when pressing back button it comes to previous calling ui. how can i implement. please help me. thanks in andvanced -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to add scroll view in my android app.
hi to all i am implement the ui i want to add scroll to my ui how can add please help me thanks in advance. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en