[android-developers] Re: programmatic screenshot

2009-08-04 Thread Kaj Bjurman
I tried this a few days ago, and couldn't find a way to do it in pure Java. There can of course still be a way to do it, but it does also look like screenshot apps are using native code as part of their implementation. I'm still pretty new on Android development, but I don't think that the real p

[android-developers] How to build source code of Android applications like Media Provider in SDK ???

2009-08-04 Thread Rahul Bhagwat
I'm using Android SDK 1.5 r3. I have source code of Media Provider which i wanted to modify. My intention behind is : add http server files in the data base & Music application can list urls & can play on Media Player. So that i've created new project with package like com.android.Media & copied

[android-developers] Re: How to draw text in rectangle

2009-08-04 Thread Kent
I don't know what you are trying to do, but if it's just simple layout stuff you may be making life more difficult for yourself than necessary. Try one of these things instead: a: use a textView and set it's background property (either to a color #argb or to a drawable). This has limitations, but

[android-developers] Re: how can close other activity?

2009-08-04 Thread Saurav Mukherjee
i really do not understand wat u intend to say, all i can help is if u use the Activity public function finish(), the activity closes. use it when u need to close the activity, wisely. hope it helps. On Wed, Aug 5, 2009 at 9:09 AM, tstanly wrote: > > hi all, > > > for example,I have three activi

[android-developers] Get application version detail

2009-08-04 Thread Muthu Kumar K.
Hi All, I am trying to get the application version which is mentioned in AndroidManifest.xml How can i get this detail? Please suggest me. Thanks in Advance, Muthu Kumar K. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[android-developers] Re: how to use commons-net-2.0 lib in the emulator

2009-08-04 Thread tstanly
I finally solved, it's a eclipse problem. On 8月5日, 下午1時55分, tstanly wrote: > thanks for your reply, > but even I push the lib in the /system/framework, > but still can't work, > > when import org.apache.commons.net.ftp.FTP; > it still have errors? > > how can I solve > > thank you > > On 8月5日, 下

[android-developers] Re: OpenGL leaking garbage

2009-08-04 Thread Dmitry.Skiba
Good news, gyus! I've found a way to get rid of garbage collection! The receipt is simple (and ironic): do not use allocateDirect(), use allocate(). And use only ByteBuffer, not FloatBuffer, IntBuffer, etc. - using asFloatBuffer() on non-direct ByteBuffer will result in crash in libhgl. (I'm too

[android-developers] Re: how to use commons-net-2.0 lib in the emulator

2009-08-04 Thread tstanly
thanks for your reply, but even I push the lib in the /system/framework, but still can't work, when import org.apache.commons.net.ftp.FTP; it still have errors? how can I solve thank you On 8月5日, 下午1時21分, zhao lifeng wrote: > Hi tsai: > adb remount > best wishes > > > > On Wed, Au

[android-developers] Re: adc2: can use third party lib from the market?

2009-08-04 Thread blues
Somehow this post is not showing unless I do a search. Hopefully my reply can help it. On Aug 3, 8:28 pm, blues wrote: > My app uses the text-to-speech lib from the market, which is > developed > by Google Charles Chan. User needs to install the lib from the market > first time use my app (using

[android-developers] Re: how to use commons-net-2.0 lib in the emulator

2009-08-04 Thread zhao lifeng
Hi tsai: adb remount best wishes On Wed, Aug 5, 2009 at 11:43 AM, tstanly wrote: > > hi all, > > I want to import the org.apache.commons.net.ftp.FTP, > but there is no libs for it, > so I download the commons-net-2.0 lib from apache website, > > I try to push this lib into /system/fram

[android-developers] Re: Make a particular activity as a root activity in stack

2009-08-04 Thread And-Rider
can u please explain me as how to do this?... is it possible to finish all the activities when i start the last one?...how do i refer to that activity and call finish? On Aug 5, 8:07 am, greg wrote: > If you know the sequence is A->B->C->D, you could add a call to finish > () in A, B, C after th

[android-developers] Re: log info, pls help

2009-08-04 Thread yosemite
thanks. Could you please give me some instructions about how to do that in the emulaor? On Aug 4, 4:44 pm, Roman wrote: > Before flashing your phone, did you try to run the emulator with your > new system.img? > > -- > Roman Baumgaertner > Sr. SW Engineer-OSDC > ·T· · ·Mobile· stick together > T

[android-developers] Re: How to Run J2SE Code on Android

2009-08-04 Thread Gulfam
Hi, As said by mark murphy you cannot do that. all J2se libraries are not supported in android so you cannot do like this. There are so many beautiful libraries are available in android just explore then and enjoy your work. Regards, Gulfam On Aug 5, 4:06 am, Mark Murphy wrote: > Watermarker

[android-developers] Re: httpclient multipart form upload

2009-08-04 Thread cocoaghost
Thanks for the shortcut. On Jul 31, 4:18 pm, Julien Dupouy wrote: > Hey, > > Instead of including the jars files you can use the http multipart > classes defined in android but declared as internal, so you cannot use > them directly, you have to download them from the android source code > (http

[android-developers] Re: Problem in adb.exe

2009-08-04 Thread Nithin
Solved, removed the adb.exe from tools and put another adb.exe from earlier (1.5_r1) sdk. Thanks Nithin On Aug 5, 8:17 am, Nithin wrote: > Hi, > > When I am running any android project, emuulator will come, but after > that in console, its saying > > "[DeviceMonitor]Adb connection Error:An ex

[android-developers] how to use commons-net-2.0 lib in the emulator

2009-08-04 Thread tstanly
hi all, I want to import the org.apache.commons.net.ftp.FTP, but there is no libs for it, so I download the commons-net-2.0 lib from apache website, I try to push this lib into /system/framework/ but I can't because the directory is a read-only filesystem, and I try to chang mode for directory,

[android-developers] how can close other activity?

2009-08-04 Thread tstanly
hi all, for example,I have three activity now, a, b and c, a is start point of activity lifecycle, and can go to b or c, and then assume go to b from a and close a, and then go to c from b but will not close b, and this time, I want to check whether b is start(create) or not, if b start, I want

[android-developers] Re: Catching memory exception

2009-08-04 Thread cavalzheng
You can refer to java.lang.Runtime by reference tab of Android SDK online document. regards, Caval. On 8月5日, 上午10时50分, whitech wrote: > Thank you. > But I'm wondering if I can know how much memory I'm using in my > program so I can do some tractic in using memory. Is there some API > for us t

[android-developers] Problem in adb.exe

2009-08-04 Thread Nithin
Hi, When I am running any android project, emuulator will come, but after that in console, its saying "[DeviceMonitor]Adb connection Error:An existing connection was forcibly closed by the remote host". Then 11 connnection attempts will come in console. I am using windows XP. From windows one di

[android-developers] Re: Make a particular activity as a root activity in stack

2009-08-04 Thread greg
If you know the sequence is A->B->C->D, you could add a call to finish () in A, B, C after the call to startActivity(intent). On Aug 4, 11:55 am, And-Rider wrote: > can any one help me on this issue plz... > > On Aug 4, 5:33 pm, And-Rider wrote: > > > i have a set of activities on my stack Say

[android-developers] Re: how to get the app name instead of the app package to appear in the manage apps menu?

2009-08-04 Thread Dianne Hackborn
Use android:label in the application (and optionally activity) tag. On Tue, Aug 4, 2009 at 5:37 PM, Georgios Galyfos wrote: > hello, > > my question is simple enough: how can I get the application name instead of > the application package to appear on the manage applications menu. do i need > to

[android-developers] Spinners not displaying selected item

2009-08-04 Thread Aaron
I have a set of spinners that are working just fine, well mostly. When I click a button that takes me to another Activity and come back the spinners appear to have nothing selected. If I tap on them they show all of my items and the radio button for the item that is supposed to be selected shows

[android-developers] Re: Catching memory exception

2009-08-04 Thread whitech
Thank you. But I'm wondering if I can know how much memory I'm using in my program so I can do some tractic in using memory. Is there some API for us to use? On 8月5日, 上午10时38分, caval wrote: > Firstly you can enter into the shell mode by typing "adb shell"then because > android has a linux heart

[android-developers] Re: Catching memory exception

2009-08-04 Thread caval
Firstly you can enter into the shell mode by typing "adb shell"then because android has a linux heart so you can type "ps" to see all process's status which also including mem info. Regards, Caval. 2009/8/5 whitech > > Oh so sorry to hear that > Thank you. > There's another problem, is ther

[android-developers] custom attributes in properties view

2009-08-04 Thread Susan
I defined a custom component that extended from View. And I defined some attributes for it. But when I used it in a XML file, its custom attributes can't appear in the properties view of layout editor unless I write them in xml text editor. How can these custom attributes always exist in the

[android-developers] Re: Catching memory exception

2009-08-04 Thread whitech
Oh so sorry to hear that Thank you. There's another problem, is there some way to know how many memory my program is using ? On 8月4日, 下午6时39分, Mark Murphy wrote: > whitechwrote: > > There is another problem, can I push the limit of memory higher? It is > > a little too small with only 16 MB

[android-developers] Re: How to configure the web browser cache size?

2009-08-04 Thread UJ
Hello, Does anyone have any suggestions? I think configure browser cache size is a very useful feature. Thanks UJ On 7月30日, 下午3時46分, UJ wrote: > Dear all, > > Does anyone help me to configure the web browser cache size? > In HTC's new product HERO, they limit the cache size from 100KB to > 6MB

[android-developers] custom attributes in properties view

2009-08-04 Thread Susan
I defined a custom component that extended from View. And I defined some attributes for it. But when I used it in a XML file, it's custom attributes can't appear in the properties view of layout editor unless I write them in xml text editor. How can these custom attributes always exist in the

[android-developers] Vibration alert not working

2009-08-04 Thread Farhan
Hello, I am trying to use vibration alert with notification and flash lights within a service. I wrote the following code: private void vibrationAlert() { int icon = R.drawable.icon; CharSequence tickerText = "Some text"; long when = System

[android-developers] Re: ADC2

2009-08-04 Thread Holden Karau
I'm not really sure patents are a sensible method of copy protection. I think the original author is more concerned about people copying his application verbatim, rather than people developing clones (where patents _might_ help, but I'm not a lawyer). On Tue, Aug 4, 2009 at 7:09 PM, powerbyte wro

[android-developers] how to get the app name instead of the app package to appear in the manage apps menu?

2009-08-04 Thread Georgios Galyfos
hello, my question is simple enough: how can I get the application name instead of the application package to appear on the manage applications menu. do i need to set something in the manifest? thank you --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: log info, pls help

2009-08-04 Thread Roman
Before flashing your phone, did you try to run the emulator with your new system.img? -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily repre

[android-developers] latitude buddies content provider

2009-08-04 Thread Arno den Hond
I am trying to make a wave app which uses the locations of latitude buddies. Using PackageManager.queryContentProviders() I have discovered com.google.android.maps.FriendsProvider. By requesting a Cursor from content://com.google.android.maps.FriendsProvider I have discovered the columns _id, peo

[android-developers] Re: ADC2

2009-08-04 Thread powerbyte
Karthik, Just release 30 or 60 day trail version. piracy cannot be avoided. once your app is released your idea is out. so, patent your idea before release. -pb On Aug 4, 11:41 pm, karthikr wrote: > Hi Guys, > > Can someone help me out with requested info? > > Regards, > R.Karthik > > On Aug

[android-developers] Re: How to Run J2SE Code on Android

2009-08-04 Thread Mark Murphy
Watermarker wrote: > I am new to Android development. I am developing in Eclipse with > Android plugin. I am trying to execute the following J2SE code on > Android. Android is not J2SE. > It is being compiled without errors as I have imported the > JRE library in the android project. Don't do

[android-developers] Start a Calendar EditEvent Activity

2009-08-04 Thread CaseyB
I am having trouble starting a Calendar EditEvent activity with the correct info. I have a simple Event class that holds all of my information and on the selection of a menu item I pass the information to the EditEvent activity and all of it shows up correctly except the date and time. It always

[android-developers] Re: Settings.Secure.ANDROID_ID longevity

2009-08-04 Thread Maps.Huge.Info (Maps API Guru)
I found this link in Google: "More spoofing of the android id…" http://strazzere.com/blog/?tag=android_id This article deals spoofing the deprecated Settings.System.Android_ID However, I'm using Settings.Secure.ANDROID_ID which suggests that it's secure. Any comments? -John Coryat --~--

[android-developers] Re: Low battery warning missing - power drain on creating one?

2009-08-04 Thread Mark Murphy
TaoK wrote: > - If not, are "ACTION_BATTERY_CHANGED" intents the best way to > monitor for battery drain? There is also a separate ACTION_BATTERY_LOW Intent, but it is undocumented how low LOW is. > - Does Android really put the CPU to sleep when you lock the phone? Not necessarily immediatel

[android-developers] Re: Unable to write text file to sdcard on physical G1 device

2009-08-04 Thread doubleminus
Any help here? I'm still flummoxed and unable to write to the sd card. Thanks! double On Jul 29, 1:39 pm, doubleminus wrote: > So...it seems that something is messed up with my permissions, as > noted above. Is this the case? What is the remedy here? > > I've tried twiddling with some setting

[android-developers] Re: Low battery warning missing - power drain on creating one?

2009-08-04 Thread TaoK
Gah, replying to my own post - I know that's bad form... :( I just wanted to note one other thing I forgot to mention I found - a gentleman who created an online graphing log of his battery level over time: https://secure.grepular.com/blog/index.php/2009/03/30/google-phone-battery-usage-graphing

[android-developers] PendingIntent Flag and AlarmManager behavior ?

2009-08-04 Thread Derek
Hi all, The PendingIntent documentation describes flags. http://developer.android.com/reference/android/app/PendingIntent.html public static PendingIntent getService (Context context, int requestCode, Intent intent, int flags) Flags values could be: FLAG_CANCEL_CURRENT:268435456 FLAG_NO_CREATE:5

[android-developers] Low battery warning missing - power drain on creating one?

2009-08-04 Thread TaoK
Sorry, long ranting post. Summary: - Does Android have a low battery alarm (besides the useless silent popup)? - If not, are there apps to add one? (good ones, that don't themselves drain the battery?) - If not, are "ACTION_BATTERY_CHANGED" intents the best way to monitor for battery drain?

[android-developers] Re: IllegalArgumentException occur: parameter must be a descendant of this view in ViewGroup.java:2454

2009-08-04 Thread Romain Guy
Known bug it's been fixed in Donut On Tue, Aug 4, 2009 at 1:48 PM, Moxor wrote: > > Hi, > Did you manage to solve it? I have a similar problem. > Every time I change the focus to a button, and then touch another > button (I call setContentView()), the application crash with this > Logcat: > > 08-

[android-developers] Re: IllegalArgumentException occur: parameter must be a descendant of this view in ViewGroup.java:2454

2009-08-04 Thread Moxor
Hi, Did you manage to solve it? I have a similar problem. Every time I change the focus to a button, and then touch another button (I call setContentView()), the application crash with this Logcat: 08-04 17:12:00.251: ERROR/AndroidRuntime(880): Uncaught handler: thread main exiting due to uncaugh

[android-developers] Re: OpenGL leaking garbage

2009-08-04 Thread Dmitry.Skiba
Yes, and this is because they do not use any GL10 methods. All game is one big jni lib with tiny wrapper of java classes ontop. The only question is: how did they manage to access gl from jni? Dmitry On 1 авг, 00:15, Nightwolf wrote: > I think things aren't that bad. Take a look at Armadillo R

[android-developers] Spinner: text vs value

2009-08-04 Thread droidin.net
I declare my Spinner in the following manner (it's very static so I have 2 string arrays in array.xml for titles and values) I expect spinner.getSelectedItem() to return an array [title, value] but in fact it returns just a title String. Is it ignoring android:entryValues? How do I get a value

[android-developers] programmatic screenshot

2009-08-04 Thread NTDYLF
Hello all y'all. How can I take a screenshot programmatically? So far I've learned that: 1) DDMS does it by sending "framebuffer:" to the adb service over a socket, which takes a screenshot in framebuffer_service.c that it sends back. 2) There are some proprietary screenshot apps out there that s

[android-developers] ddms auto-clearing log

2009-08-04 Thread Jason Proctor
sorry if this is a FAQ, i don't see it anywhere. why does Mac ddms get itself into this auto-log-clearing mode every now and again? i get max 4 lines or so of log before it decides to zap it. can't imagine why anyone would want that functionality when there's a handy "zap log" widget right the

[android-developers] Re: clipboard copy paste

2009-08-04 Thread Jeff Sharkey
You're probably looking to grab an instance of ClipboardManager through Context.getSystemService(). j On Tue, Aug 4, 2009 at 6:23 AM, Bob wrote: > > Hi, > Is there a way to programmatically add text to the clipboard for copy/ > paste functionality into another app. > > Thanks, > Bob > > > --

[android-developers] Re: ADC2

2009-08-04 Thread karthikr
Hi Guys, Can someone help me out with requested info? Regards, R.Karthik On Aug 4, 8:21 pm, karthikr wrote: > Hi Guys, > > I have been planning to release the applications that I have developed > as paid applications and I do not have any plans to have a lite > versions of them. > > However I

[android-developers] Re: Rectangle vs Parallelogram..Plz Help!!!!

2009-08-04 Thread Maps.Huge.Info (Maps API Guru)
A more generic solution might be to treat it as a polygon and do a point in polygon analysis. Can the Java class Polygon be used with Android? -John Coryat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] Re: Spinner - don't display selection

2009-08-04 Thread droidin.net
Peter, thanks a bunch. Here's code snippet: // d is a dialog Spinner spin = (Spinner) d.findViewById(R.id.searchCriteria); spin.setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected(AdapterView parent, View view, int position, long id) { // hide selection text

[android-developers] log info, pls help

2009-08-04 Thread yosemite
Hi, I made some changes to the Android source code and rebuilt a system.img file. After that, I use fastboot flash system system.img to flash my Android Developer phone. However, there is a crash during the loading process. Is there any way I can read the log for this kind of crash? Thanks a lot.

[android-developers] Re: Rectangle vs Parallelogram..Plz Help!!!!

2009-08-04 Thread Yusuf T. Mobile
To check the intersection of a rectangle and parallelogram, you can divide the parallelogram into 3 parts: two triangles and the rectangle between them. Then do a intersection check on all three. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email a

[android-developers] Android / Java Developer Wanted

2009-08-04 Thread iPaul Pro
I am in independent Android developer, creating an app to enter the Second Android Developer Challenge. I am looking for a developer experienced in RESTful or JSON web API's. Specifically, requesting and parsing responses in Java, using HttpClient (org.apache.http.client) and SAX (javax.xml.parser

[android-developers] Re: Relative Layout XML attributes have no obvious programmatic equivalent.

2009-08-04 Thread bpellow
I got this to work with addrule and RelativeLayout.LayoutParams // center my_textbox RelativeLayout.LayoutParams params_center = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); params_center.addRule(RelativeLayout.CENTER_IN_PARENT);

[android-developers] Re: This bug is costing us money every month

2009-08-04 Thread Disconnect
They didn't wake up 2 weeks ago and say "hey, I know, lets call the hero the g2!" That device (and that name, or a variant thereof) has been around since at least the release of the g1, if not earlier. The fact that everyone decided every android phone was the g-something is irrelevant. (Hey, I ha

[android-developers] Can't get my widget to show up?

2009-08-04 Thread cvance383
I followed the tutorial off code.google.com to add widgets to your app. For some reason, when I run the app on the phone for testing, then long click the home screen to add widgets, my widget is not an option. I imagine I am doing something wrong, but I thought I followed the tutorial pretty well.

[android-developers] Correct Way to handle Dialogs and Screen Orientation

2009-08-04 Thread Hazam
Hi all, I'm experiencing MAJOR problems in handling screen orientation when there is a Dialog onscreen. It seems there is no correct way (as far as my understanding goes) to properly manage an onscreen Dialog (expecially a Progress Dialog running) when the user changes screen orientation (possib

[android-developers] Re: Listing Console does not update applicaitons statistics

2009-08-04 Thread DKIT
Anyone? On Aug 4, 4:18 pm, DKIT wrote: > My Android Market listing console (developer console) has not updatet > applicaiton statistics for several days. > > Why? > > Does it hurt my popularity ratings that my statistics are not updated? > > When will this be fixed? It is very annoying! --~--~--

[android-developers] Re: Android data buffer pass by jni problem

2009-08-04 Thread fadden
Check the archives on the android-ndk list, e.g.: http://groups.google.com/group/android-ndk/browse_thread/thread/36a4d13cb0d4bc26# http://groups.google.com/group/android-ndk/browse_thread/thread/a610cfe73aa2618e/c27be634e3305304 On Aug 4, 12:23 am, frog wrote: > Hi,all >     Have some tr

[android-developers] Re: How to customize ExpandableList

2009-08-04 Thread Edi
You can replace it with your own image (in the xml layout, use android:groupIndicator). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer

[android-developers] Settings.Secure.ANDROID_ID longevity

2009-08-04 Thread Maps.Huge.Info (Maps API Guru)
According to the documentation, this setting: "The Android ID (a unique 64-bit value) as a hex string" Question: How dynamic is this value? Is it unchanging throughout the life of the device, the same across Android versions or what? I'd like to use this constant to identify a distinct device wi

[android-developers] Re: Catching memory exception

2009-08-04 Thread Dianne Hackborn
You really really should be catching OutOfMemoryError, not eating every possible exception that could come out of the code. 2009/8/3 whitech > > thank you, I can catch the error now. I've use catch(Exception) not > catch(Error) before so I can't catch it. > There is another problem, can I push t

[android-developers] Re: Add Contact not working

2009-08-04 Thread jats1234
Using following code I was able to add email and phone number.. Intent addEmailToContactIntent = new Intent (Intent.ACTION_INSERT_OR_EDIT); addEmailToContactIntent.putExtra (Contacts.Intents.Insert.EMAIL, Uri.decode(extra)); addEmailToContactIntent.setType (Contact

[android-developers] Re: Relative Layout Limitation

2009-08-04 Thread Romain Guy
> That is, does toRightOf, toLeftOf and the rest only work with views > at the same hierarchy level? That is correct. > And, BTW, where is the hot sh*t resource editor for Android so I can > bang out screens quickly like the iphone guys, using a visual > interface designer that knows all these s

[android-developers] Relative Layout Limitation

2009-08-04 Thread Ward Willats
Is it true that if you have a ViewGroup, say a RadioGroup, you can't align items outside the group to ones inside the group (using toRightOf, alignTop, etc.) That is, does toRightOf, toLeftOf and the rest only work with views at the same hierarchy level? I was trying to label some vertical ra

[android-developers] Re: file change notification permission for native c application?

2009-08-04 Thread Dianne Hackborn
There is no permission needed to get file change notifications, but you do need to have general permission to access whatever file/dir you re watching, and applications have a very limited set of the file system that they have permission to. On Tue, Aug 4, 2009 at 1:04 AM, cavalzheng wrote: > >

[android-developers] Re: Extracting files from APK

2009-08-04 Thread Dianne Hackborn
Just use unzip or any other tool that handles zip files. On Mon, Aug 3, 2009 at 6:19 PM, Hans A wrote: > > Hi > > I'd like to extract classes.dex from an APK file. I've tried using > aapt, but I can't see an option for extracting the files. When I run > the aapt tool without options it prints

[android-developers] Re: Activity timeout on WebView load

2009-08-04 Thread droidin.net
Well I have background threads to load HTML content the way you guys describe it - I use HttpClient to grab HTML and then I use Handler to display that with WebView#loadData. But this is a special case - I want to load URL directly into the WebView#loadURL, so how do I do it on a background thread

[android-developers] Re: Make a particular activity as a root activity in stack

2009-08-04 Thread And-Rider
can any one help me on this issue plz... On Aug 4, 5:33 pm, And-Rider wrote: > i have a set of activities on my stack Say A-->B-->C. when i launch > the activity named 'D' it should get fired as the root activity of my > application and all the other activities(A,B,C) should get cleared > from m

[android-developers] Re: Sharing data between activities

2009-08-04 Thread Roman
As already mentioned earlier, you could also use Intents which are very lightweight. You are able to attach also a data record to your intent using the method putextra(). http://developer.android.com/reference/android/content/Intent.html -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile·

[android-developers] Re: Sharing data between activities

2009-08-04 Thread powerbyte
Hello >>To summarize: Activities don't have constructors! How do I send data >>to them from their parent activity??? we can send data from parent activity to childs, using Intent for example: In parent activity, Intent intent = new Intent(this,com.sample.aaa.class); //aaa is child activity

[android-developers] Re: This bug is costing us money every month

2009-08-04 Thread Cédric Berger
On Tue, Aug 4, 2009 at 16:33, Disconnect wrote: > ...so if I start calling the htc touch pro "mcdonalds" that makes it > correct, and mcdonald's is the one causing confusion? > > Yeah, I don't think so.. just because you decide the magic/mytouch is the g2 > doesn't make it so. Especially when the

[android-developers] Re: Issue with alarm clock

2009-08-04 Thread Chris
On Aug 4, 6:08 pm, Chris wrote: > Any idea how can i create dyanamic pending intents, with different > Intent.Action > > On Aug 3, 6:58 pm, Chris wrote: > > > > > Hi guys, > > I am overriding the functionalities of current androidalarmclock. As > > of now, if we have set twoalarmof ,say, 10:10

[android-developers] Re: ADC2

2009-08-04 Thread karthikr
Hi Guys, I have been planning to release the applications that I have developed as paid applications and I do not have any plans to have a lite versions of them. However I am planning to take part in the android developer challenge and I have noted that my application will be given to users frr

[android-developers] Re: how to load a .so library in a apk?

2009-08-04 Thread Aki
I putted my created .so file into libs/armeabi/ I reccomend you download Android NDK . http://developer.android.com/sdk/ndk/1.5_r1/index.html and ask Android NDK Group is better. http://groups.google.com/group/android-ndk thanks On 8月4日, 午後4:03, Kaj Bjurman wrote: > I'm not sure about this, s

[android-developers] Getting content in browser launched activity

2009-08-04 Thread Ed
Hello, I have an activity which is launched to process a file which is downloaded from a website. The site requires a login and maintains the session via cookies. The activity has an intent filter defined and it is started but I do not understand how it can get the document that was origin

[android-developers] How to use PopupWindow()

2009-08-04 Thread chiyo
How to create a pop up window --~--~-~--~~~---~--~~ 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, se

[android-developers] How to Run J2SE Code on Android

2009-08-04 Thread Watermarker
I am new to Android development. I am developing in Eclipse with Android plugin. I am trying to execute the following J2SE code on Android. It is being compiled without errors as I have imported the JRE library in the android project. In the Configure Build Path option I have imported JRE System L

[android-developers] Using AsyncTask as Serializable or Parcelable --> To void activity destruction(orientation or during incoming phone call)

2009-08-04 Thread Vikas
Hi Guys, I have a requirement where I have to read/parse some data from the server(using HTTPConnection) and then display it on to the screen. To avoid ANR issue I used AsyncTask to perform the above. Now in order to avoid application crash in case the activity gets destroyed(either by OS or if o

[android-developers] Re: referencing projects in eclipse

2009-08-04 Thread LCamel
Sometimes it can be solved by restarting eclipse and choose "Project / Clean..." . I'm using ADT 0.9.1.v200905011822-1621 . Luoh Ren-Shan On 7月27日, 下午5時38分, Bart van Wissen wrote: > I'm working on twoprojects. One is essentially a library, and the > other is an application using that library.

[android-developers] How to draw text in rectangle

2009-08-04 Thread wr1472
Hi, I have just started looking at developing for Google Android and want to draw a rectangle with some text in it that I then want to position where i want on screen. I have got as far as drawing a rectangle on screen using a ShapeDrawable and RectShape I now want to put some text in the rectan

[android-developers] Re: View Android Marketplace

2009-08-04 Thread Mohamed Hamdouni
You also have www.touch-market.com The + of www.touch-market.com: - List of widgets on their initial category as well as in a separate one - List of official devices with photos and full specs - 2D codebar for direct link to android market on your device - Screenshots (WYSIWYG => What You See Is

[android-developers] how to make an activty go in background

2009-08-04 Thread niteshwar kumar
Hi all, I am new to android development.Actually i am developing an application where i am making an activity to sleep for some time.but until the activity is in the sleep mode the system gets hanged for that time.So please if any one can suggest me how to solve this problem --~--~-~--~--

[android-developers] Can I apply git tag command to Android Source Code.

2009-08-04 Thread Kunjal
Here is the scenario. We have downloaded android cupcake mirror and make it git repository. After doing that we have applied our own tag to android mirror. (For examle: XYZ) now, when we perform below commands, repo init -u mobcom...@mobcom-git.sj.broadcom.com:/projects/ mobcom_andrgit/scm/git_

[android-developers] Re: How to integrate my application to paypal

2009-08-04 Thread gunnar-medial
Check out their developer pages, things all go over HTTPS so I don't see what would prevent implementation. You need an account and merchant API key. The finer lines of license agreements are probably worth assessing to identify any legal hurdles. See https://www.paypal.com/developer Regards,

[android-developers] Re: How can I specify a border color for an ImageView when it has focus

2009-08-04 Thread Roy
You can create a xml file under res/drawable. For example: res/ drawable/text_style.xml Here is the content: http://schemas.android.com/apk/res/android";> Here is shape_2.xml http://schemas.android.com/apk/res/android";> On Aug 3, 7:21 pm, n179911 wro

[android-developers] Minor in Android Developer Challenge

2009-08-04 Thread Anonymous
Hi All, I'm a minor and wish to enter the Android Developer Challenge, however the Terms and Conditions state that you must be above the legal age of majority. Is it possible for me to enter if my parents enter the contract on my behalf? Thanks. --~--~-~--~~~---~--~

[android-developers] Re: This bug is costing us money every month

2009-08-04 Thread GC
On Aug 3, 4:42 pm, Disconnect wrote: > The G2 JUST came out - it may cost you money next month, but it hasn't cost > you anything yet... > > On Mon, Aug 3, 2009 at 3:50 AM, Mister Helmut wrote: > Go grab WiSyncPlus from the market. It even has built in roaming protection mechanisms. You can re

[android-developers] Extracting files from APK

2009-08-04 Thread Hans A
Hi I'd like to extract classes.dex from an APK file. I've tried using aapt, but I can't see an option for extracting the files. When I run the aapt tool without options it prints out the list, dump, package, remove, add and version commands, but it doesn't seem to me like any of them extracts f

[android-developers] file change notification permission for native c application?

2009-08-04 Thread cavalzheng
I am migrating a c program from linux to android when lauch it in the shell everything is ok, but when I lauch it from UI with Runtime.getRuntime().exec(...), there is permission issue for the file change notification, also I know there is mechanism of permission on android, but I can not find re

[android-developers] Sending data to android dev phone using 3G connection

2009-08-04 Thread Pushkar Sachdeva
I have a server application listening on port 5001 on an anroid dev phone. The client application running on my laptop tries to send data to the server application. The client can successfully connect and send data to the server machine when the phone has wifi enabled. The command to do this is -

[android-developers] After installing the cvs repository I get compilation error

2009-08-04 Thread Dolphin
After installing the cvs repository I get compilation error: Such as: "Description ResourcePathLocationType R.id.ok cannot be resolved HelloRelativeLayout.java/Hello Relative Layout/src/com/HelloRelativeLayout/example line 14 Java Problem.." Any idea ? Th

[android-developers] Build fingerprint: 'generic/google_sdk/generic/:1.5/CUPCAKE/147336:eng/test-keys'

2009-08-04 Thread Archana
Hi, While running i am getting this error in my logcat and my app exiting automatically...Can anyone tell me why this happends.. 08-04 20:38:50.875: INFO/DEBUG(535): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 08-04 20:38:50.875: INFO/DEBUG(535): Build fingerprint: 'generic

[android-developers] invoking softkeyboard in android

2009-08-04 Thread Harishkumar V
Hi, i have a android sdk version 1.5 r2, where virtual keyboard works. but the problem is, for example, when i open a browser in the emulator, when i move the mouse and click at the textbox, the virtual keyboard launches, without the mouse, it cannot. is there anyway using only the keyboard, la

[android-developers] Re: Attention moder ators! Fwd: 메일 전송 실패 알림

2009-08-04 Thread Justin (Google Employee)
Messages are appearing just fine for me. This is appears to be a BASE64 encoded version (standard for email) of what you posted. My guess is that your email client or server is not interpreting it correctly. Regards, Justin Android Team @ Google On Aug 4, 7:35 am, Disconnect wrote: > ..again, i

[android-developers] Re: Import bug MapView Superclass not found Dalvik class loader

2009-08-04 Thread Fred Grott(shareme)
Never mind found the error Placement of the uses-library of Google Maps has to occur after the ending activity tag.. On Aug 4, 9:56 am, "Fred Grott(shareme)" wrote: > Hello and Good Morning, > > I was doing examples of MapView to finish my templates for the > AndCooper Build tool and found

[android-developers] Import bug MapView Superclass not found Dalvik class loader

2009-08-04 Thread Fred Grott(shareme)
Hello and Good Morning, I was doing examples of MapView to finish my templates for the AndCooper Build tool and found that no matter what example I try I get the same exception errors in SDK 1.5r3.. First lets head off the obvious. -No widgets are present in the example. -Simple class: package

[android-developers] Re: Images not loading on the phone

2009-08-04 Thread Justin (Google Employee)
Jason, Yeah, this is a good way to do it, and about as memory efficient as you can get, and seems be more efficient than using a StringBuffer to hold the response data, which another strategy I've seen for downloading a response of unknown size. The issue there is that eventually the underlying d

  1   2   >