[android-developers] Re: Copying a file from assets or raw to /system/bin folder (rsync)

2011-09-16 Thread Chris
On Friday, September 16, 2011 5:02:43 AM UTC-4, Conny wrote: May be forgetting my basics here. I sincerely doubt you ever understood your basics to begin with. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] bluetooth spp protocal

2011-09-16 Thread Kristopher Micinski
Under the hood it's the same bluez stack as linux iirc. you can find it in the source. (http://source.android.com) Kris On Fri, Sep 16, 2011 at 11:55 AM, miundroid anil.m@gmail.com wrote: hi all, I was wondering if anyone knows the data frame protocol that android uses by default. Or if

[android-developers] Android Bitmap Blending

2011-09-16 Thread Christian Bianchini
I have a PNG that I need to remove the background with Mulipily Blending, I found an example but I should to have the image in 3 colors and the alpha. My problem is that I don't have only one png but 1000 png, I should to do the Blending every image. This is the example:

Re: [android-developers] Android Bitmap Blending

2011-09-16 Thread Kristopher Micinski
On Fri, Sep 16, 2011 at 12:28 PM, Christian Bianchini max...@gmail.com wrote: I have a PNG that I need to remove the background with Mulipily Blending, I found an example but I should to have the image in 3 colors and the alpha. My problem is that I don't have only one png but 1000 png, I

[android-developers] Re: Newbie to Android!1

2011-09-16 Thread martypantsROK
cut my teeth on this: http://developer.android.com/resources/browser.html?tag=tutorial On Sep 16, 6:33 pm, HarryKrish sriharish.kris...@gmail.com wrote: Hi, I'm Harry from India. Im a newbie to Android. Could you pls refer me the best Android Tutorial!! It would be too good if its a video

[android-developers] Re: Newbie to Android!1

2011-09-16 Thread martypantsROK
I cut my teeth on this: http://developer.android.com/resources/browser.html?tag=tutorial On Sep 16, 6:33 pm, HarryKrish sriharish.kris...@gmail.com wrote: Hi, I'm Harry from India. Im a newbie to Android. Could you pls refer me the best Android Tutorial!! It would be too good if its a video

[android-developers] Re: How to encode the integer(30digit in to 10 digit) and decode it

2011-09-16 Thread Indicator Veritatis
Is this a Java question or an Android question? In either case, please read and study: http://catb.org/~esr/faqs/smart-questions.html On Sep 14, 1:38 am, GopalaKrishnan D gopall...@gmail.com wrote: How to encode the integer(30digit in to 10 digit) and decode it -- ~* Regards* *GopalaKrishnan

[android-developers] Re: Running ui thread from another thread

2011-09-16 Thread blake
Logesh, Nearly all of your code runs on the UI thread, unless you do something, specifically, to arrange otherwise (the list of tools that Mark gives). If you are literally trying to do what your message suggests -- run a UI-like thread from somewhere -- have a look at Looper. -blake

[android-developers] Re: what do you use for cross platform analytics?

2011-09-16 Thread bostonbrian
I work at Localytics, and we provide cross-platform summaries and comparisons of app usage. You can try the live demo on our website, no registration required: http://www.localytics.com. On Sep 15, 6:09 pm, vincew vinc...@gmail.com wrote: I've got an app that I developed for Android and for

[android-developers] Re: about bluetooth discovery permission issue

2011-09-16 Thread niko20
No. User interaction is always required in this case. Try using monkeyrunner I think can do GUI stuff. On Sep 15, 11:07 am, Alpha b07030...@gmail.com wrote: In my app, I try to make the bluetooth device in discoverable state.The suggested solution is to send the REQUEST_DISCOVERABLE intent

[android-developers] Re: drag/slide finger to perform onclick buttons

2011-09-16 Thread niko20
You will have to either draw the UI yourself, or put an invisible view over the top of the buttons, and handle the touch events there, and then send the appropriate events to the underlying buttons. That way you can track where the finger is at all times while it's moving. -niko On Sep 15, 11:34 

[android-developers] Re: Recorded voice is very very low and lot of noise is recorded.

2011-09-16 Thread niko20
You definitely need to use a higher sample rate. At 8Khz it will sound like talking through a phone - very noisy. -niko On Sep 15, 3:51 am, Harpreet harpreetsingh.ja...@gmail.com wrote: Hello everybody Any thought? On Sep 13, 9:19 pm, harpreet singh harpreetj...@gmail.com wrote:

[android-developers] How to install APK programmatically without user prompt

2011-09-16 Thread Pratik Prajapati
I need to install some non market place APK programmatically *without *user prompt. I found some links on stackoverflow, but all those mechanism will prompt the user. Is there any way to do it with some APIs or I should use 'pm install apk name' command (doing with system() api)? -- Regards,

[android-developers] Re: How to install APK programmatically without user prompt

2011-09-16 Thread Chris
You can't install apks silently. -- 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

Re: [android-developers] How to install APK programmatically without user prompt

2011-09-16 Thread TreKing
On Fri, Sep 16, 2011 at 12:32 PM, Pratik Prajapati pratik.prajap...@gmail.com wrote: Is there any way to do it with some APIs No, thankfully. - TreKing

[android-developers] Re: What is Android Middleware?

2011-09-16 Thread DJC
Yeah I'm amused by job descriptions listing Android Middleware and when I ask if they mean the NDK, they look at me blankly. Weerd. -- 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] Re: What is Android Middleware?

2011-09-16 Thread DJC
Yeah I'm amused by job descriptions listing Android Middleware and when I ask if they mean the NDK, they look at me blankly. Weerd. -- 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] Re: What is Android Middleware?

2011-09-16 Thread DJC
Yeah I'm amused by job descriptions listing Android Middleware and when I ask if they mean the NDK, they look at me blankly. Weerd. -- 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] Intent.FLAG_ACTIVITY_REORDER_TO_FRONT does not work with PendingIntent

2011-09-16 Thread Shri
I have an activity MyActivity and a background service. When MyActivity is not in the foreground, I show a notification icon in the system tray. When the user selects the icon, I want MyActivity to be displayed instead of creating a new instance of MyActivity. However, this does not seem to work

[android-developers] Re: How to get the real-time memory of an Android system by emulator?

2011-09-16 Thread Jona
You can actually call those linux commands via java layer if I recall correctly... I don't have any sample to show you but try looking on that... On Sep 15, 10:10 pm, Zhibo Hu koshih...@gmail.com wrote: Hello everyone, I am a newbie of Android. Actually I am not a developer but a student. I

[android-developers] complieStatement(INSERT) crashing my app??

2011-09-16 Thread mwllace
Im trying to use a datahelper class for my android database, and there is one line that when executed causes my app to quit unexpectedly. Im using android 2.2 Library. this.insertStmt = this.db.compileStatement(INSERT); // Crashes the emulator When I comment the line out the app runs fine, but

[android-developers] complieStatement(INSERT) crashing my app??

2011-09-16 Thread mwllace
Im trying to use a datahelper class for my android database, and there is one line that when executed causes my app to quit unexpectedly. Im using android 2.2 Library. this.insertStmt = this.db.compileStatement(INSERT); // Crashes the emulator When I comment the line out the app runs fine, but

[android-developers] Re: Android Alarm application

2011-09-16 Thread Indicator Veritatis
If the data is not going to be searched on, nor shared with other applications, a database is overkill. Simply writing it out as a data file or a Preference is adequate. The sample code for chapter 5 of Android in Action has samples that do all three approaches. It is freely downloadable even if

[android-developers] no Internet access

2011-09-16 Thread bob
What is a clean and simple way to handle the case where your app requires Internet access but isn't connected? -- 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

[android-developers] Re: Recorded voice is very very low and lot of noise is recorded.

2011-09-16 Thread dranfi
Hi, The human voice frequency is between 60Hz to 7 KHz see : http://en.m.wikipedia.org/wiki/Human_voice The nyquist-Shannon theorem says that the sampling rate need to be AT LEAST twice as the maximum frequency of the original signal :

[android-developers] widgets not showing up after ListView

2011-09-16 Thread John Goche
Hello, I am trying to insert a linear layout with a button or two at the bottom of a listview which is dynamically populated from source code. But the bottom button(s) (the one with text property set to Foo) do not show up. Any idea what I am doing wrong and how to fix it? ?xml version=1.0

[android-developers] Dispatching to original signal handler sometimes does not print the crash details to logcat

2011-09-16 Thread Shri
My app uses native code, and I install my custom signal handler to handle crashes. When it is called, it launches a separate crash- reporting process (the activity specifies android:process for process isolation) which will report the crash details in logcat after waiting for a bit (to ensure the

[android-developers] PDF Viewing

2011-09-16 Thread bob
Is there an easy way to display PDFs on Android? -- 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

Re: [android-developers] Intent.FLAG_ACTIVITY_REORDER_TO_FRONT does not work with PendingIntent

2011-09-16 Thread TreKing
On Fri, Sep 16, 2011 at 1:37 PM, Shri shri.bo...@gmail.com wrote: However, this does not seem to work even though I set Intent.FLAG_ACTIVITY_REORDER_TO_FRONT - a new instance gets created if MyActivity was not on top of my task's stack.

[android-developers] Re: HttpURLConnection with POST method

2011-09-16 Thread Alan
I may post this to a new subject, but I'll try here. Two days after giving this code sample, I found it doesn't work on Android ver. 2.3! My phone (LG Ally) and emulator were running version 2.2.2 the code below was working fine. I had a co-worker run the program on his phone it didn't work. His

[android-developers] no XML code formatting options in eclipse classic?

2011-09-16 Thread John Goche
Hello, I am using eclipse classic. This comes with formatting options for Java under Project - Properties - Java Code Style - Formatter, but alas there are no formatting options for XML source code there despite XML files being used quite a lot in android programming. I want my code formatted

Re: [android-developers] Intent.FLAG_ACTIVITY_REORDER_TO_FRONT does not work with PendingIntent

2011-09-16 Thread Shri Borde
I guess I can create a trampoline Activity which gets launched by clicking on the notification icon, and it could then start MyActivity using FLAG_ACTIVITY_REORDER_TO_FRONT. A bit of a pain which PendingIntent would have supported itself, but I can give this a shot. On Fri, Sep 16, 2011 at 3:22

Re: [android-developers] no XML code formatting options in eclipse classic?

2011-09-16 Thread Tor Norbye
This is coming in the next version of the ADT plugin (not yet released). See http://tools.android.com/recent/xmlformatter (and for other XML editing improvements, also see http://tools.android.com/recent/xmleditingimprovements -- Tor On Fri, Sep 16, 2011 at 3:31 PM, John Goche

[android-developers] Re: Using chimpchat

2011-09-16 Thread Case B
Where did you find the source and jar file? I am trying to do the same. On Sep 13, 5:35 am, suman sumanmeht...@gmail.com wrote: I have read on one of the Android groups that it is better ti use ChimpChat rather than usingMonkeyRunner. I have downloaded chimpchat source and jar file. Till now

[android-developers] Re: How to install APK programmatically without user prompt

2011-09-16 Thread Dianne Hackborn
On Fri, Sep 16, 2011 at 10:32 AM, Pratik Prajapati pratik.prajap...@gmail.com wrote: Is there any way to do it with some APIs or I should use 'pm install apk name' command (doing with system() api)? (a) Running the pm command doesn't give you any extra privileges. (b) NO shell commands are

Re: [android-developers] Intent.FLAG_ACTIVITY_REORDER_TO_FRONT does not work with PendingIntent

2011-09-16 Thread Dianne Hackborn
If you want to bring your whole task to the front, build an Intent which is the same thing used to launch it -- ACTION_MAIN, CATEGORY_LAUNCHER, and the component name set to the class if your root activity. On Fri, Sep 16, 2011 at 3:33 PM, Shri Borde shri.bo...@gmail.com wrote: I guess I can

Re: [android-developers] Re: Android development Online course at UCI

2011-09-16 Thread Nency Robert
HI all thanks for the reply. I hv already read some books and learning android. Yes you all are right, java knowledge is must. I also have 1 yr working exp on java development. But the pt is, how can I show the android knowledge in my resume? How can a recruiter believe from looking at my resume

Re: [android-developers] Re: Android development Online course at UCI

2011-09-16 Thread Miguel Morales
You typically include links to completed apps on your resume. This way employers know you can complete an application and that they're not paying for you to learn. On Fri, Sep 16, 2011 at 4:18 PM, Nency Robert angelgirl4...@gmail.com wrote: HI all thanks for the reply. I hv already read some

Re: [android-developers] widgets not showing up after ListView

2011-09-16 Thread TreKing
On Fri, Sep 16, 2011 at 3:47 PM, John Goche johngoch...@googlemail.comwrote: !-- ListView (grid_items) -- LinearLayout android:id=@+id/layout android:layout_width=wrap_content android:layout_height=fill_parent ListView android:layout_weight=1 android:id=@+id/listview

Re: [android-developers] PDF Viewing

2011-09-16 Thread Mark Murphy
startActivity() with an ACTION_VIEW Intent with the application/pdf MIME type and a Uri pointing to the PDF. Then, pray the user has a PDF viewer. If they don't, you can either catch the ActivityNotFoundException, or you can use PackageManager and queryIntentActivities() to see if the

[android-developers] Strange reviewers on Android Market...

2011-09-16 Thread sblantipodi
Hi all... Is there a way to fight idiot on this planet? I have plenty of good reviews and I have got plenty of 1 stars. The reason of the one star is that the app is a trial. The app is named: nameOfTheApp TRIAL in the description is written on the top: TRIAL VERSION Is there a way to block

[android-developers] Re: Why is the default to use dpi instead of screen size for drawables

2011-09-16 Thread ArcDroid
I thought it was due to too many graphics, but I did some more digging and found the issue. Now I have 160dpi graphics and no problems. Thanks All. http://www.arcdroid.com On Sep 15, 7:10 am, Kostya Vasilyev kmans...@gmail.com wrote: Did you ever consider finding out why it's crashing and

[android-developers] Cavnas's pattern to bitmap

2011-09-16 Thread Perry168
Hi all, If I draw some graphic on the cavnas, How can I convert the cavnas's pattern to a bitmap format? Thanks! -- 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

[android-developers] Re: HttpURLConnection with POST method

2011-09-16 Thread Alan
Found the problem on 2.3 in the emulator at least. It works if I add urlConnection.setRequestProperty(Content-Type, application/x-www- form-urlencoded); after the urlConnection.setRequestMethod(POST); line in the example in my earlier posting. The link I worked from (also given above)

[android-developers] Button Issue

2011-09-16 Thread giles ian
There is some space at bottom of the bottom. Its not centered vertically properly even after using android:layout_centerVertical=true. If u look very closely the button is occupying all space vertically (lite shade of green around button after selection) but the actual button image is slightly

[android-developers] Re: no Internet access

2011-09-16 Thread Chris
Bob, Riddle me this - what is a clean and simple way to handle the case where your app requires internet access but isn't connected. I like your questions, but I'd love to hear more about what you think the answers should be. -- You received this message because you are subscribed to the

[android-developers] Re: how to play video file using ffmpeg library android

2011-09-16 Thread Robert Willems
Navi or Naveem, or whatever... please go away. You keep on asking this question and expecting the world to do your bidding. If you claim to be a developer, go get a senior to help you. If you're not a developer, go get a company to make your stuff. But don't ask this question again. On Sep 16,

[android-developers] Re: Copying a file from assets or raw to /system/bin folder (rsync)

2011-09-16 Thread Conny
Guys, obviously I understand that /system/bin is read only, I would be blind not to be able to read the error messages. But the question is if I do need to get rsync into the bin folder what do I need to do. Rsync is a important feature to have on the android device. Helps to keep files in sync. I

<    1   2