Problem init a custom made Daemon in Android

by jerryfan2000 » Fri, 10 Apr 2009 10:51:16 GMT


Sponsored Links
 Hi,
I ported CUPSD to Android but have some problem initializing cupsd by
manually typing cupsd & in terminal. Cupsd alawys exits with error. I
haven't tried to start cupsd by adding service in init,rc due to some
technical difficulty. So just not sure is it  wrong to start a daemon
manually? Can somebody explains the difference of initing service from
within init.rc and initing service manually. Thanks.
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. Implement Camera Support for Android Emulator using Web Cam

Hi Karthik,

Thank you very much for ur comments.
Within the emulator didnt it talk to any hardware devices on the machine?

Is there anyone knows abt this pls help...
Can we talk to {*filter*} from the QEMU ARM environment, that is from the
android emulator and the changes need to be done?

On Sat, Apr 17, 2010 at 10:44 PM, karthik poduval <karthik.podu...@gmail.com









-- 
Thanks & Regards,
Thisara.

-- 

2. Starting activity witouth window from widget

I recently (yesterday in fact :)) started creating widgets. So my
first widget I want to create is something like:
* A 2x2 widget
* Containing 2 buttons
    * Button 1: Register current time and location
    * Button 2: Open up an activity where configuration can be
modified, registered times and location can be viewed,...

Now the problem for me is button 1. As I only try to do some
registration data (so no further user input required after pressing
the button) I would like to just show a loading bar and after wards
Toast a message to screen, or a popup if anything goes wrong.
This is what I do now:
* In my widgetProvider
Intent intent = new Intent(context, LogDataActivity.class);
PendingIntent pintent = PendingIntent.getActivity(context, 0, intent,
0);

RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.my_widget_view);
views.setOnClickPendingIntent(R.id.startButton, pintent);

* In my LogDataActivity class
    public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);

                //Do some of my stuff

                Toast.makeText(LogDataActivity.this, "Success",
Toast.LENGTH_LONG).show();

                super.finish();
        }

So what happens: I click the button, a plain black screen pops up
(Altough I did not specify a layout upon creating the activity), and
after my work is done the Toast shows up and the activity gets
'killed'.
Basically that is what I want to do except for the black screen to
show up. Is it possible not to show a screen upon creating the
activity?

-- 

3. CM-5.0.6 Stable!

4. Emulator disconnected

5. calling an existing app with an intent

6. moveTaskToBack returning false.

7. error @ odin v4.03.... check platform verification