Hey guys,
i'm looking for someone who can build me a little app that simply redirects me to the "mobile network settings" page.
Probably, that's very simple and I can do this for myself but i haven't installed the SDK and also I haven't programmed for Android before.
I needn't to be a widget, a shourcut on homescreen without an icon would be absolutly OK.
There are some widgets in market but they caused some strange bugs on my LG P500
If there is someone who can spend some time for me, it would be great
Sorry for my english, i'm german...
Hey,
for some reason, I couldn't get the intent to work properly so I just made it so they app runs an am command in the shell. It should work though. Let me know if there are any problems.
Also, your english is fine. There are so many people here who are about 1000 times worse..
Works fine on first startup, but on relaunch there is only a blank activity with the programm title on top and I have to close the app manually with a task manager
Is there any possibility to fix this?
singmea1337 said:
Works fine on first startup, but on relaunch there is only a blank activity with the programm title on top and I have to close the app manually with a task manager
Is there any possibility to fix this?
Click to expand...
Click to collapse
Harr then let me take a shot at it .
.apk file is in attachment, let me know if it does what you wanted.
If it does it, i will be happy with a thanks!
und dein Englisch ist ok...
oh right, of course. That makes sense. I really didn't go about this the right way. Maybe someone else can come up with a better solution. Anyway, I updated it so the issue you were describing won't happen. However, now you can't back out of the application. As soon as you back out of the mobile network settings, my app comes back into focus and starts the mobile network settings again. I'm sure there's an easy fix. Maybe I'll look at it again after work.
okay, I wasn't thinking straight before. There was an extremely easy solution. Dark3n has probably already done it but whatever.
smaskell said:
oh right, of course. That makes sense. I really didn't go about this the right way. Maybe someone else can come up with a better solution. Anyway, I updated it so the issue you were describing won't happen. However, now you can't back out of the application. As soon as you back out of the mobile network settings, my app comes back into focus and starts the mobile network settings again. I'm sure there's an easy fix. Maybe I'll look at it again after work.
Click to expand...
Click to collapse
it is quite easy, let me help you out
if you have questions, feel free to ask
Code:
package eu.thedarken.nsq;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
public class NSQmain extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main);
Intent intent = new Intent(Intent.ACTION_MAIN, null);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
ComponentName cn = new ComponentName("com.android.phone","com.android.phone.Settings");
intent.setComponent(cn);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
finish();
}
}
@smaskell
Now, there is only an black screen after the first launch.
But the solution by Dark3n works like a charm
Thanks!
edit:
Oh, too slow, i'm talking of post 5
As I told you already, the widgets I tested caused some bugs. The app from Dark3n got the same issue.
If I change network mode to 2G only, the telephone app crashes without any comments after clicking the call-button. That couldn't be normal?
I've tested this one (couldn't post direct links, search com.curvefish.widgets.network2g3gonoff on market) before and if I clicked on the widget (after such a crash) the call was started
The same thing happens if i launch the app from Dar3n directly from menu but not if i use the shortcut.
If I change the mode directly via menu or using this (de.softxperience.android.switchnetworktype) app there are no problems.
But the last linked app adds a shortcut on the status-bar drop-down and in my opinion that's stupid.
I've checked the app from smaskell but there's still a problem on relaunch...
edit: And there's the same problem..
Sorry for the double-posting..
I will take a look at that later in the evening.
Maybe the settings only gets saved properly after closing parent menus.
By directly calling the submenu this doesn't happen and thats why it FCs.
I dont know if this will help you, but you can start the setting via terminalemulator
Code:
am start -n com.android.phone/.Settings
Sent from my HTC Vision using XDA App
kingchris said:
I dont know if this will help you, but you can start the setting via terminalemulator
Code:
am start -n com.android.phone/.Settings
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Thats basicly how i start it too.
Building App: Buttons & Slider to send serial commands to wifi or BT connection
Ops, sorry, thought I was posting in a new thread. Didn't want to take over yours.
Cant you just use anycut and point it to the right activity?
Sent from my GT-I9100 using XDA App
Related
Hello im working with a developer to make an app, and this is her response. I am hoping someone can chime in and give me some guidance i can pass along, where she might look in order to solve our task of auto-answering
we used to evoke 'Action Answer' modules but this feature has been revoked by the Android community as the community states it as a breach of privacy.
Click to expand...
Click to collapse
So what info can i give her, to guide in creating the auto-answer?
Thank you
Can anyone confirm if its still possible to have an app auto-answer an incoming call?
Thank you all, in a bind sorry for the bump
rsarno said:
Can anyone confirm if its still possible to have an app auto-answer an incoming call?
Thank you all, in a bind sorry for the bump
Click to expand...
Click to collapse
I do not have any info, only another question - If you do move forward, it would also help me in my quest: Using the 'Volume Up' key to answer the phone call ( thread here: http://forum.xda-developers.com/showthread.php?t=909172 )
I assume they would need similar answering capabilities ....
i dont see why its a breach of privacy, when the owner of the phone is the one who installs the app. If someone were to install the app on a phone they dont own it would be pretty obvious to the owner something is wrong.
But why not install the app with auto answer turned off as a default, forcing the user to turn it on manually and even stating to them a privacy statement explaing the operation and asking are you sure you wanna do this, maybe even adding a sercurity code for approval.
FreeTheWorld said:
i dont see why its a breach of privacy, when the owner of the phone is the one who installs the app. If someone were to install the app on a phone they dont own it would be pretty obvious to the owner something is wrong.
But why not install the app with auto answer turned off as a default, forcing the user to turn it on manually and even stating to them a privacy statement explaing the operation and asking are you sure you wanna do this, maybe even adding a sercurity code for approval.
Click to expand...
Click to collapse
Our challenge is finding the way to actually do it, to have the phone auto answer. At this point the client is not concerned with privacy, for reasons you listed.
One positive is that i see there is an app called AutoAnswer which (based on reviews) was functional as of 10 days ago. If they can do it, we can do it.
Its just my developer is challenged by what methods to use, or whatever, to invoke the "Answer" action
You can try the following code, but I didn't test it myself (and you need ITelephony.aidl from Android sources)
Code:
TelephonyManager tm =
(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
Class clazz = Class.forName(tm.getClass().getName());
Method m = clazz.getDeclaredMethod("getITelephony");
m.setAccessible(true);
ITelephony it = (ITelephony) m.invoke(tm);
it.answerRingingCall();
thanks, i will try!
vvv.androlib.com/android.application.pl-apps4android-nacm-zmipE.aspx where vvv is instead www
"Not Another Call Manager" NACM
tested before 10 Minutes on G1 with Biffmod 2.2
you can find it on the Market
xektop said:
vvv.androlib.com/android.application.pl-apps4android-nacm-zmipE.aspx where vvv is instead www
"Not Another Call Manager" NACM
tested before 10 Minutes on G1 with Biffmod 2.2
you can find it on the Market
Click to expand...
Click to collapse
He was looking for API, not for ready app. Or you propose to decompile this app and look at the code?
rwxer said:
He was looking for API, not for ready app. Or you propose to decompile this app and look at the code?
Click to expand...
Click to collapse
An API or a method of doing it via code.
Client is about to walk, because we cannot find a solution.
Need to answer the call automatically based on conditions. Not using Bluetooth, just as if you hit the "Accept" button on the handset, and it connects the call
Still not able to find a solution. Any ideas?
So answerRingingCall() method is not working?
Hi,
I have made a widget that update every 6 hour, however i wont to make i posible to update the widgate instant by one press on the widget.
Is there a kind person there can help me with the code for this?
i ned to know how i can make a picture in the widget app to run the update class.
Wackey said:
Hi,
I have made a widget that update every 6 hour, however i wont to make i posible to update the widgate instant by one press on the widget.
Is there a kind person there can help me with the code for this?
i ned to know how i can make a picture in the widget app to run the update class.
Click to expand...
Click to collapse
Did you look at already at this
?
Dark3n said:
Did you look at already at this
?
Click to expand...
Click to collapse
Thanks for your replay,
I have unfortunately not had the fortune to implement the code in my program. the only thing that must happen is that it should update some text. and to do this, it have to eksikvere " private static void refreshTextInWidget(Context context, RemoteViews updateViews) "
When browsing the marketplace, installing an app and then going back my scrolled position in the marketplace is lost. This is very frstrating and makes browsing and installing from the marketplace a pain.
Am I missing something?
Cheers, John
Same here. Another issue: I can search and find apps to install (for instance "Root Explorer" that I wanted to use to replace wpa_supplicant) but when I click the link to view the details and install it, I get a dialog that says the detailed view can't be found. If I click OK, it goes back to the search results. If I instead click back, I can read the detailed view, but clicking "Install" results in it telling me the application can't be found. Looks like Google is blocking the app.
+1 same problem here! (Using the tablet outdoors and I must say the feeling is great but....the screen is awful!!!! I can see my every detail reflected in the screen ...lol)
By the way is there no way to comment or rate an app from the market app???
Is there perhaps a way of installing the gingerbread marketplace app?
John
cybermage1 said:
Same here. Another issue: I can search and find apps to install (for instance "Root Explorer" that I wanted to use to replace wpa_supplicant) but when I click the link to view the details and install it, I get a dialog that says the detailed view can't be found. If I click OK, it goes back to the search results. If I instead click back, I can read the detailed view, but clicking "Install" results in it telling me the application can't be found. Looks like Google is blocking the app.
Click to expand...
Click to collapse
I've been having the same problem today. Lots of Apps in the market seem to be giving this response but if you try and see the details of and install a featured app then there's no problem. I think the Android Market may be having a few issues today. Try using the Android Market website instead, worked for me.
Sent from my A500 using XDA Premium App
I'll give that a go, thanks
yeah I noticed the same thing
I would also like to know where to rate and comment on apps
I hate it loses position on back. I like to browse through the app list to what is available for us honeycomb users but the fact that it goes back to the start makes this a pain in the *ss.
i agree, this is horrible, especially when browsing a long list. The marketplace is pretty average all round really.
Would it be too much to ask for a dedicated tablet section?
Just chiming in agreeing that this is a real pita.
Another +1 for the position loss on back being a pain in the ass, especially if you've just scrolled through 400 or so apps only to have to scroll through them again.
+1 here as well. I'd also love to see a section in the market just for the newest apps. I still can't figure out how to comment or rate anything there either. Some of the stuff I have tried and had to just uninstall I would love to be able to comment on. Any suggestions?
I use the online site
Regarding rating apps, here's what I've found:
Menu + Purchase History
Click the name - pick to open with browser
Rate it from the browser.
Yeah, it sucks. Honeycomb fail.
+1 on losing position in the marketplace when going back to it from an app page - very frustrating. I've also had numerous occasions when an app wouldn't properly download or install - the animated bar would continue but no notifications would show up and/or the install would fail leading to the animated bar on the app page continuing to animate but no progress. Going back then finding the app again then going into the app page and clicking install again seems to be the only way to kick start it.
Hi everybody:
I installed this RoM a few days ago, and I noticed the following two issues.
First: when I have the screen on, but the screen is locked, Im able to display the notification area. As the phone is locked, I think this shouldnt happen.
Second: when I access to a photo or a item from internet (a facebook photo or a doc previewed in gmail) if I want to turn the phone and change the orientation, the phone tries to load the item or the document again.
Thankyou for the ROM, great work guys!
Regards, Jorge!
PS: I tried to post these issues on the Development forum, but I have no rights to post there.
Sent from my HTC Vision using XDA
puchau said:
Hi everybody:
I installed this RoM a few days ago, and I noticed the following two issues.
First: when I have the screen on, but the screen is locked, Im able to display the notification area. As the phone is locked, I think this shouldnt happen.
Second: when I access to a photo or a item from internet (a facebook photo or a doc previewed in gmail) if I want to turn the phone and change the orientation, the phone tries to load the item or the document again.
Thankyou for the ROM, great work guys!
Regards, Jorge!
PS: I tried to post these issues on the Development forum, but I have no rights to post there.
Sent from my HTC Vision using XDA
Click to expand...
Click to collapse
1) This is an ICS feature. Unless you have a PIN or some other type of security feature to access the phone, the notification area can be opened from the lockscreen.
2) New to me. No idea.
Always good to get a discussion rolling. I've found the test builds to work well
Sent from my SGH-T989 using xda premium
puchau said:
Hi everybody:
I installed this RoM a few days ago, and I noticed the following two issues.
First: when I have the screen on, but the screen is locked, Im able to display the notification area. As the phone is locked, I think this shouldnt happen.
Second: when I access to a photo or a item from internet (a facebook photo or a doc previewed in gmail) if I want to turn the phone and change the orientation, the phone tries to load the item or the document again.
Thankyou for the ROM, great work guys!
Regards, Jorge!
PS: I tried to post these issues on the Development forum, but I have no rights to post there.
Sent from my HTC Vision using XDA
Click to expand...
Click to collapse
Indeed the first one is a feature built in, apps like WidgetLocker let you configure that so you can disable it, but on stock lockscreen that's just how it goes..
As for the other part, that just basic stuff, this is taken from developer.android.com, the activities section:
Handling configuration changes
Some device configurations can change during runtime (such as screen orientation, keyboard availability, and language). When such a change occurs, Android recreates the running activity (the system calls onDestroy(), then immediately calls onCreate()). This behavior is designed to help your application adapt to new configurations by automatically reloading your application with alternative resources that you've provided (such as different layouts for different screen orientations and sizes).
If you properly design your activity to handle a restart due to a screen orientation change and restore the activity state as described above, your application will be more resilient to other unexpected events in the activity lifecycle.
Click to expand...
Click to collapse
It is a bit annoying, but every app on all Android versions does this, or is atleast supposed to. Also, that doesn't really have anything to do with the ROM as such, more with the design of applications.
are there any new bugs with beta 4? or should i wait for the "not beta" ROMS?
Good evening guys i m new on android development and i am making a car mode app. simply 4 buttons to open 4 most common apps you use. I have calls contacts music and gps. But in every phone the package has different package name in exmple in google is com.google.music but in htc is different so the app crashes. i need the code when i click the button to give me all the apps and then choose the app i want to open.
PGiorgos said:
Good evening guys i m new on android development and i am making a car mode app. simply 4 buttons to open 4 most common apps you use. I have calls contacts music and gps. But in every phone the package has different package name in exmple in google is com.google.music but in htc is different so the app crashes. i need the code when i click the button to give me all the apps and then choose the app i want to open.
Click to expand...
Click to collapse
you can use intents, gallery intent, camera intent, music intent, they are global and work on any device
mohamedrashad said:
you can use intents, gallery intent, camera intent, music intent, they are global and work on any device
Click to expand...
Click to collapse
thank you!
Well i ve found the intent for music
Intent intent = new Intent(MediaStore.INTENT_ACTION_MUSIC_PLAYER);
startActivity(intent);
But i have problem finding the same for contacts any suggestion?
PGiorgos said:
Well i ve found the intent for music
Intent intent = new Intent(MediaStore.INTENT_ACTION_MUSIC_PLAYER);
startActivity(intent);
But i have problem finding the same for contacts any suggestion?
Click to expand...
Click to collapse
Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(intent, PICK_CONTACT);
here we go
press thanks if i helped you