Acer iconia选项卡A500 SipManager.isApiSupported返回false(不支持Voip api)(Acer iconia tab A500 SipManager.isApiSupported returns false (Voip api not supported))
平板电脑:宏碁A500 GEN1 Android 3.1内核2.6.36.3(API级别12)
自API级别9以来的SipManager
在我可以阅读的设备规格中没有任何地方,没有Voip支持。 上周在Galaxy 10.1选项卡上测试了我的应用程序,一切正常。
以下是开发SIP应用程序的要求:
您必须拥有运行Android 2.3或更高版本的移动设备。
SIP通过无线数据连接运行,因此您的设备必须具有数据连接(使用移动数据服务或Wi-Fi)。 这意味着您无法在AVD上进行测试 - 您只能在物理设备上进行测试。 有关详情,请参阅测试SIP应用程序。
应用程序通信会话中的每个参与者都必须拥有SIP帐户。 有许多不同的SIP提供商提供SIP帐户。
我的设备符合所有要求。
我勒个去?
Tablet: Acer A500 GEN1 Android 3.1 kernel 2.6.36.3 (API level 12)
SipManager since API level 9
Nowhere in the device specs I could read, that there is no Voip support. Last week tested my application on Galaxy 10.1 tab and everything worked fine.
Here are the requirements for developing a SIP application:
You must have a mobile device that is running Android 2.3 or higher.
SIP runs over a wireless data connection, so your device must have a data connection (with a mobile data service or Wi-Fi). This means that you can't test on AVD—you can only test on a physical device. For details, see Testing SIP Applications.
Each participant in the application's communication session must have a SIP account. There are many different SIP providers that offer SIP accounts.
My device meets all the requirements.
What the hell?
原文:https://stackoverflow.com/questions/7008468
最满意答案
您的连接看起来不对,我不明白为什么您需要一个硬编码阵列。 也可以将实体别名直接放在select中。 我会把它写成:
public function GetProductsList($productid){ $result = $this->getEntityManager()->createQueryBuilder() ->select('product', 'category') ->from('TestMyBundle:product','product') ->join('product.categories','category') // making an assumption your product entity has getCategories() ->where('product.productid=:productid') ->setParameter('productid',$productid) ->getQuery() ->getResult(); return $result; }
应该工作。
请注意,当你遇到这样的问题时,做一些像 - > getSQL()而不是getQuery()和var_dump这样的SQL来查看查询构建器产生的内容是很有用的,这使得调试更容易。
Your join looks wrong and I don't see why you need an hardcoded array there. May as well just put the entity aliases directly in the select. I would write that as:
public function GetProductsList($productid){ $result = $this->getEntityManager()->createQueryBuilder() ->select('product', 'category') ->from('TestMyBundle:product','product') ->join('product.categories','category') // making an assumption your product entity has getCategories() ->where('product.productid=:productid') ->setParameter('productid',$productid) ->getQuery() ->getResult(); return $result; }
Should work then.
Note that when you get problems like this it's useful to do something like ->getSQL() instead of getQuery() and var_dump the SQL to see what the querybuilder is producing, makes it easier to debug.
相关问答
更多-
删除ManyToMany关系(delete ManyToMany relationship)[2023-04-08]
文件 : >>> land.photo.remove(some_picture) 或者相反,使用提供的related_name参数: >>> picture.Land_Pictures.remove(some_land) 默认情况下,没有related_name ,它将是: >>> picture.land_set.remove(some_land) Documentation: >>> land.photo.remove(some_picture) Or the other way around, ... -
在代码发布中,您不清楚如何保存关联实体。 你应该坚持这样...... WaterQuality waterQuality = new WaterQuality(); //Set other fields too CaseStudy caseStudy1 = new CaseStudy(); CaseStudy caseStudy2 = new CaseStudy(); CaseStudy caseStudy3 = new CaseStudy(); CaseStudy caseStudy4 = new Ca ...
-
您遇到此问题的原因是,当您将它们与User对象关联时,您可能正在使用未关联的Group实体。 所以你需要从数据库加载它们。 或者,您可以切换到使用Guids作为实体的ID,而不是您设置的任何其他主键。 要回答你的第二个问题,你应该能够设定关系的一面。 但是,我很困惑为什么你会为这段关系设置2个单独的表。 您通常只需要另外一个表: User Group UserGroup The reason you are experiencing this is because you are likely using ...
-
您可以通过Assets类中的@NamedQuery来完成它: select a from Asserts a where a.location.site.contry.regin.reginName = :reginName 希望有所帮助 You can just complete it by a @NamedQuery in the class Assets : select a from Asserts a where a.location.site.contry.regin.reginName = : ...
-
由于您的po_part表不仅仅是一个简单的连接表(它具有订单中每个部分的数量),因此您需要将此连接表映射到单独的实体( Po_Part ,称为Po_Part )。 此实体将与Po和Part关联,以及该订单上的零件数量的字段。 然后,您的Po实体将拥有订单中各部分的集合,假设Po_Part具有返回订单的po引用: @OneToMany(mappedBy = "po") private List
partList; 有关查询详细信息,请参阅我对相关问题的回答 。 Since your po_ ... -
symfony无法在manytomany关系中加入相关表(symfony cannt join related tables in manytomany relationship)[2022-01-03]
您的连接看起来不对,我不明白为什么您需要一个硬编码阵列。 也可以将实体别名直接放在select中。 我会把它写成: public function GetProductsList($productid){ $result = $this->getEntityManager()->createQueryBuilder() ->select('product', 'category') ->from('TestMyBundle:product','product') ... -
使用此查询,您需要将人员指定为ID列表(在WHERE子句中),并且您需要指定给定的人员ID总数(在HAVING子句中)。 SELECT F.Name FROM person_fruit PF INNER JOIN fruit F ON PF.Fruit_ID = F.ID WHERE PF.Person_ID IN (1,2,4) '<- List of person IDs' GROUP BY PF.Fruit_ID HAVING COUNT(Person_ID) = 3 '<- ...
-
好的,这就是我发现的。 如果关系设置为manyToMany,只要multiple和expanded设置为true , EntityType将呈现为复选框。 所以我所要做的就是 摆脱我在控制器中使用的foreach循环 将PostType清理为如下 class PostType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder ...
-
使用JPA复合pks的一个简单示例可能是: @Entity class A { @Id Integer id; @OneToMany(mappedBy="a") List
abList; } @Entity class B { @Id Integer id; @OneToMany(mappedBy="b") List abList; } @Entity @IdClass(ABId.class) class AB { @Id @ManyToOne ... -
Symfony2 Doctrine ManyToMany关系未重新协调(Symfony2 Doctrine ManyToMany relationship not reconized)[2022-03-16]
您是否尝试过添加连接列? 也许有帮助。 /** * @ORM\ManyToMany(targetEntity="Tag", inversedBy="articles") * @ORM\JoinTable(name="articles_tags", * joinColumns={@JoinColumn(name="tag_id", referencedColumnName="id")}, * inverseJoinColumns={@JoinColumn(name="article ...