[android-beginners] Creating Custom Soft keyboard
Hi All, I want create a virtual custom keyboard. For this I saw the soft keyboard examples in samples folder. This example requires me to create a service for custom keyboard. Now i want to have the custom keyboard for a text-box when a button is clicked if that button is again clicked the keyboard should be default keyboard. And also i want the custom keyboard for only one text box, so is there any other way to create the keyboard only for my application i.e. if can i do this custom keyboard without starting as a service. If so how can i achieve this. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-beginners] onClickListener of a view
Doesn't work, I have the view that now is 30x30 pixels, but on the top left of the screen and my drawable gets cutted off. -- Luca Bedogni Freelance Web Developer http://www.lucabedogni.it On Tue, Mar 23, 2010 at 3:11 AM, murali raju manutd...@gmail.com wrote: use h.setLayoutParams(new ViewGroup.LayoutParams( 30,30)); On Mon, Mar 22, 2010 at 11:49 AM, Luca Bedogni bedogni.l...@gmail.com wrote: Mmm, I investigated a bit and i think this is not the problem. I'm making a new object every time. Beside that, I noticed that the view added has the dimensions of the screen, and not 30 pixels as I want. How can I avoid that? Thanks -- Luca Bedogni Freelance Web Developer http://www.lucabedogni.it On Mon, Mar 22, 2010 at 4:04 AM, murali raju manutd...@gmail.com wrote: coz you are using the same view object to all the shapes. so only the most recently created view will have listener. use an arraylist and add the view to it when ever a shape is created. and check which view is clicked by using view.isPressed(). On Sun, Mar 21, 2010 at 1:26 AM, Luca Bedogni bedogni.l...@gmail.com wrote: Hi I have the following code: int x = (int)Math.round(Math.random()*200); int y = (int)Math.round(Math.random()*300); View h = new CustomDrawableView(c,x,y); h.setLayoutParams(new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); h.setOnClickListener(new OnClickListener() { �...@override public void onClick(View v) { // TODO Auto-generated method stub Log.d(VIEW,v.toString()); v.setVisibility(View.INVISIBLE); } }); inside an Handler, that create every 2 seconds a new ovalShape and add it to the Layout. Everything works fine, except for the clickListener. In fact, when i press one of my shapes on the screen, it will be made invisible only the last one, and not what I clicked. Am I missing something? -- Luca Bedogni Freelance Web Developer http://www.lucabedogni.it -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to
[android-beginners] Re: onClickListener of a view
I think that the problem is that the FrameLayout accepts only one image, and places the last one on the top of the others. So I think I have to change approach, any hint? On 23 Mar, 08:22, Luca Bedogni bedogni.l...@gmail.com wrote: Doesn't work, I have the view that now is 30x30 pixels, but on the top left of the screen and my drawable gets cutted off. -- Luca Bedogni Freelance Web Developerhttp://www.lucabedogni.it On Tue, Mar 23, 2010 at 3:11 AM, murali raju manutd...@gmail.com wrote: use h.setLayoutParams(new ViewGroup.LayoutParams( 30,30)); On Mon, Mar 22, 2010 at 11:49 AM, Luca Bedogni bedogni.l...@gmail.com wrote: Mmm, I investigated a bit and i think this is not the problem. I'm making a new object every time. Beside that, I noticed that the view added has the dimensions of the screen, and not 30 pixels as I want. How can I avoid that? Thanks -- Luca Bedogni Freelance Web Developer http://www.lucabedogni.it On Mon, Mar 22, 2010 at 4:04 AM, murali raju manutd...@gmail.com wrote: coz you are using the same view object to all the shapes. so only the most recently created view will have listener. use an arraylist and add the view to it when ever a shape is created. and check which view is clicked by using view.isPressed(). On Sun, Mar 21, 2010 at 1:26 AM, Luca Bedogni bedogni.l...@gmail.com wrote: Hi I have the following code: int x = (int)Math.round(Math.random()*200); int y = (int)Math.round(Math.random()*300); View h = new CustomDrawableView(c,x,y); h.setLayoutParams(new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); h.setOnClickListener(new OnClickListener() { �...@override public void onClick(View v) { // TODO Auto-generated method stub Log.d(VIEW,v.toString()); v.setVisibility(View.INVISIBLE); } }); inside an Handler, that create every 2 seconds a new ovalShape and add it to the Layout. Everything works fine, except for the clickListener. In fact, when i press one of my shapes on the screen, it will be made invisible only the last one, and not what I clicked. Am I missing something? -- Luca Bedogni Freelance Web Developer http://www.lucabedogni.it -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with
[android-beginners] Re: [android-porting] opencore test result
On Mon, Mar 22, 2010 at 4:49 PM, Deva R r.deva...@gmail.com wrote: I want to ask why it shows 1 success and 1 failure . there should be only 1 pass or 1 fail only . Do each test case have multiple sub-tests within them ? which class in source code finally decide whether it is pass or fail ? . Looks like some bookkeeping gone wrong.. couldnt track how/why.. (file and source below) link: http://android.git.kernel.org/?p=platform/external/opencore.git;a=blob;f=engines/player/test/src/test_pv_player_engine.cpp;h=ad56cb89171ce09417fa7f35dd97b64fde029fa4;hb=5109388c810790f08bdf188b16a60c9020254296#l2155 FILE: MYDROID \external\opencore\engines\player\test\src\test_pv_player_engine.cpp source: void pvplayer_engine_test::TestCompleted(test_case tc) { // Print out the result for this test case const test_result the_result = tc.last_result(); fprintf(file, Results for Test Case %d:\n, iCurrentTestNumber); fprintf(file, Successes %d, Failures %d\n , the_result.success_count() - iTotalSuccess, the_result.failures().size() - iTotalFail); fprintf(file, the_result.success_count(%d) - iTotalSuccess (%d), the_result.failures().size(%d) iTotalFail(%d) , the_result.success_count(), iTotalSuccess, the_result.failures().size() ,iTotalFail); fflush(file); This section of code is just printing the final test result after execution of test case . In (MYDROID)/external/opencore/engines/player/test/src/test_pv_player_engine.cpp.These part of code if (iCurrentTest) { OsclExecScheduler *sched = OsclExecScheduler::Current(); if (sched) { // Print out the test name fprintf(file, WWW = %s\n, iCurrentTest-iTestCaseName.get_cstr()); // Start the test iCurrentTest-StartTest(); // Start the scheduler so the test case would run #if USE_NATIVE_SCHEDULER // Have PV scheduler use the scheduler native to the system sched-StartNativeScheduler(); #else // Have PV scheduler use its own implementation of the scheduler sched-StartScheduler(); #endif } The iCurrentTest-StartTest() is actually runing the test case and that calls somehow to [(MYDROID)/external/opencore/oscl/unit_test/src/test_case.cpp] test_case::run_subtests(void) , test_case::run_test(void) functions . Can someone please tell me how a test case (for eg. class pvplayer_async_test_newdelete : public pvplayer_async_test_base ) is calling these test case functions . how 1 success and 1 failure being counted per test case ? Thanks : Uander On Mon, Mar 22, 2010 at 11:32 AM, Uander uandro...@gmail.com wrote: Hi All , Here is what I got while running a test case of open core . *** # pvplayer_engine_test -test 1 1 SDK Labeled: PVDEV_CORE_RELEASE_6.506.4.1 built on 20090312 Test Program for pvPlayer engine class. Input file name 'test.mp4' Test case range 1 to 1 Compressed output Video(No) Audio(No) Log level 8; Log node 0 Log Text 0 Log Mem 0 Starting Test 1: Open-Play-Stop-Reset Results for Test Case 1: Successes 1, Failures 1 Total Execution time for file test.mp4 is : 2.712000 seconds# *** I want to ask why it shows 1 success and 1 failure . there should be only 1 pass or 1 fail only . Do each test case have multiple sub-tests within them ? which class in source code finally decide whether it is pass or fail ? . Thanks : Uander -- unsubscribe: android-porting+unsubscr...@googlegroups.comandroid-porting%2bunsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe from this group, send email to android-porting+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-beginners] Re: Regarding Database setup
I've been trying to work with a CSV file in android, but I must be doing something badly wrong. It seems to me that I am missing something key within the android WAY that would allow me to do what I'm trying to do. Logically, other apps need pre-built databases, whether they download it on start or they import a CSV file into the db on creation. I keep thinking that this should not be as hard as it is, but I feel like I am banging my head against the wall here. I've tried using the OpenCSV (http://opencsv.sourceforge.net/) library to read the file into a List of Strings[], and my app crashes. I've tried using FileInputStream to read lines from the file, and the app crashes. Now there is clearly something that I am missing that would make all this pretty simple, but as it stands, I am extremely frustrated. I don't want to give up on Android, but this is making it really hard not to just walk away. If anyone can post sample code of reading a CSV into a ListString[] type object (so that each line is a String[] with each comma separated value being an element in the String[] array, I'd appreciate it. That of course may be a bit much. If you can just show me the basic code of writing how to get teh lines from a file called foo.csv located in either /res/raw OR /assets I'd appreciate it. I don't even care so much about the code as much as understanding what the process is (code is important for that understanding, but not the only thing). I am so lost that it's painful. Thanks. Ben On Mon, Mar 8, 2010 at 4:00 PM, Adrian Vintu adrianvi...@gmail.com wrote: You should probably also zip the CSV file. You have built in un/zip capabilities on Android. BR, Adrian Vintu http://adrianvintu.com On Mon, Mar 8, 2010 at 8:08 PM, Ben Orchard ben.orch...@gmail.com wrote: I have a few different apps that I need to use dbs with. One has a DB (public domain) that is 4.3 MB. Either downloading it after creation OR packing it in is going to cause problems. All my other dbs are much smaller. I'm guessing, however, that downloading a CSV then packing the db on the first run might be the best way to go. Thanks On Sun, Mar 7, 2010 at 7:50 AM, Adrian Vintu adrianvi...@gmail.comwrote: How much data is your DB going to hold? Remember, you cannot force the user to download 10M of apk over GPRS. I also think there probably is a limit of the apk size on the Android Market. Dictionary applications, for example, hold ~30MB in the database. The applications have a custom built in database downloader. So they do not pack these huge databases in the apk, but rather download the database on first use. Another example would be packing in the apk a CSV file containing NAME|ADDRESS|PHONE. You can then, at first use of the app, create an sqlite database from importing the data from the CSV file. I think you can play around to see what scenario fits you best. BR, Adrian Vintu http://adrianvintu.com On Sun, Mar 7, 2010 at 5:51 AM, Ben Orchard ben.orch...@gmail.comwrote: Hey, I wanted to say thanks for the information. Let me ask one more thing: I have a large amount of data that I want to use in conjunction with my app. In my mind it seems more efficient to use a db to store this data, but packing the db in android seems..odd. I think it might be easier to pack the db using a better tool, then just access the pre-packed db in the app. Any thoughts on this? Thanks again. On Sat, Mar 6, 2010 at 3:04 PM, Adrian Vintu adrianvi...@gmail.comwrote: Yes to all :) Typically, you will pack your DB in the Android project and unpack it on the device. BR, Adrian Vintu http://adrianvintu.com On Thu, Mar 4, 2010 at 7:36 PM, Ben Orchard ben.orch...@gmail.comwrote: Let me ask this, since I suspect it's the question that was on the mind of the submitter, and it's on mine as well. Can I create an sqlite db on my computer, populate then use that as the main data source for my app? That's the question that I think is most pressing. If the answer is yes, then is it as simple as moving the file (I don't know the sqlite extension) to the resources folder in your project? Thanks, Ben On Wed, Mar 3, 2010 at 2:10 AM, Maxood maqs...@salsoft.net wrote: Here are your required answers: Q.Which database i can use ? A. SQLite. You can download it free from www.sqlite.org Q. What should be connection string ? A. You can make a database adapter class instead. Go though these links http://developer.android.com/reference/android/database/sqlite/package-summary.html http://www.devx.com/wireless/Article/40842/1954 Q. How i can deploy queries ? A. You can write queries in your class using cursors Q. How i can parse recordsets etc ? A. Look into the Android SQLite API: http://developer.android.com/reference/android/database/sqlite/package-summary.html Hope this helps. Android Developer, Maqsood http://www.twitter.com/maxood On Feb 23, 11:51 pm,
Re: [android-beginners] Re: Regarding Database setup
Ben Orchard wrote: Logically, other apps need pre-built databases, whether they download it on start or they import a CSV file into the db on creation. I keep thinking that this should not be as hard as it is, but I feel like I am banging my head against the wall here. I've tried using the OpenCSV (http://opencsv.sourceforge.net/) library to read the file into a List of Strings[], and my app crashes. Of a 4.3MB CSV file? That's not surprising -- you're probably blowing out your heap. If you are going to do your work this way, you will need to read in a few lines, insert those in the database, and move along, rather than try to read the whole file into RAM in one shot. Even better would be to simply have the user download a SQLite database file, or package a SQLite database file in your application, rather than fussing around with slow CSV imports. http://stackoverflow.com/questions/1547766/using-sqlite-db-created-in-windows-but-to-be-accessed-in-android http://stackoverflow.com/questions/1157567/interacting-with-external-sqlite-databases-from-android http://stackoverflow.com/questions/513084/how-to-ship-an-android-application-with-a-database http://stackoverflow.com/questions/1894984/use-sqlite-database-from-android-app-resources -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Online Training: 26-30 April 2010: http://onlc.com -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Help with displaying HTML formatted strings from an ArrayAdapter
I appologize for the absolute beginner questions, but I am having a tough time understanding this. I need some help of how to display the strings that I have marked up with simple html into a TextView. I have found Spanned fromHtml(String source), but I don't know how to plug it into my java code or really how to use it. In my code below would HistoryList be my string source? Here is my Java: package com.SorenWinslow.TriumphHistory; import android.app.ListActivity; import android.os.Bundle; import android.widget.ArrayAdapter; public class TriumphHistory extends ListActivity { String[] HistoryList; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ArrayAdapterString adapter; HistoryList = getResources().getStringArray(R.array.history); adapter = new ArrayAdapterString (this,R.layout.historylistlayout,HistoryList); setListAdapter(adapter); } } Here is a sample of history: ?xml version=1.0 encoding=utf-8? resources string-array name=history itemb1883/bbr/Some stuff happened/item itemb1884/bbr/Some more stuff happened ibefore/i the other stuff /item resources ?xml version=1.0 encoding=utf-8? TextView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/text1 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceLarge android:gravity=center_vertical android:textColor=#ff android:background=#50 android:layout_marginTop=5px android:minHeight=?android:attr/listPreferredItemHeight android:padding=3px android:textSize=8pt android:layout_gravity=top|left/ And here is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:textColor=#ff android:background=#80 android:isScrollContainer=true android:layout_height=fill_parent android:layout_width=fill_parent android:scrollbarStyle=insideOverlay ListView xmlns:android=http://schemas.android.com/apk/res/ android android:id=@android:id/list android:layout_width=fill_parent android:layout_height=wrap_content android:clickable=true android:dividerHeight=1px/ /LinearLayout -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] ROAMING on Android, has anyone ever worked with it???
Hello guys, I'm working on a project that I need to know whether the device is on roaming or not. I've been digging until the very last page of Google without success, I haven't found any sample code of how to accomplish that. This is the far that I could go: ServiceState ss = new ServiceState(); Log.i(TAG, roaming 1: + ss.getRoaming()); Log.i(TAG, roaming 2: + ss.getOperatorAlphaLong()); Log.i(TAG, roaming 3: + ss.getOperatorAlphaShort()); Log.i(TAG, roaming 4: + ss.getOperatorNumeric()); Log.i(TAG, roaming 5: + ss.getState()); and it results: roaming 1: false roaming 2: null roaming 3: null roaming 4: null roaming 5: 1 I have no idea what the snippet bellow is for, but I decided to add it into my Manifest file just in case: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.ACCESS_COARSE_UPDATES / uses-permission android:name=android.permission.READ_PHONE_STATE / Can any of you guys help me on this one? PS: I'm testing it on my Droid, and I've got plenty of SIM Cards from other countries and cities so that I can get the roaming status to be on. Regards -gustavo -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] موقع جديد لفتح ال مواقع المحجوبه والممنوعه
موقع جديد لفتح المواقع المحجوبه والممنوعه http://prog2010.zxq.net/proxy/ -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?
Thanks for the suggestion Mark, I tried the following: HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet(my URL); HttpResponse response = httpclient.execute(httpget); HttpEntity entity = response.getEntity(); if (entity != null) { InputStream stream = entity.getContent(); byte buf[] = new byte[1024 * 1024]; int numBytesRead; BufferedOutputStream fos = new BufferedOutputStream(new FileOutputStream(my output file)); do { numBytesRead = stream.read(buf); if (numBytesRead 0) { fos.write(buf, 0, numBytesRead); } } while (numBytesRead 0); fos.flush(); fos.close(); stream.close(); buf = null; httpclient.getConnectionManager().shutdown(); } I timed it with GregorianCalendar objects instantiated before and after the process. It came in at 10.91 minutes (655 seconds). I then tried the same code, but using a 1KB buffer instead of a 1MB buffer, this code came in at 713 seconds, 11.89 minutes. I then timed my old code (in the first post) which clocked in at 15.43 minutes (925 seconds). All of these times were running through the debugger on my dev phone 2. Do you think I would get any speed improvement if I tried to figure out how to implement the BinaryResponseHandler? I found this HttpClient tutorial (http://hc.apache.org/httpcomponents-client/ tutorial/pdf/httpclient-tutorial.pdf) but I'm still not clear on how the response handler would fit my needs. From the example in the tutorial it seems like it returns a byte array, but that's not practical in my situation as the entity content would be ~6.5MB, better to write that to my file as I receive it. Thanks again for the help Mark, Rob -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?
Stormtap Studios wrote: Thanks for the suggestion Mark, I tried the following: HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet(my URL); HttpResponse response = httpclient.execute(httpget); HttpEntity entity = response.getEntity(); if (entity != null) { InputStream stream = entity.getContent(); byte buf[] = new byte[1024 * 1024]; int numBytesRead; BufferedOutputStream fos = new BufferedOutputStream(new FileOutputStream(my output file)); do { numBytesRead = stream.read(buf); if (numBytesRead 0) { fos.write(buf, 0, numBytesRead); } } while (numBytesRead 0); fos.flush(); fos.close(); stream.close(); buf = null; httpclient.getConnectionManager().shutdown(); } I timed it with GregorianCalendar objects instantiated before and after the process. It came in at 10.91 minutes (655 seconds). I then tried the same code, but using a 1KB buffer instead of a 1MB buffer, this code came in at 713 seconds, 11.89 minutes. I then timed my old code (in the first post) which clocked in at 15.43 minutes (925 seconds). Who-hoo! 29% speed improvement! :-) All of these times were running through the debugger on my dev phone 2. You might try running outside the debugger. Do you think I would get any speed improvement if I tried to figure out how to implement the BinaryResponseHandler? I found this HttpClient tutorial (http://hc.apache.org/httpcomponents-client/ tutorial/pdf/httpclient-tutorial.pdf) but I'm still not clear on how the response handler would fit my needs. From the example in the tutorial it seems like it returns a byte array, but that's not practical in my situation as the entity content would be ~6.5MB, better to write that to my file as I receive it. Agreed. Still, something seems strange. Let me know if droppin' the debuggah helps. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?
Stormtap Studios wrote: Thanks for the suggestion Mark, I tried the following: HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet(my URL); HttpResponse response = httpclient.execute(httpget); HttpEntity entity = response.getEntity(); if (entity != null) { InputStream stream = entity.getContent(); byte buf[] = new byte[1024 * 1024]; int numBytesRead; BufferedOutputStream fos = new BufferedOutputStream(new FileOutputStream(my output file)); do { numBytesRead = stream.read(buf); if (numBytesRead 0) { fos.write(buf, 0, numBytesRead); } } while (numBytesRead 0); fos.flush(); fos.close(); stream.close(); buf = null; httpclient.getConnectionManager().shutdown(); } I timed it with GregorianCalendar objects instantiated before and after the process. It came in at 10.91 minutes (655 seconds). I then tried the same code, but using a 1KB buffer instead of a 1MB buffer, this code came in at 713 seconds, 11.89 minutes. I then timed my old code (in the first post) which clocked in at 15.43 minutes (925 seconds). All of these times were running through the debugger on my dev phone 2. Do you think I would get any speed improvement if I tried to figure out how to implement the BinaryResponseHandler? I found this HttpClient tutorial (http://hc.apache.org/httpcomponents-client/ tutorial/pdf/httpclient-tutorial.pdf) but I'm still not clear on how the response handler would fit my needs. From the example in the tutorial it seems like it returns a byte array, but that's not practical in my situation as the entity content would be ~6.5MB, better to write that to my file as I receive it. I just tried your code on a Nexus One, over WiFi, and it downloaded a 5.9MB file in around 14 seconds. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?
I'm currently testing whether reading the entire file into memory, then doing one write is faster. So far it seems to be only slightly faster (still downloading). I suspect the BufferedOutputStream eliminates this optimization's value, and probably is safer than allocating a large ~7MB block of memory. I tried to run my app without the debugger but haven't yet figured out how to do that. When I disconnect the device from the USB and then run it from the phone it just comes up saying Waiting for debugger, haven't had the chance yet to figure out how to make it no longer wait for the debugger to connect. I'll try that know and let you know my results. Thanks! Rob On Mar 23, 2:16 pm, Mark Murphy mmur...@commonsware.com wrote: Stormtap Studios wrote: Thanks for the suggestion Mark, I tried the following: HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet(my URL); HttpResponse response = httpclient.execute(httpget); HttpEntity entity = response.getEntity(); if (entity != null) { InputStream stream = entity.getContent(); byte buf[] = new byte[1024 * 1024]; int numBytesRead; BufferedOutputStream fos = new BufferedOutputStream(new FileOutputStream(my output file)); do { numBytesRead = stream.read(buf); if (numBytesRead 0) { fos.write(buf, 0, numBytesRead); } } while (numBytesRead 0); fos.flush(); fos.close(); stream.close(); buf = null; httpclient.getConnectionManager().shutdown(); } I timed it with GregorianCalendar objects instantiated before and after the process. It came in at 10.91 minutes (655 seconds). I then tried the same code, but using a 1KB buffer instead of a 1MB buffer, this code came in at 713 seconds, 11.89 minutes. I then timed my old code (in the first post) which clocked in at 15.43 minutes (925 seconds). All of these times were running through the debugger on my dev phone 2. Do you think I would get any speed improvement if I tried to figure out how to implement the BinaryResponseHandler? I found this HttpClient tutorial (http://hc.apache.org/httpcomponents-client/ tutorial/pdf/httpclient-tutorial.pdf) but I'm still not clear on how the response handler would fit my needs. From the example in the tutorial it seems like it returns a byte array, but that's not practical in my situation as the entity content would be ~6.5MB, better to write that to my file as I receive it. I just tried your code on a Nexus One, over WiFi, and it downloaded a 5.9MB file in around 14 seconds. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?
Ok I just figured out how to get my app on the device (I did exported through Eclipse, and then zipalign on the command-line). I installed it, and ran it, and the download was roughly the same speed as when I run through the debugger on the device. This was with the USB cable disconnected as well. This is on an Android Dev Phone 2 (HTC Magic). The only thing I can think is that I still had the debuggable flag set to true in the manifest when I exported, would this affect the speed on the device if not connected via USB? Rob On Mar 23, 2:16 pm, Mark Murphy mmur...@commonsware.com wrote: Stormtap Studios wrote: Thanks for the suggestion Mark, I tried the following: HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet(my URL); HttpResponse response = httpclient.execute(httpget); HttpEntity entity = response.getEntity(); if (entity != null) { InputStream stream = entity.getContent(); byte buf[] = new byte[1024 * 1024]; int numBytesRead; BufferedOutputStream fos = new BufferedOutputStream(new FileOutputStream(my output file)); do { numBytesRead = stream.read(buf); if (numBytesRead 0) { fos.write(buf, 0, numBytesRead); } } while (numBytesRead 0); fos.flush(); fos.close(); stream.close(); buf = null; httpclient.getConnectionManager().shutdown(); } I timed it with GregorianCalendar objects instantiated before and after the process. It came in at 10.91 minutes (655 seconds). I then tried the same code, but using a 1KB buffer instead of a 1MB buffer, this code came in at 713 seconds, 11.89 minutes. I then timed my old code (in the first post) which clocked in at 15.43 minutes (925 seconds). All of these times were running through the debugger on my dev phone 2. Do you think I would get any speed improvement if I tried to figure out how to implement the BinaryResponseHandler? I found this HttpClient tutorial (http://hc.apache.org/httpcomponents-client/ tutorial/pdf/httpclient-tutorial.pdf) but I'm still not clear on how the response handler would fit my needs. From the example in the tutorial it seems like it returns a byte array, but that's not practical in my situation as the entity content would be ~6.5MB, better to write that to my file as I receive it. I just tried your code on a Nexus One, over WiFi, and it downloaded a 5.9MB file in around 14 seconds. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?
Stormtap Studios wrote: Ok I just figured out how to get my app on the device (I did exported through Eclipse, and then zipalign on the command-line). I installed it, and ran it, and the download was roughly the same speed as when I run through the debugger on the device. This was with the USB cable disconnected as well. This is on an Android Dev Phone 2 (HTC Magic). The only thing I can think is that I still had the debuggable flag set to true in the manifest when I exported, would this affect the speed on the device if not connected via USB? I wouldn't expect it to. But, since I'm not an Eclipse user and don't set that flag, I'm certainly not an expert on the subject. :-) Some other things to consider: -- You're on WiFi, right? -- Does the Browser application behave similarly sluggishly? -- Have you tried this in an emulator image? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in NYC: 10-11 April 2010: http://guruloft.com -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?
Yes on WiFi, no the browser doesn't seem to perform similarly sluggish, although I'm not able to get it to download a large file so I can't compare that. Is there a way to test that? I did go to Google and do an image search though and some of those thumbnails were quite slow to load. When you say in an emulator image do you mean through the debugger targeted at the emulator? Or do you mean installing it to the emulator with adb (same as I installed it to the device)? I have tried it on the emulator and it's even slower on there, everything is slower. This is an emulator built for Android 1.5 (my app's target). Rob On Mar 23, 3:52 pm, Mark Murphy mmur...@commonsware.com wrote: Stormtap Studios wrote: Ok I just figured out how to get my app on the device (I did exported through Eclipse, and then zipalign on the command-line). I installed it, and ran it, and the download was roughly the same speed as when I run through the debugger on the device. This was with the USB cable disconnected as well. This is on an Android Dev Phone 2 (HTC Magic). The only thing I can think is that I still had the debuggable flag set to true in the manifest when I exported, would this affect the speed on the device if not connected via USB? I wouldn't expect it to. But, since I'm not an Eclipse user and don't set that flag, I'm certainly not an expert on the subject. :-) Some other things to consider: -- You're on WiFi, right? -- Does the Browser application behave similarly sluggishly? -- Have you tried this in an emulator image? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in NYC: 10-11 April 2010:http://guruloft.com -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?
Stormtap Studios wrote: Yes on WiFi, no the browser doesn't seem to perform similarly sluggish, although I'm not able to get it to download a large file so I can't compare that. Is there a way to test that? I did go to Google and do an image search though and some of those thumbnails were quite slow to load. Well, the speed difference is over 40x (~14 seconds to 600+ seconds), so I would think if the Browser had similar problems, it'd be bindlingly obvious. When you say in an emulator image do you mean through the debugger targeted at the emulator? Or do you mean installing it to the emulator with adb (same as I installed it to the device)? I mean on an emulator. How you get it there (Eclipse, ant, adb, manually poking hex values into flash) is up to you. :-) I have tried it on the emulator and it's even slower on there, everything is slower. This is an emulator built for Android 1.5 (my app's target). I just tried it on an Android 1.5 emulator. It took exactly 14 seconds. Switch your code to download this file: http://commonsware.com/misc/test.mp4 to: /sdcard/test.mp4 and see what happens. If this works much more quickly for you, then there's something afoot with the Web server you're downloading from. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: Add calendar item through Intent?
Hi, The calendar is provided as a content provider, and you can use it to add events. Have a look at http://developer.android.com/guide/topics/providers/content-providers.html Good luck! Andreas On Mar 19, 6:00 pm, Sven Jacobs sven.jac...@web.de wrote: Hi all, I'm developing an app that displays a list of events and would like to know if there's any standard way to add an item to the (Google) calendar, preferably by sending an Intent? I'm developing for Android 1.5. Thanks for any hint! Regards, Sven -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-beginners] Re: Add calendar item through Intent?
Andreas wrote: The calendar is provided as a content provider, and you can use it to add events. Have a look at http://developer.android.com/guide/topics/providers/content-providers.html The Calendar content provider is not part of the SDK. If you wish to manipulate a user's Google Calendar, there's a Google Web service API for that: http://code.google.com/apis/calendar/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: possible to send an xml file via HttpClient?
Then you do the other way around: Open an InputStream from the HttpURLConnection, and and OutputStream to the file you want to store it to, and transfer the data. Andreas On Mar 19, 6:59 pm, KC Dev Android 06 kc.dev.android...@googlemail.com wrote: Yes i have done that already but i want to do the reverse which is to download a file from the httpconnection On Mar 18, 5:42 am, Andreas andreas.bex...@gmail.com wrote: Hi, What you want to do is to open a HttpURLConnection to the URL specified, and then open an OuputStream towards that connection. Then you open an InputStream from the File you want to send, and transfer the data from the File InputStream to the Http OutputStream. Easy as ð ;) Andreas On Mar 17, 1:45 am, KC Dev Android 06 kc.dev.android...@googlemail.com wrote: Hi, as the title says, is it possible to do so? in the examples found herehttp://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4 It seems that HttpClient only accepts a String as its parameter? how do i go about sending/uploading a xml file using http? thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-beginners] Re: onClickListener of a view
ya framelayout always places views on the left-top corner. Instead use any other layout like linear and add to it when ever a new view is created. I think if u can show your code the problem can be solved faster. On Tue, Mar 23, 2010 at 1:05 PM, Luca bedogni.l...@gmail.com wrote: I think that the problem is that the FrameLayout accepts only one image, and places the last one on the top of the others. So I think I have to change approach, any hint? On 23 Mar, 08:22, Luca Bedogni bedogni.l...@gmail.com wrote: Doesn't work, I have the view that now is 30x30 pixels, but on the top left of the screen and my drawable gets cutted off. -- Luca Bedogni Freelance Web Developerhttp://www.lucabedogni.it On Tue, Mar 23, 2010 at 3:11 AM, murali raju manutd...@gmail.com wrote: use h.setLayoutParams(new ViewGroup.LayoutParams( 30,30)); On Mon, Mar 22, 2010 at 11:49 AM, Luca Bedogni bedogni.l...@gmail.com wrote: Mmm, I investigated a bit and i think this is not the problem. I'm making a new object every time. Beside that, I noticed that the view added has the dimensions of the screen, and not 30 pixels as I want. How can I avoid that? Thanks -- Luca Bedogni Freelance Web Developer http://www.lucabedogni.it On Mon, Mar 22, 2010 at 4:04 AM, murali raju manutd...@gmail.com wrote: coz you are using the same view object to all the shapes. so only the most recently created view will have listener. use an arraylist and add the view to it when ever a shape is created. and check which view is clicked by using view.isPressed(). On Sun, Mar 21, 2010 at 1:26 AM, Luca Bedogni bedogni.l...@gmail.com wrote: Hi I have the following code: int x = (int)Math.round(Math.random()*200); int y = (int)Math.round(Math.random()*300); View h = new CustomDrawableView(c,x,y); h.setLayoutParams(new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); h.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Log.d(VIEW,v.toString()); v.setVisibility(View.INVISIBLE); } }); inside an Handler, that create every 2 seconds a new ovalShape and add it to the Layout. Everything works fine, except for the clickListener. In fact, when i press one of my shapes on the screen, it will be made invisible only the last one, and not what I clicked. Am I missing something? -- Luca Bedogni Freelance Web Developer http://www.lucabedogni.it -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You
[android-beginners] Re: No resource found that matches the given name (at 'entries' with value '@arrays/items').
Hi, Is there a file in your res/values folder called arrays? Is there any content in that file? Andreas On Mar 19, 4:04 am, anushree godbole.anush...@gmail.com wrote: main.xml ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget28 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; ListView android:id=@+id/widget29 android:layout_width=fill_parent android:layout_height=fill_parent android:entries=@arrays/items android:layout_alignParentTop=true android:layout_alignParentLeft=true /ListView /RelativeLayout This is returning the following error... error: Error: No resource found that matches the given name (at 'entries' with value '@arrays/items'). please help me cuz i am trying to design this ui for my project.. and i can't really do anything more untill this is solved thank you -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: Add calendar item through Intent?
Oops. Thanks for clearing that up. On Mar 24, 11:16 am, Mark Murphy mmur...@commonsware.com wrote: Andreas wrote: The calendar is provided as a content provider, and you can use it to add events. Have a look athttp://developer.android.com/guide/topics/providers/content-providers... The Calendar content provider is not part of the SDK. If you wish to manipulate a user's Google Calendar, there's a Google Web service API for that: http://code.google.com/apis/calendar/ -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?
Your file download quickly on my emulator, however on my device in the debugger it downloaded at the same slow rate. So I then tested the release / no debugger version (by exporting, and then installing the .apk with adb). Same issue, equally slow as the debugger + device combo. This was with the debuggable value set to false this time as well (which seemed to change nothing, probably just prevents mangling of the code in the package is my bet). I thought maybe something might be wrong with my device's WIFI. I put it right near the wireless router for full signal, no change in speed. Tomorrow I'll be able to load the app onto another Android device, so we'll see then whether it's just my device that has the issue. I'll report back if any success on that front. In the meantime thanks Mark for the thorough help, and for hosting this file to test with, good idea! Thanks, Rob On Mar 23, 4:39 pm, Mark Murphy mmur...@commonsware.com wrote: Stormtap Studios wrote: Yes on WiFi, no the browser doesn't seem to perform similarly sluggish, although I'm not able to get it to download a large file so I can't compare that. Is there a way to test that? I did go to Google and do an image search though and some of those thumbnails were quite slow to load. Well, the speed difference is over 40x (~14 seconds to 600+ seconds), so I would think if the Browser had similar problems, it'd be bindlingly obvious. When you say in an emulator image do you mean through the debugger targeted at the emulator? Or do you mean installing it to the emulator with adb (same as I installed it to the device)? I mean on an emulator. How you get it there (Eclipse, ant, adb, manually poking hex values into flash) is up to you. :-) I have tried it on the emulator and it's even slower on there, everything is slower. This is an emulator built for Android 1.5 (my app's target). I just tried it on an Android 1.5 emulator. It took exactly 14 seconds. Switch your code to download this file: http://commonsware.com/misc/test.mp4 to: /sdcard/test.mp4 and see what happens. If this works much more quickly for you, then there's something afoot with the Web server you're downloading from. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Development Wiki:http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] How to cancel Android Market developer account
I tried to sign up for Android market developer account and google used the wrong google id. I tried to cancel immediately and it wouldn't let me. Not even in the supposed 15 minute window. I want to cancel it and resign up. It won't let me sign up with the proper ID because by profile is already used by me with the wrong id. Argh. Is there any support? I've tried emailing multiple places with no luck. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-beginners] Facebook API for Android
hey carmen ! Really thankful for such response as i was searching for same thing for a long time. I need to implement facebook login authentication feature in my app. i tried with fb-connect api but when i execute i only see a blank white screen as i try to connect to facebook. This issue is widely mentioned in the issues section of api. then i came to know about fbrocket api but as the source code is not given i am not able to edit the code to mould it for my use. i just need to use the login part of it for my app. kindly help me out and share any sample code if u have no issues. I'll be very grateful. being a newbie its sometimes tough to follow up things. regards, wahib On 3/22/10, Carmen Delessio carmendeles...@gmail.com wrote: I do not know of an eclipse plugin. There are several libraries mentioned on the facebook wiki: http://wiki.developers.facebook.com/index.php/User:Android - http://me.sylvek.net/index.php?2009/02/11/434-api-facebook-with-android - http://xeomax.net/fbrocket/ - http://code.google.com/p/fbconnect-android/ I created my own library for BFF Photo an app that shows Facebook Photos and uploads photos and videos. I am cleaning up the library now and will ultimately release it. The main issues seems to be authorization. I originally used Facebook's simplified Desktop authorization: http://developers.facebook.com/news.php?blog=1story=289 But I have switched to authorizing mobile apps method: http://wiki.developers.facebook.com/index.php/Authentication_and_Authorization_for_Facebook_for_Mobile_Applications Carmen -- Carmen http://www.twitter.com/CarmenDelessio http://www.talkingandroid.com http://www.facebook.com/BFFPhoto http://www.twitter.com/DroidDrop On Mon, Mar 22, 2010 at 8:34 PM, peaceinmind say...@gmail.com wrote: Can any one suggest if there is any FB Api for integrating with Android? I am looking for Eclipse plugin for facebook api that i could use with android. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Wahib-ul-haq 3rd year Communications Engineering Student, NUST, Pakistan. Microsoft Student Partner follow me on twitter @wahibhaq -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.