Re: [android-developers] android lazarus based pascal dev on windows

2012-03-24 Thread Todd Grigsby
Delphi XE2 has some cross-platform capabilities. Check it out on Emarcaderos web site. I'm not sure Lazarus has that capability, On Feb 21, 2012 3:03 PM, Siva sivabsang...@gmail.com wrote: Hi all ... I would like to know if any of you guys have worked on app dev with pascal ..?? Please

[android-developers] Re: How to detect motion on android device

2012-03-24 Thread kronos
Take a look at http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html First. You implement the interface, but you forgot to register them. One I caught was kamera.setOneShotPreviewCallback ( Camera.PreviewCallback() ); Another thing to

[android-developers] Calling OnCreate() of one class from another class

2012-03-24 Thread ravindra bhavsar
Hello developers, I want to call OnCreate() of one class from another class which extends BroadcastReceiver.How to i do that. plz anybody help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Mobile to Mobile remote access

2012-03-24 Thread MadihaKhalid
I am trying to share Mobile screen with complete access of its events to Other Mobile.. that one device share its screen to another Mobile like Team View provides . On Friday, March 23, 2012 11:38:49 PM UTC+5, James Black wrote: What are you trying to do? For example, do you want to

[android-developers] Re: Google Wallet == Google Play In-App Service?

2012-03-24 Thread Zsolt Vasvari
Google Wallet == PayPal On Saturday, March 24, 2012 10:43:01 AM UTC+8, Danny wrote: Hi, Android peoples. I'm adding in-app payments to my app and was looking at Google Wallet. The tutorial https://developers.google.com/payment-express/tutorialseemed better suited for adding Google

Re: [android-developers] Calling OnCreate() of one class from another class

2012-03-24 Thread Justin Anderson
U Why? On Mar 24, 2012 1:18 AM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Hello developers, I want to call OnCreate() of one class from another class which extends BroadcastReceiver.How to i do that. plz anybody help. -- You received this message because you

[android-developers] Re: Mobile to Mobile remote access

2012-03-24 Thread MadihaKhalid
i have also find , that it will be possible through server who will pass traffic between Mobile phones. but how i can make it possible when a mobile user share Screen with other mobile user and this mobile can have access to use this Mobile as shown in attach file On Friday, March 23,

Re: [android-developers] Calling OnCreate() of one class from another class

2012-03-24 Thread ravindra bhavsar
Actually i want to call web service when sms is receive with particular word and my web service is in another class and all the functionality written in OnCreate(). so i want to call web service class from sms Receive class. i m trying to call onCreate() but it throws NULL POINTER EXCEPTION. If u

Re: [android-developers] Calling OnCreate() of one class from another class

2012-03-24 Thread Jagruti Sangani
use the intent for calling the next activity so it will always run from starting... On Sat, Mar 24, 2012 at 3:08 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Actually i want to call web service when sms is receive with particular word and my web service is in another class and all

Re: [android-developers] Calling OnCreate() of one class from another class

2012-03-24 Thread ravindra bhavsar
Thanks for reply Jagruti. can u tell me.When i start activity it will automatically use all functionality that access required web service? . On Sat, Mar 24, 2012 at 3:13 PM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: use the intent for calling the next activity so it will always run

Re: [android-developers] Calling OnCreate() of one class from another class

2012-03-24 Thread Jagruti Sangani
I have never used the web service but you want to call oncreate() so it will help by intent. On Sat, Mar 24, 2012 at 3:18 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Thanks for reply Jagruti. can u tell me.When i start activity it will automatically use all functionality that

[android-developers] DexClassLoader

2012-03-24 Thread moutaz al-azab
Hi Everyone, I am trying to play with DexClassLoader http://developer.android.com/reference/dalvik/system/DexClassLoader.htmland http://www.java2s.com/Open-Source/Android/android-core/platform-libcore/dalvik/system/DexClassLoader.java.htmI am wondering how can I use these classes. I am not expert

[android-developers] Re: Save the whole Intent and context at somewhere

2012-03-24 Thread Ali Chousein
When you register to ACTION_ANSWER it should work normally actually. There is a short thread on this here: http://stackoverflow.com/questions/5990590/how-to-detect-phone-call-broadcast-receiver-in-android  This is such a common functionality, I'm sure you can find lots of other examples. If your

Re: [android-developers] Calling OnCreate() of one class from another class

2012-03-24 Thread ravindra bhavsar
Thanks Jagruti. That suggestion given by u is works fine .I m trying call that web service from last two days but when i calling onCreate() on that class object it throws NULL POINTER EXCEPTION.ISince from last two day i do lot of changes to solve this problem but it does not work and I m so much

[android-developers] Bank Applications

2012-03-24 Thread moutaz al-azab
Hello Everyone, I am trying to install online application bank for Android but I couldn't succeed. I installed the Android market in my emulator. However when I search for online apps I couldnt find anything. it seems becasue I am working with emulator. Does anyone know how can I install Android

[android-developers] Re: How to handle unicode expression included in String

2012-03-24 Thread Jaden Pak
I found the solution. Unicode expressions like #34; can be regarded as one of HTML string. So, I made the function which convert html string into a normal String. public static String convertHtmlTagInString(String orignalString) { Spanned spanned =

[android-developers] send twitter status with geolcation using api

2012-03-24 Thread Live Happy
i have integrated twitter API in my android application using twitter4j API and i want to sent status with geolocation and for that i used this method public void updateStatus(String status,GeoLocation geo) throws Exception { try { mTwitter.updateStatus(status,geo); } catch

Re: [android-developers] Bank Applications

2012-03-24 Thread Jim Graham
On Sat, Mar 24, 2012 at 09:11:45PM +1100, moutaz al-azab wrote: I am trying to install online application bank for Android but I couldn't succeed. I installed the Android market in my emulator. However when I search for online apps I couldnt find anything. it seems becasue I am working with

[android-developers] How is 'onHandleIntent' handled in an IntentService

2012-03-24 Thread Put_tiMe
I have an intent service. From another class, I create 3 different intents at 3 different times, like this: At Time X: Intent aIntent = new Intent(context, abcd.service.ABCD_Processor.class); aIntent.setAction(Do_A); context.startService(aIntent); At Time X + 50 milliseconds: Intent bIntent =

Re: [android-developers] Re: new 50mb expansion pack functionality, api 11... no easy dice?

2012-03-24 Thread B Lyon
and btw, the DownloaderService as is did not work for me if the needed custom subclass of DownloaderService was not in the same package as the app... based on how DownloaderService.java starts the service in its internals. Took me a little bit to figure out that was what was going on... On Thu,

Re: [android-developers] How is 'onHandleIntent' handled in an IntentService

2012-03-24 Thread Mark Murphy
On Sat, Mar 24, 2012 at 8:45 AM, Put_tiMe putt...@gmail.com wrote: Will they be invoked one after the other, in the order they were raised. Yes. Is there any chance that 'onHandleIntent' will be called in parallel, to handle more than one intent simultaneously. No. IntentService only has one

[android-developers] Re: free publisher account

2012-03-24 Thread νιяιη¢нソ
Thanks every one!!! But how can indian publishers publish their apps for price On Wednesday, March 21, 2012, vamsi Vamsi va...@partialbits.in wrote: to add to TreKing's reply, if you are from India, you cannot release paid apps in the market on your own, even after paying the fees. On Wed,

Re: [android-developers] Re: free publisher account

2012-03-24 Thread Raghav Sood
Thanks every one!!! But how can indian publishers publish their apps for price Register a company in a supported country and use that to sell your apps. That's how I'm planning to do it anyways. Thanks -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ -

Re: [android-developers] How is 'onHandleIntent' handled in an IntentService

2012-03-24 Thread Kostya Vasilyev
24.03.2012 16:45, Put_tiMe пишет: Will they be invoked one after the other, in the order they were raised. As Mark already said, yes, it's sequential. If you look at the implementation: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/app/IntentService.java

Re: [android-developers] Re: Mobile to Mobile remote access

2012-03-24 Thread Kristopher Micinski
You can't do this. Not without major changes to the firmware. And even then nobody will have your firmware, so nobody will be able to use it.. kris On Sat, Mar 24, 2012 at 5:02 AM, MadihaKhalid tears.blos...@gmail.com wrote: i have also find , that it will be possible through server who will

Re: [android-developers] Google Wallet == Google Play In-App Service?

2012-03-24 Thread TreKing
On Fri, Mar 23, 2012 at 9:43 PM, Danny Favela dfav...@gmail.com wrote: Google Play won't cut it for me because my app will not be solely deployed on the Google Market/Play. That is tricky. I don't have experience implementing in-app payments, but from my reading each market will want you to

Re: [android-developers] Re: R cannot be resolved to a variable error in intro example code

2012-03-24 Thread Justin Anderson
What API are you building against? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 11:20 AM, firebreather michaelirvingbr...@gmail.com wrote: this is the MainActivity.java file in the Hello Android example code: package

Re: [android-developers] Google Wallet == Google Play In-App Service?

2012-03-24 Thread Justin Anderson
Yeah, you are going to have to have different builds for the different stores that you want to deploy on... And it isn't just in-app billing that is the problem, either... If your app contains share links so that you can have your users share a download link for your app, each store is going to

[android-developers] getHits() succeeds but waitForActivityWithTimeout() returns null

2012-03-24 Thread Y2i
Could someone please help me understand why in the code below assertEquals(1, monSettings.getHits()) succeeds but assertNotNull(activitySettings) fails? WifiSettingsActivity starts fine, I can see it, but activitySettings is null. Is it because I'm starting an activity that is defined outside

[android-developers] So why is the style attribute for a view not in the android namespace?

2012-03-24 Thread David Karr
I'm just curious about the background on this, but I was wondering why the style attribute in a view definition isn't in the android namespace. For instance, in the following sample: TextView android:id=@+id/errorText style=@style/ErrorText android:text=No errors at this time

Re: [android-developers] Calling OnCreate() of one class from another class

2012-03-24 Thread Justin Anderson
.I m trying call that web service from last two days but when i calling onCreate() on that class object it throws NULL POINTER EXCEPTION You don't call onCreate() of another class directly... EVER. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On

[android-developers] NullPointerException on setOnClickListener

2012-03-24 Thread Vitor Pacheco
My code is returning this error and do not know how to solve it. E/AndroidRuntime(10863): java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.vitorpacheco.B2SShareFeedReader/br.com.vitorpacheco.B2SShareFeedReader.B2SShareFeedReader}: java.lang.NullPointerException If I

Re: [android-developers] NullPointerException on setOnClickListener

2012-03-24 Thread Mark Murphy
On Sat, Mar 24, 2012 at 12:33 PM, Vitor Pacheco vitorpc...@gmail.com wrote: My code is returning this error and do not know how to solve it. E/AndroidRuntime(10863): java.lang.RuntimeException: Unable to start activity

[android-developers] Re: NullPointerException on setOnClickListener

2012-03-24 Thread Y2i
Could you please verify that btnFeed is not null? -- 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] Re: NullPointerException on setOnClickListener

2012-03-24 Thread Vitor Pacheco
Sorry, I changed the code a bit ... but the line is btn.setOnClickListener (this); 2012/3/24 Y2i yur...@gmail.com Could you please verify that btnFeed is not null? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: NullPointerException on setOnClickListener

2012-03-24 Thread Vitor Pacheco
I put the setContentView() before and it worked. thank you!! 2012/3/24 Vitor Pacheco vitorpc...@gmail.com Sorry, I changed the code a bit ... but the line is btn.setOnClickListener (this); 2012/3/24 Y2i yur...@gmail.com Could you please verify that btnFeed is not null? -- You

[android-developers] Re: getHits() succeeds but waitForActivityWithTimeout() returns null

2012-03-24 Thread Y2i
I tried starting different activities using the code below. The test always succeeds if an activity I'm starting is defined in the package under test, which is in turn defined by the instrumentation/ tag in AndroidManifest.xml But as soon as I try to start an activity that is defined outside

[android-developers] Re: getHits() succeeds but waitForActivityWithTimeout() returns null

2012-03-24 Thread Y2i
More information: I also have a test that clicks a an email link on an emulator where more than one email client is installed. When a test clicks on the link, a chooser activity is launched. The chooser activity is defined outside of the package under test, and yet the test CAN access it.

Re: [android-developers] which is best Handler or Timer ?

2012-03-24 Thread Indicator Veritatis
This answer is true and correct, but could have used a little more explanation. The Timer class is included because it is expected in Java. But it is not particularly suitable for the way tasks and processes should be handled on an Android phone. Handler is. The OP can define an arbitrary

[android-developers] Task killer android

2012-03-24 Thread oneking
How to make a task killer? If someone could just give me an example code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Task killer android

2012-03-24 Thread Kristopher Micinski
You understand that task killers are an Android antipattern, correct? kris On Sat, Mar 24, 2012 at 2:59 PM, oneking onekingg...@gmail.com wrote: How to make a task killer? If someone could just give me an example code. -- You received this message because you are subscribed to the Google

[android-developers] Re: Task killer android

2012-03-24 Thread oneking
Yes, i know On Mar 24, 8:02 pm, Kristopher Micinski krismicin...@gmail.com wrote: You understand that task killers are an Android antipattern, correct? kris On Sat, Mar 24, 2012 at 2:59 PM, oneking onekingg...@gmail.com wrote: How to make a task killer? If someone could just give

Re: [android-developers] Re: Task killer android

2012-03-24 Thread Kristopher Micinski
That doesn't ... upset you? kris On Sat, Mar 24, 2012 at 3:13 PM, oneking onekingg...@gmail.com wrote: Yes, i know On Mar 24, 8:02 pm, Kristopher Micinski krismicin...@gmail.com wrote: You understand that task killers are an Android antipattern, correct? kris On Sat, Mar 24, 2012

Re: [android-developers] Re: Task killer android

2012-03-24 Thread Kristopher Micinski
http://developer.android.com/reference/android/app/ActivityManager.html#killBackgroundProcesses(java.lang.String) On Sat, Mar 24, 2012 at 3:16 PM, Kristopher Micinski krismicin...@gmail.com wrote: That doesn't ... upset you? kris On Sat, Mar 24, 2012 at 3:13 PM, oneking onekingg...@gmail.com

Re: [android-developers] Task killer android

2012-03-24 Thread Jim Graham
On Sat, Mar 24, 2012 at 03:02:41PM -0400, Kristopher Micinski wrote: You understand that task killers are an Android antipattern, correct? They do have their (quite limited) uses, though. First, there's this highly annoying (and extremely stupid) system app in some releases called Global

[android-developers] Set Layout Background Image and change color of the image dynamically

2012-03-24 Thread Android Developer
Hi, I have LinearLayout i want to set Image as background and i need to change the image color. I mean image remains transparent and it should reflect whatever background color we choose. I dont know how to start with any example is helpful. Thanks in Advance. -- You received this message

[android-developers] Application not installed!

2012-03-24 Thread Bpn
I keep getting Application not installed error message, when i try to do an in app update (with .apk file hosted on my server) . It downloads file successfully and prompts me to install the application with the package installer. I click install and this error pops up. I checked the log files and

Re: [android-developers] Re: Custom Dialog for Force Closed Android

2012-03-24 Thread TreKing
On Fri, Mar 23, 2012 at 11:54 PM, Vivek Khandelwal vivek.b.khandel...@gmail.com wrote: User selects a Record and try to Edit in Edit Activity. But Edit Activity had the Error. So fix that error so it doesn't happen using the information you get from ACRA. Honestly, that will be the fastest

Re: [android-developers] Re: is not onActivityResult called when the process is killed?

2012-03-24 Thread TreKing
On Fri, Mar 23, 2012 at 10:20 PM, Tac dr051...@gmail.com wrote: D/B(15580): -- onCreate -- ... D/A(15580): -- onCreate -- It looks like I came back to B. Am I wrong? That looks strange. That looks like B was created first, then A, unless your ... is B being stopped. The system does some

[android-developers] Re: Application not installed!

2012-03-24 Thread Bpn
Solved this..The issue was that the application on the phone in the first case itself was not signed. Once i installed the signed version on the phone and tried updating from that - it worked :) On Mar 24, 4:08 pm, Bpn bi...@lokalty.com wrote: I keep getting Application not installed error

Re: [android-developers] Set Layout Background Image and change color of the image dynamically

2012-03-24 Thread Justin Anderson
Am I the only one confused by this question? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sat, Mar 24, 2012 at 1:45 PM, Android Developer c2dmdevelo...@gmail.comwrote: Hi, I have LinearLayout i want to set Image as background and i need to

Re: [android-developers] Task killer android

2012-03-24 Thread Justin Anderson
The only way to officially kill an Android app is by going to the App Info screen in Android. On that screen is a Force Stop button. Task killers are bad (and they don't work). However, you can install my app, which is a Task Switcher, and which also has a very nifty way of getting to the App

Re: [android-developers] Re: Hello everyone, i couldn't figure out what this error in the logcat means!!!

2012-03-24 Thread Justin Anderson
Apen sorry i dint notice ur suggestion, no it's not about the name, hmm i think it's something wrong with the order of the blocks... No, it IS about the name... Apen was correct (and that is what I was trying to say before, but was REALLY tired so I apologize for the incoherent replies).

Re: [android-developers] SQLite error

2012-03-24 Thread Justin Anderson
http://www.catb.org/~esr/faqs/smart-questions.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 11:32 AM, khaja shaik khaja.andr...@gmail.comwrote: Hai Friends I am facing problems with sqlite database example. I am trying to

[android-developers] Runtime

2012-03-24 Thread marwa
Hi , I want to execute some command shell into android , but i have a problem when i use command 'echo' Error running exec(). Command: [echo, 201918, , /data/System/password.key] Working Directory: null Environment: null any suggestion plz. thanks -- You received this message because you

[android-developers] Recently released: SocialNav

2012-03-24 Thread Ali Chousein
An individually developed Android application, where social networking and mobile navigation meet. More information can be found at: http://socialnav.blogspot.com It can be downloaded from: Google Play: https://play.google.com/store/apps/details?id=com.apps.social_nav Handster:

Re: [android-developers] Re: Hello everyone, i couldn't figure out what this error in the logcat means!!!

2012-03-24 Thread Kostya Vasilyev
25 марта 2012 г. 0:55 пользователь Justin Anderson magouyaw...@gmail.com написал: Apen sorry i dint notice ur suggestion, no it's not about the name, hmm i think it's something wrong with the order of the blocks... No, it IS about the name... Apen was correct (and that is what I was trying

[android-developers] Problem reading HTTP stream

2012-03-24 Thread g...@deanblakely.com
The code pasted below gets an exception on tha line that says... InputStream in = new BufferedInputStream(urlConnection.getInputStream()); It's an IO exception that says: java.net.UnknownHostException: www.android.com I checked and that is a valid url. I got the original code from the android

Re: [android-developers] Force opening web URLs YouTube videos in Android phone's DEFAULT browser using Intent.

2012-03-24 Thread Justin Anderson
AFAIK you can't... On Mar 23, 2012 12:40 AM, Shajahan lovesa...@gmail.com wrote: I am trying to launch browser with the specified URL. It works fine if it's web URL, but when the URL detected to be a video(say YouTube video) then it come up with choices to make between the browser YouTube

[android-developers] Re: Listview of programmatically created Drawables

2012-03-24 Thread Gene
How can you get programmed stroked Drawables (not bitmaps) to appear in the lines of a ListView? On Mar 23, 1:36 am, TreKing treking...@gmail.com wrote: On Thu, Mar 22, 2012 at 9:42 PM, Gene gene.ress...@gmail.com wrote: ListView seems to be the way to go, but I can't grok how to make

Re: [android-developers] Re: Hello everyone, i couldn't figure out what this error in the logcat means!!!

2012-03-24 Thread Justin Anderson
Kostya, Thanks for catching my mistake! I had surgery for a deviated septum a couple days ago and I'm on some pretty heavy meds... Serves me right for trying to answer some questions while I'm obviously so very loopy! :-) Thanks, Justin Anderson MagouyaWare Developer

Re: [android-developers] Set Layout Background Image and change color of the image dynamically

2012-03-24 Thread Todd Grigsby
Yes. You are the only one confused by this question. the answer is, it can't be done. On Mar 24, 2012 1:44 PM, Justin Anderson magouyaw...@gmail.com wrote: Am I the only one confused by this question? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware

Re: [android-developers] which framework is best for to develop cross platform mobile applications?

2012-03-24 Thread Justin Anderson
No one is asking about My brain !! Loll !! You're right... No one is. Neither am I. I was saying that you were given a recommendation by someone to look into PhoneGap, so go look into it and decide if it will be a good fit for you. No one else knows what skills you have and what

Re: [android-developers] How to place controls properly inside of a custom list view.

2012-03-24 Thread Justin Anderson
You could try giving your textview a layout_weight of 1... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 3:31 PM, TreKing treking...@gmail.com wrote: On Thu, Mar 22, 2012 at 2:58 AM, Put_tiMe putt...@gmail.com wrote: how can I

Re: [android-developers] Re: Accessing skydrive from Android app

2012-03-24 Thread Justin Anderson
I'm getting a problem while accessing the skydrive file. My android app is getting closed automatically. You are correct. That is a problem... I think there is an error in ClientID Ok Could you please help me out? I can send my app. No, I can't. I've never used SkyDrive. You can do what

Re: [android-developers] Re: Android reset in dalvik layer(system_server or zygote process crash)

2012-03-24 Thread xhy
Hi macterry, Firstly,thanks for your help, But I can not agree with you. I think the ActivityManagerService killed by WatchDog is rootcause. The system_server process will crash if ActivityThread occurs fatal exception. Many Thanks !!! 2012/3/24 mcterry macte...@gmail.com: Hello Hongyue,

Re: [android-developers] Eclipse IDE

2012-03-24 Thread Justin Anderson
http://lmgtfy.com/?q=eclipse+osx+32bit+vs+64bit Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Mar 20, 2012 at 12:06 PM, Subramanya S subramanya9...@gmail.comwrote: I want to download Eclipse IDE for Java Developers for Mac OS X 10.6.8 Snow

[android-developers] DexClassLoader

2012-03-24 Thread moutaz al-azab
Hello Everyone, I am trying to play with DexClassLoader http://developer.android.com/reference/dalvik/system/DexClassLoader.htmland http://www.java2s.com/Open-Source/Android/android-core/platform-libcore/dalvik/system/DexClassLoader.java.htmI am wondering how can I use DexClassLoader.I am not